Commit 506fde4b6159d7a5b6e9081ce5ca2d15e2497359

Authored by Neil Blakey-Milner
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
plugins/ktcore/admin/workflows.php
... ... @@ -681,7 +681,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
681 681  
682 682 $aOptions = array();
683 683 $vocab = array();
684   - $vocab[0] = 'None';
  684 + $vocab[0] = _kt('None');
685 685 foreach($aGroups as $group) {
686 686 $vocab[$group->getId()] = $group->getName();
687 687 }
... ... @@ -689,7 +689,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
689 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 690 $aOptions = array();
691 691 $vocab = array();
692   - $vocab[0] = 'None';
  692 + $vocab[0] = _kt('None');
693 693 foreach($aRoles as $role) {
694 694 $vocab[$role->getId()] = $role->getName();
695 695 }
... ... @@ -699,7 +699,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
699 699 if (!empty($aConditions)) {
700 700 $aOptions = array();
701 701 $vocab = array();
702   - $vocab[0] = 'None';
  702 + $vocab[0] = _kt('None');
703 703 foreach($aConditions as $condition) {
704 704 $vocab[$condition->getId()] = $condition->getName();
705 705 }
... ... @@ -1234,7 +1234,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1234 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 1235 $aOptions = array();
1236 1236 $vocab = array();
1237   - $vocab[0] = 'None';
  1237 + $vocab[0] = _kt('None');
1238 1238 foreach($aPermissions as $permission) {
1239 1239 $vocab[$permission->getId()] = $permission->getHumanName();
1240 1240 }
... ... @@ -1242,7 +1242,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1242 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 1243 $aOptions = array();
1244 1244 $vocab = array();
1245   - $vocab[0] = 'None';
  1245 + $vocab[0] = _kt('None');
1246 1246 foreach($aGroups as $group) {
1247 1247 $vocab[$group->getId()] = $group->getName();
1248 1248 }
... ... @@ -1250,7 +1250,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1250 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 1251 $aOptions = array();
1252 1252 $vocab = array();
1253   - $vocab[0] = 'None';
  1253 + $vocab[0] = _kt('None');
1254 1254 foreach($aRoles as $role) {
1255 1255 $vocab[$role->getId()] = $role->getName();
1256 1256 }
... ... @@ -1260,7 +1260,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1260 1260 if (!empty($aConditions)) {
1261 1261 $aOptions = array();
1262 1262 $vocab = array();
1263   - $vocab[0] = 'None';
  1263 + $vocab[0] = _kt('None');
1264 1264 foreach($aConditions as $condition) {
1265 1265 $vocab[$condition->getId()] = $condition->getName();
1266 1266 }
... ...