Commit 506fde4b6159d7a5b6e9081ce5ca2d15e2497359
1 parent
ba20b64e
KTS-820: mark up "None" entries for translation
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5286 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
7 additions
and
7 deletions
plugins/ktcore/admin/workflows.php
| @@ -681,7 +681,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -681,7 +681,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 681 | 681 | ||
| 682 | $aOptions = array(); | 682 | $aOptions = array(); |
| 683 | $vocab = array(); | 683 | $vocab = array(); |
| 684 | - $vocab[0] = 'None'; | 684 | + $vocab[0] = _kt('None'); |
| 685 | foreach($aGroups as $group) { | 685 | foreach($aGroups as $group) { |
| 686 | $vocab[$group->getId()] = $group->getName(); | 686 | $vocab[$group->getId()] = $group->getName(); |
| 687 | } | 687 | } |
| @@ -689,7 +689,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -689,7 +689,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 689 | $add_transition_fields[] = new KTLookupWidget(_kt('Guard Group.'), _kt('Which group must the user belong to in order to follow this transition?'), 'fGroupId', NULL, $this->oPage, false, null, null, $aOptions); | 689 | $add_transition_fields[] = new KTLookupWidget(_kt('Guard Group.'), _kt('Which group must the user belong to in order to follow this transition?'), 'fGroupId', NULL, $this->oPage, false, null, null, $aOptions); |
| 690 | $aOptions = array(); | 690 | $aOptions = array(); |
| 691 | $vocab = array(); | 691 | $vocab = array(); |
| 692 | - $vocab[0] = 'None'; | 692 | + $vocab[0] = _kt('None'); |
| 693 | foreach($aRoles as $role) { | 693 | foreach($aRoles as $role) { |
| 694 | $vocab[$role->getId()] = $role->getName(); | 694 | $vocab[$role->getId()] = $role->getName(); |
| 695 | } | 695 | } |
| @@ -699,7 +699,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -699,7 +699,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 699 | if (!empty($aConditions)) { | 699 | if (!empty($aConditions)) { |
| 700 | $aOptions = array(); | 700 | $aOptions = array(); |
| 701 | $vocab = array(); | 701 | $vocab = array(); |
| 702 | - $vocab[0] = 'None'; | 702 | + $vocab[0] = _kt('None'); |
| 703 | foreach($aConditions as $condition) { | 703 | foreach($aConditions as $condition) { |
| 704 | $vocab[$condition->getId()] = $condition->getName(); | 704 | $vocab[$condition->getId()] = $condition->getName(); |
| 705 | } | 705 | } |
| @@ -1234,7 +1234,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -1234,7 +1234,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 1234 | $edit_fields[] = new KTLookupWidget(_kt('Destination State'), _kt('Once this transition is complete, which state should the document be in?'), 'fTargetStateId', $oTransition->getTargetStateId(), $this->oPage, true, null, null, $aOptions); | 1234 | $edit_fields[] = new KTLookupWidget(_kt('Destination State'), _kt('Once this transition is complete, which state should the document be in?'), 'fTargetStateId', $oTransition->getTargetStateId(), $this->oPage, true, null, null, $aOptions); |
| 1235 | $aOptions = array(); | 1235 | $aOptions = array(); |
| 1236 | $vocab = array(); | 1236 | $vocab = array(); |
| 1237 | - $vocab[0] = 'None'; | 1237 | + $vocab[0] = _kt('None'); |
| 1238 | foreach($aPermissions as $permission) { | 1238 | foreach($aPermissions as $permission) { |
| 1239 | $vocab[$permission->getId()] = $permission->getHumanName(); | 1239 | $vocab[$permission->getId()] = $permission->getHumanName(); |
| 1240 | } | 1240 | } |
| @@ -1242,7 +1242,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -1242,7 +1242,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 1242 | $edit_fields[] = new KTLookupWidget(_kt('Guard Permission.'), _kt('Which permission must the user have in order to follow this transition?'), 'fPermissionId', $oTransition->getGuardPermissionId(), $this->oPage, true, null, null, $aOptions); | 1242 | $edit_fields[] = new KTLookupWidget(_kt('Guard Permission.'), _kt('Which permission must the user have in order to follow this transition?'), 'fPermissionId', $oTransition->getGuardPermissionId(), $this->oPage, true, null, null, $aOptions); |
| 1243 | $aOptions = array(); | 1243 | $aOptions = array(); |
| 1244 | $vocab = array(); | 1244 | $vocab = array(); |
| 1245 | - $vocab[0] = 'None'; | 1245 | + $vocab[0] = _kt('None'); |
| 1246 | foreach($aGroups as $group) { | 1246 | foreach($aGroups as $group) { |
| 1247 | $vocab[$group->getId()] = $group->getName(); | 1247 | $vocab[$group->getId()] = $group->getName(); |
| 1248 | } | 1248 | } |
| @@ -1250,7 +1250,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -1250,7 +1250,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 1250 | $edit_fields[] = new KTLookupWidget(_kt('Guard Group.'), _kt('Which group must the user belong to in order to follow this transition?'), 'fGroupId', $oTransition->getGuardGroupId(), $this->oPage, false, null, null, $aOptions); | 1250 | $edit_fields[] = new KTLookupWidget(_kt('Guard Group.'), _kt('Which group must the user belong to in order to follow this transition?'), 'fGroupId', $oTransition->getGuardGroupId(), $this->oPage, false, null, null, $aOptions); |
| 1251 | $aOptions = array(); | 1251 | $aOptions = array(); |
| 1252 | $vocab = array(); | 1252 | $vocab = array(); |
| 1253 | - $vocab[0] = 'None'; | 1253 | + $vocab[0] = _kt('None'); |
| 1254 | foreach($aRoles as $role) { | 1254 | foreach($aRoles as $role) { |
| 1255 | $vocab[$role->getId()] = $role->getName(); | 1255 | $vocab[$role->getId()] = $role->getName(); |
| 1256 | } | 1256 | } |
| @@ -1260,7 +1260,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -1260,7 +1260,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 1260 | if (!empty($aConditions)) { | 1260 | if (!empty($aConditions)) { |
| 1261 | $aOptions = array(); | 1261 | $aOptions = array(); |
| 1262 | $vocab = array(); | 1262 | $vocab = array(); |
| 1263 | - $vocab[0] = 'None'; | 1263 | + $vocab[0] = _kt('None'); |
| 1264 | foreach($aConditions as $condition) { | 1264 | foreach($aConditions as $condition) { |
| 1265 | $vocab[$condition->getId()] = $condition->getName(); | 1265 | $vocab[$condition->getId()] = $condition->getName(); |
| 1266 | } | 1266 | } |