Commit c27b34bdce12c2526366e9a158b6be21a48dac73

Authored by nbm
1 parent 2d4c41ea

Change gettext's _ to internal i18n infrastructure's _kt

(redoing this, because didn't get second on line)


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5148 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktcore/KTCorePlugin.php
@@ -66,7 +66,7 @@ class KTCorePlugin extends KTPlugin { @@ -66,7 +66,7 @@ class KTCorePlugin extends KTPlugin {
66 $this->registerDashlet('KTCheckoutDashlet', 'ktcore.dashlet.checkout', 'KTDashlets.php'); 66 $this->registerDashlet('KTCheckoutDashlet', 'ktcore.dashlet.checkout', 'KTDashlets.php');
67 $this->registerDashlet('KTIndexerStatusDashlet', 'ktcore.dashlet.indexer_status', 'KTDashlets.php'); 67 $this->registerDashlet('KTIndexerStatusDashlet', 'ktcore.dashlet.indexer_status', 'KTDashlets.php');
68 68
69 - $this->registerAdminPage('authentication', 'KTAuthenticationAdminPage', 'principals', _kt('Authentication'), _('By default, KnowledgeTree controls its own users and groups and stores all information about them inside the database. In many situations, an organisation will already have a list of users and groups, and needs to use that existing information to allow access to the DMS. These <strong>Authentication Sources</strong> allow the system administrator to specify additional sources of authentication data.'), 'authentication/authenticationadminpage.inc.php'); 69 + $this->registerAdminPage('authentication', 'KTAuthenticationAdminPage', 'principals', _kt('Authentication'), _kt('By default, KnowledgeTree controls its own users and groups and stores all information about them inside the database. In many situations, an organisation will already have a list of users and groups, and needs to use that existing information to allow access to the DMS. These <strong>Authentication Sources</strong> allow the system administrator to specify additional sources of authentication data.'), 'authentication/authenticationadminpage.inc.php');
70 70
71 $this->registerPortlet(array('browse'), 71 $this->registerPortlet(array('browse'),
72 'KTAdminModePortlet', 'ktcore.portlets.admin_mode', 72 'KTAdminModePortlet', 'ktcore.portlets.admin_mode',
@@ -102,20 +102,20 @@ class KTCorePlugin extends KTPlugin { @@ -102,20 +102,20 @@ class KTCorePlugin extends KTPlugin {
102 102
103 // users and groups 103 // users and groups
104 $this->registerAdminPage("users", 'KTUserAdminDispatcher', "principals", 104 $this->registerAdminPage("users", 'KTUserAdminDispatcher', "principals",
105 - _kt("Manage Users"), _("Add or remove users from the system."), 105 + _kt("Manage Users"), _kt("Add or remove users from the system."),
106 'admin/userManagement.php', null); 106 'admin/userManagement.php', null);
107 $this->registerAdminPage("groups", 'KTGroupAdminDispatcher', "principals", 107 $this->registerAdminPage("groups", 'KTGroupAdminDispatcher', "principals",
108 - _kt("Manage Groups"), _("Add or remove groups from the system."), 108 + _kt("Manage Groups"), _kt("Add or remove groups from the system."),
109 'admin/groupManagement.php', null); 109 'admin/groupManagement.php', null);
110 $this->registerAdminPage("units", 'KTUnitAdminDispatcher', "principals", 110 $this->registerAdminPage("units", 'KTUnitAdminDispatcher', "principals",
111 - _kt("Control Units"), _("Specify which organisational units are available within the repository."), 111 + _kt("Control Units"), _kt("Specify which organisational units are available within the repository."),
112 'admin/unitManagement.php', null); 112 'admin/unitManagement.php', null);
113 113
114 // security 114 // security
115 $this->registerAdminPage("permissions", 'ManagePermissionsDispatcher', "security", 115 $this->registerAdminPage("permissions", 'ManagePermissionsDispatcher', "security",
116 - _kt("Permissions"), _("Create or delete permissions."), 'admin/managePermissions.php', null); 116 + _kt("Permissions"), _kt("Create or delete permissions."), 'admin/managePermissions.php', null);
117 $this->registerAdminPage("roles", 'RoleAdminDispatcher', "security", 117 $this->registerAdminPage("roles", 'RoleAdminDispatcher', "security",
118 - _kt("Roles"), _("Create or delete roles"), 118 + _kt("Roles"), _kt("Create or delete roles"),
119 'admin/roleManagement.php', null); 119 'admin/roleManagement.php', null);
120 $this->registerAdminPage("conditions", 'KTConditionDispatcher', "security", 120 $this->registerAdminPage("conditions", 'KTConditionDispatcher', "security",
121 _kt("Dynamic Conditions"), 121 _kt("Dynamic Conditions"),
@@ -136,7 +136,7 @@ class KTCorePlugin extends KTPlugin { @@ -136,7 +136,7 @@ class KTCorePlugin extends KTPlugin {
136 _kt('Manage the different ways documents can be associated with one another.'), 136 _kt('Manage the different ways documents can be associated with one another.'),
137 'admin/documentLinks.php', null); 137 'admin/documentLinks.php', null);
138 $this->registerAdminPage("workflows", 'KTWorkflowDispatcher', 'documents', 138 $this->registerAdminPage("workflows", 'KTWorkflowDispatcher', 'documents',
139 - _kt('Workflows'), _('Configure the process documents go through.'), 139 + _kt('Workflows'), _kt('Configure the process documents go through.'),
140 'admin/workflows.php', null); 140 'admin/workflows.php', null);
141 141
142 // storage 142 // storage
@@ -145,25 +145,25 @@ class KTCorePlugin extends KTPlugin { @@ -145,25 +145,25 @@ class KTCorePlugin extends KTPlugin {
145 _kt('Override the checked-out status of documents if a user has failed to do so.'), 145 _kt('Override the checked-out status of documents if a user has failed to do so.'),
146 'admin/documentCheckout.php', null); 146 'admin/documentCheckout.php', null);
147 $this->registerAdminPage("archived", 'ArchivedDocumentsDispatcher', 'storage', 147 $this->registerAdminPage("archived", 'ArchivedDocumentsDispatcher', 'storage',
148 - _kt('Archived Document Restoration'), _("Restore old (archived) documents, usually at a user's request."), 148 + _kt('Archived Document Restoration'), _kt("Restore old (archived) documents, usually at a user's request."),
149 'admin/archivedDocuments.php', null); 149 'admin/archivedDocuments.php', null);
150 $this->registerAdminPage("expunge", 'DeletedDocumentsDispatcher', 'storage', 150 $this->registerAdminPage("expunge", 'DeletedDocumentsDispatcher', 'storage',
151 - _kt('Restore or Expunge Deleted Documents'), _('Restore previously deleted documents, or permanently expunge them.'), 151 + _kt('Restore or Expunge Deleted Documents'), _kt('Restore previously deleted documents, or permanently expunge them.'),
152 'admin/deletedDocuments.php', null); 152 'admin/deletedDocuments.php', null);
153 153
154 // misc 154 // misc
155 $this->registerAdminPage("helpmanagement", 'ManageHelpDispatcher', 'misc', 155 $this->registerAdminPage("helpmanagement", 'ManageHelpDispatcher', 'misc',
156 - _kt('Edit Help files'), _('Change the help files that are displayed to users.'), 156 + _kt('Edit Help files'), _kt('Change the help files that are displayed to users.'),
157 'admin/manageHelp.php', null); 157 'admin/manageHelp.php', null);
158 $this->registerAdminPage("savedsearch", 'KTSavedSearchDispatcher', 'misc', 158 $this->registerAdminPage("savedsearch", 'KTSavedSearchDispatcher', 'misc',
159 _kt('Saved searches'), 159 _kt('Saved searches'),
160 _kt('Manage saved searches - searches available by default to all users.'), 160 _kt('Manage saved searches - searches available by default to all users.'),
161 'admin/savedSearch.php', null); 161 'admin/savedSearch.php', null);
162 $this->registerAdminPage("plugins", 'KTPluginDispatcher', 'misc', 162 $this->registerAdminPage("plugins", 'KTPluginDispatcher', 'misc',
163 - _kt('Manage plugins'), _('Register new plugins, disable plugins, and so forth'), 163 + _kt('Manage plugins'), _kt('Register new plugins, disable plugins, and so forth'),
164 'admin/plugins.php', null); 164 'admin/plugins.php', null);
165 $this->registerAdminPage("techsupport", 'KTSupportDispatcher', 'misc', 165 $this->registerAdminPage("techsupport", 'KTSupportDispatcher', 'misc',
166 - _kt('Support and System information'), _('Information about this system and how to get support.'), 166 + _kt('Support and System information'), _kt('Information about this system and how to get support.'),
167 'admin/techsupport.php', null); 167 'admin/techsupport.php', null);
168 // plugins 168 // plugins
169 169
plugins/ktcore/KTDocumentActions.php
@@ -123,7 +123,7 @@ class KTDocumentCheckOutAction extends KTDocumentAction { @@ -123,7 +123,7 @@ class KTDocumentCheckOutAction extends KTDocumentAction {
123 $this->oPage->setBreadcrumbDetails("checkout"); 123 $this->oPage->setBreadcrumbDetails("checkout");
124 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkout'); 124 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkout');
125 $checkout_fields = array(); 125 $checkout_fields = array();
126 - $checkout_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for the checkout of this document for historical purposes, and to inform those who wish to check out this document.'), 'reason', "", $this->oPage, true); 126 + $checkout_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for the checkout of this document for historical purposes, and to inform those who wish to check out this document.'), 'reason', "", $this->oPage, true);
127 127
128 $oTemplate->setData(array( 128 $oTemplate->setData(array(
129 'context' => &$this, 129 'context' => &$this,
@@ -212,8 +212,8 @@ class KTDocumentCheckInAction extends KTDocumentAction { @@ -212,8 +212,8 @@ class KTDocumentCheckInAction extends KTDocumentAction {
212 212
213 $sReason = KTUtil::arrayGet($_REQUEST, 'reason', ""); 213 $sReason = KTUtil::arrayGet($_REQUEST, 'reason', "");
214 $checkin_fields = array(); 214 $checkin_fields = array();
215 - $checkin_fields[] = new KTFileUploadWidget(_kt('File'), _('The updated document.'), 'file', "", $this->oPage, true);  
216 - $checkin_fields[] = new KTStringWidget(_kt('Description'), _('Describe the changes made to the document.'), 'reason', $sReason, $this->oPage, true); 215 + $checkin_fields[] = new KTFileUploadWidget(_kt('File'), _kt('The updated document.'), 'file', "", $this->oPage, true);
  216 + $checkin_fields[] = new KTStringWidget(_kt('Description'), _kt('Describe the changes made to the document.'), 'reason', $sReason, $this->oPage, true);
217 217
218 $oTemplate->setData(array( 218 $oTemplate->setData(array(
219 'context' => &$this, 219 'context' => &$this,
@@ -293,7 +293,7 @@ class KTDocumentCancelCheckOutAction extends KTDocumentAction { @@ -293,7 +293,7 @@ class KTDocumentCancelCheckOutAction extends KTDocumentAction {
293 293
294 $sReason = KTUtil::arrayGet($_REQUEST, 'reason', ""); 294 $sReason = KTUtil::arrayGet($_REQUEST, 'reason', "");
295 $checkin_fields = array(); 295 $checkin_fields = array();
296 - $checkin_fields[] = new KTStringWidget(_kt('Reason'), _('Give a reason for cancelling this checkout.'), 'reason', $sReason, $this->oPage, true); 296 + $checkin_fields[] = new KTStringWidget(_kt('Reason'), _kt('Give a reason for cancelling this checkout.'), 'reason', $sReason, $this->oPage, true);
297 297
298 $oTemplate->setData(array( 298 $oTemplate->setData(array(
299 'context' => &$this, 299 'context' => &$this,
@@ -389,7 +389,7 @@ class KTDocumentDeleteAction extends KTDocumentAction { @@ -389,7 +389,7 @@ class KTDocumentDeleteAction extends KTDocumentAction {
389 $this->oPage->setBreadcrumbDetails("delete"); 389 $this->oPage->setBreadcrumbDetails("delete");
390 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/delete'); 390 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/delete');
391 $delete_fields = array(); 391 $delete_fields = array();
392 - $delete_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for this document to be removed.'), 'reason', "", $this->oPage, true); 392 + $delete_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for this document to be removed.'), 'reason', "", $this->oPage, true);
393 393
394 $oTemplate->setData(array( 394 $oTemplate->setData(array(
395 'context' => &$this, 395 'context' => &$this,
@@ -527,7 +527,7 @@ class KTDocumentMoveAction extends KTDocumentAction { @@ -527,7 +527,7 @@ class KTDocumentMoveAction extends KTDocumentAction {
527 $move_fields = array(); 527 $move_fields = array();
528 $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false); 528 $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false);
529 $move_fields[] = new KTStaticTextWidget(_kt('Target folder'), '', 'fFolderId', $sFolderPath, $this->oPage, false); 529 $move_fields[] = new KTStaticTextWidget(_kt('Target folder'), '', 'fFolderId', $sFolderPath, $this->oPage, false);
530 - $move_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for this document to be moved.'), 'reason', "", $this->oPage, true); 530 + $move_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for this document to be moved.'), 'reason', "", $this->oPage, true);
531 531
532 $oTemplate->setData(array( 532 $oTemplate->setData(array(
533 'context' => &$this, 533 'context' => &$this,
@@ -722,7 +722,7 @@ class KTDocumentCopyAction extends KTDocumentAction { @@ -722,7 +722,7 @@ class KTDocumentCopyAction extends KTDocumentAction {
722 $move_fields = array(); 722 $move_fields = array();
723 $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false); 723 $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false);
724 $move_fields[] = new KTStaticTextWidget(_kt('Target folder'), '', 'fFolderId', $sFolderPath, $this->oPage, false); 724 $move_fields[] = new KTStaticTextWidget(_kt('Target folder'), '', 'fFolderId', $sFolderPath, $this->oPage, false);
725 - $move_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for this document to be moved.'), 'reason', "", $this->oPage, true); 725 + $move_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for this document to be moved.'), 'reason', "", $this->oPage, true);
726 726
727 $oTemplate->setData(array( 727 $oTemplate->setData(array(
728 'context' => &$this, 728 'context' => &$this,
@@ -832,7 +832,7 @@ class KTDocumentArchiveAction extends KTDocumentAction { @@ -832,7 +832,7 @@ class KTDocumentArchiveAction extends KTDocumentAction {
832 $this->oPage->setBreadcrumbDetails(_kt("archiving")); 832 $this->oPage->setBreadcrumbDetails(_kt("archiving"));
833 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/archive'); 833 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/archive');
834 $fields = array(); 834 $fields = array();
835 - $fields[] = new KTStringWidget(_kt('Reason'), _('The reason for the archiving of this document. This will be displayed when the archived document is to be displayed.'), 'reason', "", $this->oPage, true); 835 + $fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for the archiving of this document. This will be displayed when the archived document is to be displayed.'), 'reason', "", $this->oPage, true);
836 836
837 $oTemplate->setData(array( 837 $oTemplate->setData(array(
838 'context' => &$this, 838 'context' => &$this,
@@ -920,7 +920,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction { @@ -920,7 +920,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction {
920 $fieldOptions = array("vocab" => $aVocab); 920 $fieldOptions = array("vocab" => $aVocab);
921 $transition_fields[] = new KTLookupWidget(_kt('Transition to perform'), 'The transition listed will cause the document to change from its current state to the listed destination state.', 'fTransitionId', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); 921 $transition_fields[] = new KTLookupWidget(_kt('Transition to perform'), 'The transition listed will cause the document to change from its current state to the listed destination state.', 'fTransitionId', null, $this->oPage, true, null, $fieldErrors, $fieldOptions);
922 $transition_fields[] = new KTTextWidget( 922 $transition_fields[] = new KTTextWidget(
923 - _kt('Reason for transition'), _('Describe why this document qualifies to be changed from its current state to the destination state of the transition chosen.'), 923 + _kt('Reason for transition'), _kt('Describe why this document qualifies to be changed from its current state to the destination state of the transition chosen.'),
924 'fComments', "", 924 'fComments', "",
925 $this->oPage, true, null, null, 925 $this->oPage, true, null, null,
926 array('cols' => 80, 'rows' => 4)); 926 array('cols' => 80, 'rows' => 4));
plugins/ktcore/KTFolderActions.php
@@ -53,7 +53,7 @@ class KTFolderAddFolderAction extends KTFolderAction { @@ -53,7 +53,7 @@ class KTFolderAddFolderAction extends KTFolderAction {
53 $this->oPage->setBreadcrumbDetails(_kt("add folder")); 53 $this->oPage->setBreadcrumbDetails(_kt("add folder"));
54 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/addFolder'); 54 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/addFolder');
55 $fields = array(); 55 $fields = array();
56 - $fields[] = new KTStringWidget(_kt('Folder name'), _('The name for the new folder.'), 'name', "", $this->oPage, true); 56 + $fields[] = new KTStringWidget(_kt('Folder name'), _kt('The name for the new folder.'), 'name', "", $this->oPage, true);
57 57
58 $oTemplate->setData(array( 58 $oTemplate->setData(array(
59 'context' => &$this, 59 'context' => &$this,
plugins/ktcore/admin/documentFields.php
@@ -126,9 +126,9 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { @@ -126,9 +126,9 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher {
126 $aErrorOptions['duplicate_message'] = _kt("A fieldset with that name already exists"); 126 $aErrorOptions['duplicate_message'] = _kt("A fieldset with that name already exists");
127 $aErrorOptions['rename'] = $oFieldset->getId(); 127 $aErrorOptions['rename'] = $oFieldset->getId();
128 $sName = $this->oValidator->validateEntityName("KTFieldset", $_REQUEST['name'], $aErrorOptions); 128 $sName = $this->oValidator->validateEntityName("KTFieldset", $_REQUEST['name'], $aErrorOptions);
129 - $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _("Namespace")); 129 + $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _kt("Namespace"));
130 $sNamespace = $this->oValidator->validateString($_REQUEST['namespace'], $aErrorOptions); 130 $sNamespace = $this->oValidator->validateString($_REQUEST['namespace'], $aErrorOptions);
131 - $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _("Description")); 131 + $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _kt("Description"));
132 $sDescription = $this->oValidator->validateString($_REQUEST['description'], $aErrorOptions); 132 $sDescription = $this->oValidator->validateString($_REQUEST['description'], $aErrorOptions);
133 133
134 $oFieldset->setName($sName); 134 $oFieldset->setName($sName);
plugins/ktcore/admin/documentTypes.php
@@ -46,7 +46,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { @@ -46,7 +46,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher {
46 $this->oPage->setBreadcrumbDetails('view types'); 46 $this->oPage->setBreadcrumbDetails('view types');
47 47
48 $addFields = array(); 48 $addFields = array();
49 - $addFields[] = new KTStringWidget(_kt('Name'), _('A short, human-readable name for the document type.'), 'name', null, $this->oPage, true); 49 + $addFields[] = new KTStringWidget(_kt('Name'), _kt('A short, human-readable name for the document type.'), 'name', null, $this->oPage, true);
50 50
51 $oTemplating =& KTTemplating::getSingleton(); 51 $oTemplating =& KTTemplating::getSingleton();
52 $oTemplate = $oTemplating->loadTemplate('ktcore/documenttypes/list'); 52 $oTemplate = $oTemplating->loadTemplate('ktcore/documenttypes/list');
@@ -142,7 +142,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { @@ -142,7 +142,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher {
142 $aOptions['vocab'] = $vocab; 142 $aOptions['vocab'] = $vocab;
143 $aOptions['multi'] = true; 143 $aOptions['multi'] = true;
144 $aOptions['size'] = 5; 144 $aOptions['size'] = 5;
145 - $availableTypesWidget =& new KTLookupWidget(_kt('Available Fieldsets'), _('Select the fieldsets which you wish to associate with this document type'), 'fieldsetid[]', null, $this->oPage, true, 145 + $availableTypesWidget =& new KTLookupWidget(_kt('Available Fieldsets'), _kt('Select the fieldsets which you wish to associate with this document type'), 'fieldsetid[]', null, $this->oPage, true,
146 null, null, $aOptions); 146 null, null, $aOptions);
147 147
148 $this->aBreadcrumbs[] = array( 148 $this->aBreadcrumbs[] = array(
plugins/ktcore/admin/groupManagement.php
@@ -61,7 +61,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { @@ -61,7 +61,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher {
61 } 61 }
62 62
63 $search_fields = array(); 63 $search_fields = array();
64 - $search_fields[] = new KTStringWidget(_kt('Group Name'), _("Enter part of the group's name. e.g. <strong>ad</strong> will match <strong>administrators</strong>."), 'name', $name, $this->oPage, true); 64 + $search_fields[] = new KTStringWidget(_kt('Group Name'), _kt("Enter part of the group's name. e.g. <strong>ad</strong> will match <strong>administrators</strong>."), 'name', $name, $this->oPage, true);
65 65
66 if (!empty($name)) { 66 if (!empty($name)) {
67 $search_results =& Group::getList('WHERE name LIKE \'%' . DBUtil::escapeSimple($name) . '%\''); 67 $search_results =& Group::getList('WHERE name LIKE \'%' . DBUtil::escapeSimple($name) . '%\'');
@@ -97,9 +97,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { @@ -97,9 +97,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher {
97 $this->oPage->setTitle(sprintf(_kt("Edit Group (%s)"), $oGroup->getName())); 97 $this->oPage->setTitle(sprintf(_kt("Edit Group (%s)"), $oGroup->getName()));
98 98
99 $edit_fields = array(); 99 $edit_fields = array();
100 - $edit_fields[] = new KTStringWidget(_kt('Group Name'), _('A short name for the group. e.g. <strong>administrators</strong>.'), 'group_name', $oGroup->getName(), $this->oPage, true);  
101 - $edit_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', $oGroup->getUnitAdmin(), $this->oPage, false);  
102 - $edit_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', $oGroup->getSysAdmin(), $this->oPage, false); 100 + $edit_fields[] = new KTStringWidget(_kt('Group Name'), _kt('A short name for the group. e.g. <strong>administrators</strong>.'), 'group_name', $oGroup->getName(), $this->oPage, true);
  101 + $edit_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', $oGroup->getUnitAdmin(), $this->oPage, false);
  102 + $edit_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', $oGroup->getSysAdmin(), $this->oPage, false);
103 103
104 // grab all units. 104 // grab all units.
105 $unitId = $oGroup->getUnitId(); 105 $unitId = $oGroup->getUnitId();
@@ -111,7 +111,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { @@ -111,7 +111,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher {
111 foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); } 111 foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); }
112 $aOptions = array('vocab' => $vocab); 112 $aOptions = array('vocab' => $vocab);
113 113
114 - $edit_fields[] = new KTLookupWidget(_kt('Unit'), _('Which Unit is this group part of?'), 'unit_id', $unitId, $this->oPage, false, null, null, $aOptions); 114 + $edit_fields[] = new KTLookupWidget(_kt('Unit'), _kt('Which Unit is this group part of?'), 'unit_id', $unitId, $this->oPage, false, null, null, $aOptions);
115 115
116 $oTemplating =& KTTemplating::getSingleton(); 116 $oTemplating =& KTTemplating::getSingleton();
117 $oTemplate = $oTemplating->loadTemplate("ktcore/principals/editgroup"); 117 $oTemplate = $oTemplating->loadTemplate("ktcore/principals/editgroup");
@@ -445,9 +445,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { @@ -445,9 +445,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher {
445 $this->oPage->setTitle(_kt("Add a new group")); 445 $this->oPage->setTitle(_kt("Add a new group"));
446 446
447 $edit_fields = array(); 447 $edit_fields = array();
448 - $add_fields[] = new KTStringWidget(_kt('Group Name'), _('A short name for the group. e.g. <strong>administrators</strong>.'), 'group_name', null, $this->oPage, true);  
449 - $add_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', false, $this->oPage, false);  
450 - $add_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', false, $this->oPage, false); 448 + $add_fields[] = new KTStringWidget(_kt('Group Name'), _kt('A short name for the group. e.g. <strong>administrators</strong>.'), 'group_name', null, $this->oPage, true);
  449 + $add_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', false, $this->oPage, false);
  450 + $add_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', false, $this->oPage, false);
451 // grab all units. 451 // grab all units.
452 452
453 $oUnits = Unit::getList(); 453 $oUnits = Unit::getList();
@@ -456,7 +456,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { @@ -456,7 +456,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher {
456 foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); } 456 foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); }
457 $aOptions = array('vocab' => $vocab); 457 $aOptions = array('vocab' => $vocab);
458 458
459 - $add_fields[] = new KTLookupWidget(_kt('Unit'), _('Which Unit is this group part of?'), 'unit_id', 0, $this->oPage, false, null, null, $aOptions); 459 + $add_fields[] = new KTLookupWidget(_kt('Unit'), _kt('Which Unit is this group part of?'), 'unit_id', 0, $this->oPage, false, null, null, $aOptions);
460 460
461 $aAuthenticationSources = array(); 461 $aAuthenticationSources = array();
462 $aAllAuthenticationSources =& KTAuthenticationSource::getList(); 462 $aAllAuthenticationSources =& KTAuthenticationSource::getList();
plugins/ktcore/admin/managePermissions.php
@@ -38,8 +38,8 @@ class ManagePermissionsDispatcher extends KTAdminDispatcher { @@ -38,8 +38,8 @@ class ManagePermissionsDispatcher extends KTAdminDispatcher {
38 $this->aBreadcrumbs[] = array('url' => $_SERVER['PHP_SELF'], 'name' => _kt('Manage Permissions')); 38 $this->aBreadcrumbs[] = array('url' => $_SERVER['PHP_SELF'], 'name' => _kt('Manage Permissions'));
39 39
40 $add_fields = array(); 40 $add_fields = array();
41 - $add_fields[] = new KTStringWidget(_kt('System Name'), _('The internal name used for the permission. This should never be changed.'), 'name', null, $this->oPage, true);  
42 - $add_fields[] = new KTStringWidget(_kt('Display Name'), _('A short name that is shown to users whenever permissions must be assigned.'), 'human_name', null, $this->oPage, true); 41 + $add_fields[] = new KTStringWidget(_kt('System Name'), _kt('The internal name used for the permission. This should never be changed.'), 'name', null, $this->oPage, true);
  42 + $add_fields[] = new KTStringWidget(_kt('Display Name'), _kt('A short name that is shown to users whenever permissions must be assigned.'), 'human_name', null, $this->oPage, true);
43 43
44 $oTemplating =& KTTemplating::getSingleton(); 44 $oTemplating =& KTTemplating::getSingleton();
45 $aPermissions =& KTPermission::getList(); 45 $aPermissions =& KTPermission::getList();
plugins/ktcore/admin/roleManagement.php
@@ -46,13 +46,13 @@ class RoleAdminDispatcher extends KTAdminDispatcher { @@ -46,13 +46,13 @@ class RoleAdminDispatcher extends KTAdminDispatcher {
46 if (PEAR::isError($oRole) || ($oRole == false)) { $for_edit = false; } 46 if (PEAR::isError($oRole) || ($oRole == false)) { $for_edit = false; }
47 else { 47 else {
48 $for_edit = true; 48 $for_edit = true;
49 - $edit_fields[] = new KTStringWidget(_kt('Name'), _('A short, human-readable name for the role.'), 'name', $oRole->getName(), $this->oPage, true); 49 + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('A short, human-readable name for the role.'), 'name', $oRole->getName(), $this->oPage, true);
50 } 50 }
51 51
52 $aRoles =& Role::getList('id > 0'); 52 $aRoles =& Role::getList('id > 0');
53 53
54 $add_fields = array(); 54 $add_fields = array();
55 - $add_fields[] = new KTStringWidget(_kt('Name'), _('A short, human-readable name for the role.'), 'name', null, $this->oPage, true); 55 + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('A short, human-readable name for the role.'), 'name', null, $this->oPage, true);
56 56
57 $oTemplating =& KTTemplating::getSingleton(); 57 $oTemplating =& KTTemplating::getSingleton();
58 $oTemplate = $oTemplating->loadTemplate('ktcore/principals/roleadmin'); 58 $oTemplate = $oTemplating->loadTemplate('ktcore/principals/roleadmin');
@@ -116,7 +116,7 @@ class RoleAdminDispatcher extends KTAdminDispatcher { @@ -116,7 +116,7 @@ class RoleAdminDispatcher extends KTAdminDispatcher {
116 $this->startTransaction(); 116 $this->startTransaction();
117 $res = $oRole->delete(); 117 $res = $oRole->delete();
118 if (PEAR::isError($res) || ($res == false)) { 118 if (PEAR::isError($res) || ($res == false)) {
119 - $this->errorRedirectToMain(_kt('Unable to delete the role.') . ' ' . _('Possible cause') . ': ' . $_SESSION['errorMessage']); 119 + $this->errorRedirectToMain(_kt('Unable to delete the role.') . ' ' . _kt('Possible cause') . ': ' . $_SESSION['errorMessage']);
120 } 120 }
121 121
122 $this->successRedirectToMain(sprintf(_kt('Role "%s" deleted. '), $name)); 122 $this->successRedirectToMain(sprintf(_kt('Role "%s" deleted. '), $name));
plugins/ktcore/admin/unitManagement.php
@@ -68,7 +68,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { @@ -68,7 +68,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher {
68 $this->oPage->setTitle(_kt("Add a new unit")); 68 $this->oPage->setTitle(_kt("Add a new unit"));
69 69
70 $add_fields = array(); 70 $add_fields = array();
71 - $add_fields[] = new KTStringWidget(_kt('Unit Name'), _('A short name for the unit. e.g. <strong>Accounting</strong>.'), 'unit_name', null, $this->oPage, true); 71 + $add_fields[] = new KTStringWidget(_kt('Unit Name'), _kt('A short name for the unit. e.g. <strong>Accounting</strong>.'), 'unit_name', null, $this->oPage, true);
72 72
73 $oTemplating =& KTTemplating::getSingleton(); 73 $oTemplating =& KTTemplating::getSingleton();
74 $oTemplate = $oTemplating->loadTemplate("ktcore/principals/addunit"); 74 $oTemplate = $oTemplating->loadTemplate("ktcore/principals/addunit");
@@ -130,7 +130,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { @@ -130,7 +130,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher {
130 } 130 }
131 131
132 $add_fields = array(); 132 $add_fields = array();
133 - $add_fields[] = new KTStaticTextWidget(_kt('Unit Name'), _('A short name for the unit. e.g. <strong>Accounting</strong>.'), 'unit_name', $sName, $this->oPage, true); 133 + $add_fields[] = new KTStaticTextWidget(_kt('Unit Name'), _kt('A short name for the unit. e.g. <strong>Accounting</strong>.'), 'unit_name', $sName, $this->oPage, true);
134 134
135 $isValid = true; 135 $isValid = true;
136 if (KTFolderUtil::exists($oFolder, $sName)) { 136 if (KTFolderUtil::exists($oFolder, $sName)) {
@@ -185,7 +185,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { @@ -185,7 +185,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher {
185 $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']); 185 $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']);
186 186
187 $fields = array(); 187 $fields = array();
188 - $fields[] = new KTStringWidget(_kt('Unit Name'), _('A short name for the unit. e.g. <strong>Accounting</strong>.'), 'unit_name', $oUnit->getName(), $this->oPage, true); 188 + $fields[] = new KTStringWidget(_kt('Unit Name'), _kt('A short name for the unit. e.g. <strong>Accounting</strong>.'), 'unit_name', $oUnit->getName(), $this->oPage, true);
189 189
190 $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/editunit'); 190 $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/editunit');
191 $aTemplateData = array( 191 $aTemplateData = array(
@@ -224,7 +224,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { @@ -224,7 +224,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher {
224 $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']); 224 $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']);
225 225
226 $fields = array(); 226 $fields = array();
227 - $fields[] = new KTCheckboxWidget(_kt('Delete folder'), _('Each unit has an associated folder. While the unit is being deleted, there may be some documents within the associated folder. By unselecting this option, they will not be removed.'), 'delete_folder', true, $this->oPage, true); 227 + $fields[] = new KTCheckboxWidget(_kt('Delete folder'), _kt('Each unit has an associated folder. While the unit is being deleted, there may be some documents within the associated folder. By unselecting this option, they will not be removed.'), 'delete_folder', true, $this->oPage, true);
228 228
229 $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/deleteunit'); 229 $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/deleteunit');
230 $aTemplateData = array( 230 $aTemplateData = array(
plugins/ktcore/admin/userManagement.php
@@ -63,7 +63,7 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { @@ -63,7 +63,7 @@ class KTUserAdminDispatcher extends KTAdminDispatcher {
63 63
64 64
65 $search_fields = array(); 65 $search_fields = array();
66 - $search_fields[] = new KTStringWidget(_kt('Username'), _("Enter part of the person's username. e.g. <strong>ra</strong> will match <strong>brad</strong>."), 'name', $name, $this->oPage, true); 66 + $search_fields[] = new KTStringWidget(_kt('Username'), _kt("Enter part of the person's username. e.g. <strong>ra</strong> will match <strong>brad</strong>."), 'name', $name, $this->oPage, true);
67 67
68 // FIXME handle group search stuff. 68 // FIXME handle group search stuff.
69 $search_results = null; 69 $search_results = null;
@@ -110,15 +110,15 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { @@ -110,15 +110,15 @@ class KTUserAdminDispatcher extends KTAdminDispatcher {
110 } 110 }
111 111
112 $add_fields = array(); 112 $add_fields = array();
113 - $add_fields[] = new KTStringWidget(_kt('Username'), _('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'username', null, $this->oPage, true, null, null, $aOptions);  
114 - $add_fields[] = new KTStringWidget(_kt('Name'), _('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', null, $this->oPage, true, null, null, $aOptions);  
115 - $add_fields[] = new KTStringWidget(_kt('Email Address'), _('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', null, $this->oPage, false, null, null, $aOptions);  
116 - $add_fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _("If this is specified then the user will have notifications sent to the email address entered above. If it isn't set, then the user will only see notifications on the <strong>Dashboard</strong>"), 'email_notifications', true, $this->oPage, false, null, null, $aOptions);  
117 - $add_fields[] = new KTPasswordWidget(_kt('Password'), _('Specify an initial password for the user.') . $passwordAddRequirement, 'password', null, $this->oPage, true, null, null, $aOptions);  
118 - $add_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true, null, null, $aOptions); 113 + $add_fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'username', null, $this->oPage, true, null, null, $aOptions);
  114 + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', null, $this->oPage, true, null, null, $aOptions);
  115 + $add_fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', null, $this->oPage, false, null, null, $aOptions);
  116 + $add_fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _kt("If this is specified then the user will have notifications sent to the email address entered above. If it isn't set, then the user will only see notifications on the <strong>Dashboard</strong>"), 'email_notifications', true, $this->oPage, false, null, null, $aOptions);
  117 + $add_fields[] = new KTPasswordWidget(_kt('Password'), _kt('Specify an initial password for the user.') . $passwordAddRequirement, 'password', null, $this->oPage, true, null, null, $aOptions);
  118 + $add_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _kt('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true, null, null, $aOptions);
119 // nice, easy bits. 119 // nice, easy bits.
120 - $add_fields[] = new KTStringWidget(_kt('Mobile Number'), _("The mobile phone number of the user. If the system is configured to send notifications to cellphones, then this number will be SMS'd with notifications. e.g. <strong>999 9999 999</strong>"), 'mobile_number', null, $this->oPage, false, null, null, $aOptions);  
121 - $add_fields[] = new KTStringWidget(_kt('Maximum Sessions'), _('As a safety precaution, it is useful to limit the number of times a given account can log in, before logging out. This prevents a single account being used by many different people.'), 'max_sessions', '3', $this->oPage, true, null, null, $aOptions); 120 + $add_fields[] = new KTStringWidget(_kt('Mobile Number'), _kt("The mobile phone number of the user. If the system is configured to send notifications to cellphones, then this number will be SMS'd with notifications. e.g. <strong>999 9999 999</strong>"), 'mobile_number', null, $this->oPage, false, null, null, $aOptions);
  121 + $add_fields[] = new KTStringWidget(_kt('Maximum Sessions'), _kt('As a safety precaution, it is useful to limit the number of times a given account can log in, before logging out. This prevents a single account being used by many different people.'), 'max_sessions', '3', $this->oPage, true, null, null, $aOptions);
122 122
123 $aAuthenticationSources =& KTAuthenticationSource::getList(); 123 $aAuthenticationSources =& KTAuthenticationSource::getList();
124 124
@@ -164,12 +164,12 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { @@ -164,12 +164,12 @@ class KTUserAdminDispatcher extends KTAdminDispatcher {
164 $this->aBreadcrumbs[] = array('name' => $oUser->getName()); 164 $this->aBreadcrumbs[] = array('name' => $oUser->getName());
165 165
166 $edit_fields = array(); 166 $edit_fields = array();
167 - $edit_fields[] = new KTStringWidget(_kt('Username'), _('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'username', $oUser->getUsername(), $this->oPage, true);  
168 - $edit_fields[] = new KTStringWidget(_kt('Name'), _('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', $oUser->getName(), $this->oPage, true);  
169 - $edit_fields[] = new KTStringWidget(_kt('Email Address'), _('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', $oUser->getEmail(), $this->oPage, false);  
170 - $edit_fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _('If this is specified then the user will have notifications sent to the email address entered above. If it is not set, then the user will only see notifications on the <strong>Dashboard</strong>'), 'email_notifications', $oUser->getEmailNotification(), $this->oPage, false);  
171 - $edit_fields[] = new KTStringWidget(_kt('Mobile Number'), _("The mobile phone number of the user. If the system is configured to send notifications to cellphones, then this number will be SMS'd with notifications. e.g. <strong>999 9999 999</strong>"), 'mobile_number', $oUser->getMobile(), $this->oPage, false);  
172 - $edit_fields[] = new KTStringWidget(_kt('Maximum Sessions'), _('As a safety precaution, it is useful to limit the number of times a given account can log in, before logging out. This prevents a single account being used by many different people.'), 'max_sessions', $oUser->getMaxSessions(), $this->oPage, true); 167 + $edit_fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'username', $oUser->getUsername(), $this->oPage, true);
  168 + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', $oUser->getName(), $this->oPage, true);
  169 + $edit_fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', $oUser->getEmail(), $this->oPage, false);
  170 + $edit_fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _kt('If this is specified then the user will have notifications sent to the email address entered above. If it is not set, then the user will only see notifications on the <strong>Dashboard</strong>'), 'email_notifications', $oUser->getEmailNotification(), $this->oPage, false);
  171 + $edit_fields[] = new KTStringWidget(_kt('Mobile Number'), _kt("The mobile phone number of the user. If the system is configured to send notifications to cellphones, then this number will be SMS'd with notifications. e.g. <strong>999 9999 999</strong>"), 'mobile_number', $oUser->getMobile(), $this->oPage, false);
  172 + $edit_fields[] = new KTStringWidget(_kt('Maximum Sessions'), _kt('As a safety precaution, it is useful to limit the number of times a given account can log in, before logging out. This prevents a single account being used by many different people.'), 'max_sessions', $oUser->getMaxSessions(), $this->oPage, true);
173 173
174 $oAuthenticationSource = KTAuthenticationSource::getForUser($oUser); 174 $oAuthenticationSource = KTAuthenticationSource::getForUser($oUser);
175 if (is_null($oAuthenticationSource)) { 175 if (is_null($oAuthenticationSource)) {
@@ -209,8 +209,8 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { @@ -209,8 +209,8 @@ class KTUserAdminDispatcher extends KTAdminDispatcher {
209 $this->aBreadcrumbs[] = array('name' => $oUser->getName()); 209 $this->aBreadcrumbs[] = array('name' => $oUser->getName());
210 210
211 $edit_fields = array(); 211 $edit_fields = array();
212 - $edit_fields[] = new KTPasswordWidget(_kt('Password'), _('Specify an initial password for the user.'), 'password', null, $this->oPage, true);  
213 - $edit_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true); 212 + $edit_fields[] = new KTPasswordWidget(_kt('Password'), _kt('Specify an initial password for the user.'), 'password', null, $this->oPage, true);
  213 + $edit_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _kt('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true);
214 214
215 $oTemplating =& KTTemplating::getSingleton(); 215 $oTemplating =& KTTemplating::getSingleton();
216 $oTemplate = $oTemplating->loadTemplate("ktcore/principals/updatepassword"); 216 $oTemplate = $oTemplating->loadTemplate("ktcore/principals/updatepassword");
plugins/ktcore/admin/workflows.php
@@ -411,7 +411,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -411,7 +411,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
411 function do_main () { 411 function do_main () {
412 412
413 $add_fields = array(); 413 $add_fields = array();
414 - $add_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the workflow.'), 'fName', null, $this->oPage, true); 414 + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the workflow.'), 'fName', null, $this->oPage, true);
415 415
416 $oTemplating =& KTTemplating::getSingleton(); 416 $oTemplating =& KTTemplating::getSingleton();
417 $oTemplate =& $oTemplating->loadTemplate('ktcore/workflow/listWorkflows'); 417 $oTemplate =& $oTemplating->loadTemplate('ktcore/workflow/listWorkflows');
@@ -438,7 +438,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -438,7 +438,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
438 $aStates = $aInfo['states']; 438 $aStates = $aInfo['states'];
439 439
440 $edit_fields = array(); 440 $edit_fields = array();
441 - $edit_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the workflow.'), 'fName', $oWorkflow->getName(), $this->oPage, true); 441 + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the workflow.'), 'fName', $oWorkflow->getName(), $this->oPage, true);
442 $aOptions = array(); 442 $aOptions = array();
443 $vocab = array(); 443 $vocab = array();
444 $vocab[0] = 'None - documents cannot use this workflow.'; 444 $vocab[0] = 'None - documents cannot use this workflow.';
@@ -446,14 +446,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -446,14 +446,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
446 $vocab[$state->getId()] = $state->getName(); 446 $vocab[$state->getId()] = $state->getName();
447 } 447 }
448 $aOptions['vocab'] = $vocab; 448 $aOptions['vocab'] = $vocab;
449 - $edit_fields[] = new KTLookupWidget(_kt('Starting State'), _('When a document has this workflow applied to it, to which state should it initially be set. <strong>Note that workflows without a starting state cannot be applied to documents.</strong>'), 'fStartStateId', $oWorkflow->getStartStateId(), $this->oPage, false, null, null, $aOptions); 449 + $edit_fields[] = new KTLookupWidget(_kt('Starting State'), _kt('When a document has this workflow applied to it, to which state should it initially be set. <strong>Note that workflows without a starting state cannot be applied to documents.</strong>'), 'fStartStateId', $oWorkflow->getStartStateId(), $this->oPage, false, null, null, $aOptions);
450 if (is_null($oWorkflow->getStartStateId())) { 450 if (is_null($oWorkflow->getStartStateId())) {
451 $this->oPage->addInfo(_kt('This workflow is currently disabled. To enable it, please assign a starting state in the "Edit workflow properties" box.')); 451 $this->oPage->addInfo(_kt('This workflow is currently disabled. To enable it, please assign a starting state in the "Edit workflow properties" box.'));
452 } 452 }
453 453
454 /* 454 /*
455 $add_state_fields = array(); 455 $add_state_fields = array();
456 - $add_state_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the state.'), 'fName', null, $this->oPage, true); 456 + $add_state_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the state.'), 'fName', null, $this->oPage, true);
457 457
458 458
459 */ 459 */
@@ -610,7 +610,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -610,7 +610,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
610 $aInfo = $this->buildWorkflowInfo($oWorkflow); 610 $aInfo = $this->buildWorkflowInfo($oWorkflow);
611 611
612 $add_fields = array(); 612 $add_fields = array();
613 - $add_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the state.'), 'fName', null, $this->oPage, true); 613 + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the state.'), 'fName', null, $this->oPage, true);
614 614
615 615
616 616
@@ -663,21 +663,21 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -663,21 +663,21 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
663 $aConditions = KTSavedSearch::getConditions(); 663 $aConditions = KTSavedSearch::getConditions();
664 664
665 $add_transition_fields = array(); 665 $add_transition_fields = array();
666 - $add_transition_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the transition.'), 'fName', null, $this->oPage, true); 666 + $add_transition_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the transition.'), 'fName', null, $this->oPage, true);
667 $aOptions = array(); 667 $aOptions = array();
668 $vocab = array(); 668 $vocab = array();
669 foreach($aInfo['states'] as $state) { 669 foreach($aInfo['states'] as $state) {
670 $vocab[$state->getId()] = $state->getName(); 670 $vocab[$state->getId()] = $state->getName();
671 } 671 }
672 $aOptions['vocab'] = $vocab; 672 $aOptions['vocab'] = $vocab;
673 - $add_transition_fields[] = new KTLookupWidget(_kt('Destination State'), _('Once this transition is complete, which state should the document be in?'), 'fTargetStateId', $oWorkflow->getStartStateId(), $this->oPage, true, null, null, $aOptions); 673 + $add_transition_fields[] = new KTLookupWidget(_kt('Destination State'), _kt('Once this transition is complete, which state should the document be in?'), 'fTargetStateId', $oWorkflow->getStartStateId(), $this->oPage, true, null, null, $aOptions);
674 $aOptions = array(); 674 $aOptions = array();
675 $vocab = array(); 675 $vocab = array();
676 foreach($aInfo['permissions'] as $permission) { 676 foreach($aInfo['permissions'] as $permission) {
677 $vocab[$permission->getId()] = $permission->getHumanName(); 677 $vocab[$permission->getId()] = $permission->getHumanName();
678 } 678 }
679 $aOptions['vocab'] = $vocab; 679 $aOptions['vocab'] = $vocab;
680 - $add_transition_fields[] = new KTLookupWidget(_kt('Guard Permission.'), _('Which permission must the user have in order to follow this transition?'), 'fPermissionId', NULL, $this->oPage, true, null, null, $aOptions); 680 + $add_transition_fields[] = new KTLookupWidget(_kt('Guard Permission.'), _kt('Which permission must the user have in order to follow this transition?'), 'fPermissionId', NULL, $this->oPage, true, null, null, $aOptions);
681 681
682 $aOptions = array(); 682 $aOptions = array();
683 $vocab = array(); 683 $vocab = array();
@@ -686,7 +686,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -686,7 +686,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
686 $vocab[$group->getId()] = $group->getName(); 686 $vocab[$group->getId()] = $group->getName();
687 } 687 }
688 $aOptions['vocab'] = $vocab; 688 $aOptions['vocab'] = $vocab;
689 - $add_transition_fields[] = new KTLookupWidget(_kt('Guard Group.'), _('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] = 'None';
@@ -694,7 +694,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -694,7 +694,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
694 $vocab[$role->getId()] = $role->getName(); 694 $vocab[$role->getId()] = $role->getName();
695 } 695 }
696 $aOptions['vocab'] = $vocab; 696 $aOptions['vocab'] = $vocab;
697 - $add_transition_fields[] = new KTLookupWidget(_kt('Guard Role.'), _('Which role must the user have in order to follow this transition?'), 'fRoleId', NULL, $this->oPage, false, null, null, $aOptions); 697 + $add_transition_fields[] = new KTLookupWidget(_kt('Guard Role.'), _kt('Which role must the user have in order to follow this transition?'), 'fRoleId', NULL, $this->oPage, false, null, null, $aOptions);
698 698
699 if (!empty($aConditions)) { 699 if (!empty($aConditions)) {
700 $aOptions = array(); 700 $aOptions = array();
@@ -704,7 +704,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -704,7 +704,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
704 $vocab[$condition->getId()] = $condition->getName(); 704 $vocab[$condition->getId()] = $condition->getName();
705 } 705 }
706 $aOptions['vocab'] = $vocab; 706 $aOptions['vocab'] = $vocab;
707 - $edit_fields[] = new KTLookupWidget(_kt('Guard Condition.'), _('Which condition (stored search) must be satisfied before the transition can take place?'), 'fConditionId', NULL, $this->oPage, false, null, null, $aOptions); 707 + $edit_fields[] = new KTLookupWidget(_kt('Guard Condition.'), _kt('Which condition (stored search) must be satisfied before the transition can take place?'), 'fConditionId', NULL, $this->oPage, false, null, null, $aOptions);
708 } 708 }
709 709
710 710
@@ -858,7 +858,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -858,7 +858,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
858 $aInformed = KTWorkflowUtil::getInformedForState($oState); 858 $aInformed = KTWorkflowUtil::getInformedForState($oState);
859 859
860 $editForm = array(); 860 $editForm = array();
861 - $editForm[] = new KTStringWidget(_kt('Name'), _('A human-readable name for this state. This is shown on the "Browse" page, as well as on the users workflow page.'), 'fName', $oState->getName(), $this->oPage, true); 861 + $editForm[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for this state. This is shown on the "Browse" page, as well as on the users workflow page.'), 'fName', $oState->getName(), $this->oPage, true);
862 862
863 863
864 $this->getPermissionAssignmentsForState($oState); 864 $this->getPermissionAssignmentsForState($oState);
@@ -1224,14 +1224,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -1224,14 +1224,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1224 $aConditions = KTSavedSearch::getConditions(); 1224 $aConditions = KTSavedSearch::getConditions();
1225 1225
1226 $edit_fields = array(); 1226 $edit_fields = array();
1227 - $edit_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the state.'), 'fName', $oTransition->getName(), $this->oPage, true); 1227 + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the state.'), 'fName', $oTransition->getName(), $this->oPage, true);
1228 $aOptions = array(); 1228 $aOptions = array();
1229 $vocab = array(); 1229 $vocab = array();
1230 foreach($aStates as $state) { 1230 foreach($aStates as $state) {
1231 $vocab[$state->getId()] = $state->getName(); 1231 $vocab[$state->getId()] = $state->getName();
1232 } 1232 }
1233 $aOptions['vocab'] = $vocab; 1233 $aOptions['vocab'] = $vocab;
1234 - $edit_fields[] = new KTLookupWidget(_kt('Destination State'), _('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] = 'None';
@@ -1239,7 +1239,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -1239,7 +1239,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1239 $vocab[$permission->getId()] = $permission->getHumanName(); 1239 $vocab[$permission->getId()] = $permission->getHumanName();
1240 } 1240 }
1241 $aOptions['vocab'] = $vocab; 1241 $aOptions['vocab'] = $vocab;
1242 - $edit_fields[] = new KTLookupWidget(_kt('Guard Permission.'), _('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] = 'None';
@@ -1247,7 +1247,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -1247,7 +1247,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1247 $vocab[$group->getId()] = $group->getName(); 1247 $vocab[$group->getId()] = $group->getName();
1248 } 1248 }
1249 $aOptions['vocab'] = $vocab; 1249 $aOptions['vocab'] = $vocab;
1250 - $edit_fields[] = new KTLookupWidget(_kt('Guard Group.'), _('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] = 'None';
@@ -1255,7 +1255,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -1255,7 +1255,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1255 $vocab[$role->getId()] = $role->getName(); 1255 $vocab[$role->getId()] = $role->getName();
1256 } 1256 }
1257 $aOptions['vocab'] = $vocab; 1257 $aOptions['vocab'] = $vocab;
1258 - $edit_fields[] = new KTLookupWidget(_kt('Guard Role.'), _('Which role must the user have in order to follow this transition?'), 'fRoleId', $oTransition->getGuardRoleId(), $this->oPage, false, null, null, $aOptions); 1258 + $edit_fields[] = new KTLookupWidget(_kt('Guard Role.'), _kt('Which role must the user have in order to follow this transition?'), 'fRoleId', $oTransition->getGuardRoleId(), $this->oPage, false, null, null, $aOptions);
1259 1259
1260 if (!empty($aConditions)) { 1260 if (!empty($aConditions)) {
1261 $aOptions = array(); 1261 $aOptions = array();
@@ -1265,7 +1265,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { @@ -1265,7 +1265,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher {
1265 $vocab[$condition->getId()] = $condition->getName(); 1265 $vocab[$condition->getId()] = $condition->getName();
1266 } 1266 }
1267 $aOptions['vocab'] = $vocab; 1267 $aOptions['vocab'] = $vocab;
1268 - $edit_fields[] = new KTLookupWidget(_kt('Guard Condition.'), _('Which condition (stored search) must be satisfied before the transition can take place?'), 'fConditionId', $oTransition->getGuardConditionId(), $this->oPage, false, null, null, $aOptions); 1268 + $edit_fields[] = new KTLookupWidget(_kt('Guard Condition.'), _kt('Which condition (stored search) must be satisfied before the transition can take place?'), 'fConditionId', $oTransition->getGuardConditionId(), $this->oPage, false, null, null, $aOptions);
1269 } 1269 }
1270 1270
1271 $this->aBreadcrumbs[] = array( 1271 $this->aBreadcrumbs[] = array(
plugins/ktcore/authentication/authenticationadminpage.inc.php
@@ -45,7 +45,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { @@ -45,7 +45,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher {
45 $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/manage'); 45 $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/manage');
46 $fields = array(); 46 $fields = array();
47 47
48 - $fields[] = new KTStringWidget(_kt('Name'), _('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true); 48 + $fields[] = new KTStringWidget(_kt('Name'), _kt('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true);
49 49
50 $aVocab = array(); 50 $aVocab = array();
51 $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); 51 $oRegistry =& KTAuthenticationProviderRegistry::getSingleton();
@@ -54,7 +54,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { @@ -54,7 +54,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher {
54 $aVocab[$aProvider[2]] = $aProvider[0]; 54 $aVocab[$aProvider[2]] = $aProvider[0];
55 } 55 }
56 $fieldOptions = array("vocab" => $aVocab); 56 $fieldOptions = array("vocab" => $aVocab);
57 - $fields[] = new KTLookupWidget(_kt('Authentication provider'), _('The type of source (e.g. <strong>LDAP</strong>)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); 57 + $fields[] = new KTLookupWidget(_kt('Authentication provider'), _kt('The type of source (e.g. <strong>LDAP</strong>)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions);
58 58
59 $aSources = KTAuthenticationSource::getList(); 59 $aSources = KTAuthenticationSource::getList();
60 60
@@ -71,7 +71,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { @@ -71,7 +71,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher {
71 $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/addsource'); 71 $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/addsource');
72 $fields = array(); 72 $fields = array();
73 73
74 - $fields[] = new KTStringWidget(_kt('Name'), _('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true); 74 + $fields[] = new KTStringWidget(_kt('Name'), _kt('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true);
75 75
76 $aVocab = array(); 76 $aVocab = array();
77 $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); 77 $oRegistry =& KTAuthenticationProviderRegistry::getSingleton();
@@ -80,7 +80,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { @@ -80,7 +80,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher {
80 $aVocab[$aProvider[2]] = $aProvider[0]; 80 $aVocab[$aProvider[2]] = $aProvider[0];
81 } 81 }
82 $fieldOptions = array("vocab" => $aVocab); 82 $fieldOptions = array("vocab" => $aVocab);
83 - $fields[] = new KTLookupWidget(_kt('Authentication provider'), _('The type of source (e.g. <strong>LDAP</strong>)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); 83 + $fields[] = new KTLookupWidget(_kt('Authentication provider'), _kt('The type of source (e.g. <strong>LDAP</strong>)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions);
84 84
85 $aSources = KTAuthenticationSource::getList(); 85 $aSources = KTAuthenticationSource::getList();
86 86
@@ -124,7 +124,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { @@ -124,7 +124,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher {
124 124
125 $fields = array(); 125 $fields = array();
126 126
127 - $fields[] = new KTStringWidget(_kt('Name'), _('A short name which helps identify this source of authentication data.'), 'authentication_name', $oSource->getName(), $this->oPage, true); 127 + $fields[] = new KTStringWidget(_kt('Name'), _kt('A short name which helps identify this source of authentication data.'), 'authentication_name', $oSource->getName(), $this->oPage, true);
128 128
129 $aVocab = array(); 129 $aVocab = array();
130 $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); 130 $oRegistry =& KTAuthenticationProviderRegistry::getSingleton();
@@ -133,7 +133,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { @@ -133,7 +133,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher {
133 $aVocab[$aProvider[2]] = $aProvider[0]; 133 $aVocab[$aProvider[2]] = $aProvider[0];
134 } 134 }
135 $fieldOptions = array("vocab" => $aVocab); 135 $fieldOptions = array("vocab" => $aVocab);
136 - $fields[] = new KTLookupWidget(_kt('Authentication provider'), _('The type of source (e.g. <strong>LDAP</strong>)'), 'authentication_provider', $oSource->getAuthenticationProvider(), $this->oPage, true, null, $fieldErrors, $fieldOptions); 136 + $fields[] = new KTLookupWidget(_kt('Authentication provider'), _kt('The type of source (e.g. <strong>LDAP</strong>)'), 'authentication_provider', $oSource->getAuthenticationProvider(), $this->oPage, true, null, $fieldErrors, $fieldOptions);
137 137
138 $oTemplate->setData(array( 138 $oTemplate->setData(array(
139 'context' => &$this, 139 'context' => &$this,
plugins/ktcore/document/Rename.php
@@ -71,7 +71,7 @@ class KTDocumentRenameAction extends KTDocumentAction { @@ -71,7 +71,7 @@ class KTDocumentRenameAction extends KTDocumentAction {
71 $this->oPage->setBreadcrumbDetails("rename"); 71 $this->oPage->setBreadcrumbDetails("rename");
72 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/rename'); 72 $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/rename');
73 $fields = array(); 73 $fields = array();
74 - $fields[] = new KTStringWidget(_kt('New file name'), _('The name to which the current file should be renamed.'), 'filename', "", $this->oPage, true); 74 + $fields[] = new KTStringWidget(_kt('New file name'), _kt('The name to which the current file should be renamed.'), 'filename', "", $this->oPage, true);
75 75
76 $oTemplate->setData(array( 76 $oTemplate->setData(array(
77 'context' => &$this, 77 'context' => &$this,
plugins/ktcore/folder/BulkImport.php
@@ -60,7 +60,7 @@ class KTBulkImportFolderAction extends KTFolderAction { @@ -60,7 +60,7 @@ class KTBulkImportFolderAction extends KTFolderAction {
60 $this->oPage->setBreadcrumbDetails(_kt("bulk import")); 60 $this->oPage->setBreadcrumbDetails(_kt("bulk import"));
61 $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkImport'); 61 $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkImport');
62 $add_fields = array(); 62 $add_fields = array();
63 - $add_fields[] = new KTStringWidget(_kt('Path'), _('The path containing the documents to be added to the document management system.'), 'path', "", $this->oPage, true); 63 + $add_fields[] = new KTStringWidget(_kt('Path'), _kt('The path containing the documents to be added to the document management system.'), 'path', "", $this->oPage, true);
64 64
65 $aVocab = array('' => _kt('&lt;Please select a document type&gt;')); 65 $aVocab = array('' => _kt('&lt;Please select a document type&gt;'));
66 foreach (DocumentType::getList() as $oDocumentType) { 66 foreach (DocumentType::getList() as $oDocumentType) {
@@ -70,7 +70,7 @@ class KTBulkImportFolderAction extends KTFolderAction { @@ -70,7 +70,7 @@ class KTBulkImportFolderAction extends KTFolderAction {
70 } 70 }
71 71
72 $fieldOptions = array("vocab" => $aVocab); 72 $fieldOptions = array("vocab" => $aVocab);
73 - $add_fields[] = new KTLookupWidget(_kt('Document Type'), _('Document Types, defined by the administrator, are used to categorise documents. Please select a Document Type from the list below.'), 'fDocumentTypeId', null, $this->oPage, true, "add-document-type", $fieldErrors, $fieldOptions); 73 + $add_fields[] = new KTLookupWidget(_kt('Document Type'), _kt('Document Types, defined by the administrator, are used to categorise documents. Please select a Document Type from the list below.'), 'fDocumentTypeId', null, $this->oPage, true, "add-document-type", $fieldErrors, $fieldOptions);
74 74
75 $fieldsets = array(); 75 $fieldsets = array();
76 $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); 76 $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton();
plugins/ktcore/folder/BulkUpload.php
@@ -67,7 +67,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { @@ -67,7 +67,7 @@ class KTBulkUploadFolderAction extends KTFolderAction {
67 $this->oPage->setBreadcrumbDetails(_kt("bulk upload")); 67 $this->oPage->setBreadcrumbDetails(_kt("bulk upload"));
68 $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkUpload'); 68 $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkUpload');
69 $add_fields = array(); 69 $add_fields = array();
70 - $add_fields[] = new KTFileUploadWidget(_kt('Archive file'), _('The archive file containing the documents you wish to add to the document management system.'), 'file', "", $this->oPage, true); 70 + $add_fields[] = new KTFileUploadWidget(_kt('Archive file'), _kt('The archive file containing the documents you wish to add to the document management system.'), 'file', "", $this->oPage, true);
71 71
72 $aVocab = array('' => _kt('&lt;Please select a document type&gt;')); 72 $aVocab = array('' => _kt('&lt;Please select a document type&gt;'));
73 foreach (DocumentType::getList() as $oDocumentType) { 73 foreach (DocumentType::getList() as $oDocumentType) {
@@ -76,7 +76,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { @@ -76,7 +76,7 @@ class KTBulkUploadFolderAction extends KTFolderAction {
76 } 76 }
77 } 77 }
78 $fieldOptions = array("vocab" => $aVocab); 78 $fieldOptions = array("vocab" => $aVocab);
79 - $add_fields[] = new KTLookupWidget(_kt('Document Type'), _('Document Types, defined by the administrator, are used to categorise documents. Please select a Document Type from the list below.'), 'fDocumentTypeId', null, $this->oPage, true, "add-document-type", $fieldErrors, $fieldOptions); 79 + $add_fields[] = new KTLookupWidget(_kt('Document Type'), _kt('Document Types, defined by the administrator, are used to categorise documents. Please select a Document Type from the list below.'), 'fDocumentTypeId', null, $this->oPage, true, "add-document-type", $fieldErrors, $fieldOptions);
80 80
81 $fieldsets = array(); 81 $fieldsets = array();
82 $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); 82 $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton();
plugins/ktcore/folder/Rename.php
@@ -54,7 +54,7 @@ class KTFolderRenameAction extends KTFolderAction { @@ -54,7 +54,7 @@ class KTFolderRenameAction extends KTFolderAction {
54 $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/rename'); 54 $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/rename');
55 55
56 $fields = array(); 56 $fields = array();
57 - $fields[] = new KTStringWidget(_kt('New folder name'), _('The name to which the current folder should be renamed.'), 'foldername', "", $this->oPage, true); 57 + $fields[] = new KTStringWidget(_kt('New folder name'), _kt('The name to which the current folder should be renamed.'), 'foldername', "", $this->oPage, true);
58 58
59 $oTemplate->setData(array( 59 $oTemplate->setData(array(
60 'context' => &$this, 60 'context' => &$this,
plugins/ktcore/folder/addDocument.php
@@ -66,8 +66,8 @@ class KTFolderAddDocumentAction extends KTFolderAction { @@ -66,8 +66,8 @@ class KTFolderAddDocumentAction extends KTFolderAction {
66 $this->oPage->setTitle(_kt('Add a document')); 66 $this->oPage->setTitle(_kt('Add a document'));
67 $oTemplate =& $this->oValidator->validateTemplate('ktcore/document/add'); 67 $oTemplate =& $this->oValidator->validateTemplate('ktcore/document/add');
68 $add_fields = array(); 68 $add_fields = array();
69 - $add_fields[] = new KTFileUploadWidget(_kt('File'), _('The contents of the document to be added to the document management system.'), 'file', "", $this->oPage, true);  
70 - $add_fields[] = new KTStringWidget(_kt('Title'), _('The document title is used as the main name of a document throughout KnowledgeTree.'), 'title', "", $this->oPage, true); 69 + $add_fields[] = new KTFileUploadWidget(_kt('File'), _kt('The contents of the document to be added to the document management system.'), 'file', "", $this->oPage, true);
  70 + $add_fields[] = new KTStringWidget(_kt('Title'), _kt('The document title is used as the main name of a document throughout KnowledgeTree.'), 'title', "", $this->oPage, true);
71 71
72 72
73 $aVocab = array('' => _kt('&lt;Please select a document type&gt;')); 73 $aVocab = array('' => _kt('&lt;Please select a document type&gt;'));
@@ -78,7 +78,7 @@ class KTFolderAddDocumentAction extends KTFolderAction { @@ -78,7 +78,7 @@ class KTFolderAddDocumentAction extends KTFolderAction {
78 } 78 }
79 79
80 $fieldOptions = array("vocab" => $aVocab); 80 $fieldOptions = array("vocab" => $aVocab);
81 - $add_fields[] = new KTLookupWidget(_kt('Document Type'), _('Document Types, defined by the administrator, are used to categorise documents. Please select a Document Type from the list below.'), 'fDocumentTypeId', null, $this->oPage, true, "add-document-type", $fieldErrors, $fieldOptions); 81 + $add_fields[] = new KTLookupWidget(_kt('Document Type'), _kt('Document Types, defined by the administrator, are used to categorise documents. Please select a Document Type from the list below.'), 'fDocumentTypeId', null, $this->oPage, true, "add-document-type", $fieldErrors, $fieldOptions);
82 82
83 $fieldsets = array(); 83 $fieldsets = array();
84 $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); 84 $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton();
plugins/ktstandard/KTDiscussion.php
@@ -100,8 +100,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction { @@ -100,8 +100,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction {
100 100
101 // Fields for new thread creation 101 // Fields for new thread creation
102 $fields = array(); 102 $fields = array();
103 - $fields[] = new KTStringWidget(_kt("Subject"), _("The topic of discussion in this thread"), "subject", "", $this->oPage, true);  
104 - $fields[] = new KTTextWidget(_kt("Body"), _("Your contribution to the discussion in this thread"), "body", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 10)); 103 + $fields[] = new KTStringWidget(_kt("Subject"), _kt("The topic of discussion in this thread"), "subject", "", $this->oPage, true);
  104 + $fields[] = new KTTextWidget(_kt("Body"), _kt("Your contribution to the discussion in this thread"), "body", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 10));
105 105
106 $threads = DiscussionThread::getList(array('document_id=?', array($this->oDocument->getId()))); 106 $threads = DiscussionThread::getList(array('document_id=?', array($this->oDocument->getId())));
107 107
@@ -180,8 +180,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction { @@ -180,8 +180,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction {
180 180
181 // Fields for new thread creation 181 // Fields for new thread creation
182 $replyFields = array(); 182 $replyFields = array();
183 - $replyFields[] = new KTStringWidget(_kt("Subject"), _("The topic of discussion in this thread"), "subject", "", $this->oPage, true);  
184 - $replyFields[] = new KTTextWidget(_kt("Body"), _("Your contribution to the discussion in this thread"), "body", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 10)); 183 + $replyFields[] = new KTStringWidget(_kt("Subject"), _kt("The topic of discussion in this thread"), "subject", "", $this->oPage, true);
  184 + $replyFields[] = new KTTextWidget(_kt("Body"), _kt("Your contribution to the discussion in this thread"), "body", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 10));
185 185
186 // Fields for closing thread (if user has write permission) 186 // Fields for closing thread (if user has write permission)
187 $closeFields = array(); 187 $closeFields = array();
@@ -189,7 +189,7 @@ class KTDocumentDiscussionAction extends KTDocumentAction { @@ -189,7 +189,7 @@ class KTDocumentDiscussionAction extends KTDocumentAction {
189 $oPermission =& KTPermission::getByName('ktcore.permissions.write'); 189 $oPermission =& KTPermission::getByName('ktcore.permissions.write');
190 if (PEAR::isError($oPermission) || 190 if (PEAR::isError($oPermission) ||
191 KTPermissionUtil::userHasPermissionOnItem($this->oUser, $oPermission, $this->oDocument)) { 191 KTPermissionUtil::userHasPermissionOnItem($this->oUser, $oPermission, $this->oDocument)) {
192 - $closeFields[] = new KTTextWidget(_kt("Reason"), _("Describe the reason for closing this thread"), "reason", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 5)); 192 + $closeFields[] = new KTTextWidget(_kt("Reason"), _kt("Describe the reason for closing this thread"), "reason", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 5));
193 } 193 }
194 194
195 // increment views 195 // increment views
plugins/ktstandard/KTEmail.php
@@ -240,12 +240,12 @@ class KTDocumentEmailAction extends KTDocumentAction { @@ -240,12 +240,12 @@ class KTDocumentEmailAction extends KTDocumentAction {
240 $bAttachment = $oConfig->get('email/allowAttachment', false); 240 $bAttachment = $oConfig->get('email/allowAttachment', false);
241 $bEmailAddresses = $oConfig->get('email/allowEmailAddresses', false); 241 $bEmailAddresses = $oConfig->get('email/allowEmailAddresses', false);
242 if ($bAttachment) { 242 if ($bAttachment) {
243 - $fields[] = new KTCheckboxWidget(_kt("Attach document"), _("By default, documents are sent as links into the document management system. Select this option if you want the document contents to be sent as an attachment in the email."), 'fAttachDocument', null, $this->oPage); 243 + $fields[] = new KTCheckboxWidget(_kt("Attach document"), _kt("By default, documents are sent as links into the document management system. Select this option if you want the document contents to be sent as an attachment in the email."), 'fAttachDocument', null, $this->oPage);
244 } 244 }
245 if ($bEmailAddresses) { 245 if ($bEmailAddresses) {
246 - $fields[] = new KTTextWidget(_kt("Email addresses"), _("Add extra email addresses here"), 'fEmailAddresses', "", $this->oPage, false, null, null, array('cols' => 60, 'rows' => 5)); 246 + $fields[] = new KTTextWidget(_kt("Email addresses"), _kt("Add extra email addresses here"), 'fEmailAddresses', "", $this->oPage, false, null, null, array('cols' => 60, 'rows' => 5));
247 } 247 }
248 - $fields[] = new KTTextWidget(_kt("Comment"), _("A message for those who receive the document"), 'fComment', "", $this->oPage, true, null, null, array('cols' => 60, 'rows' => 5)); 248 + $fields[] = new KTTextWidget(_kt("Comment"), _kt("A message for those who receive the document"), 'fComment', "", $this->oPage, true, null, null, array('cols' => 60, 'rows' => 5));
249 $aGroups = Group::getList(); 249 $aGroups = Group::getList();
250 $aUsers = User::getEmailUsers(); 250 $aUsers = User::getEmailUsers();
251 $aTemplateData = array( 251 $aTemplateData = array(
plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php
@@ -94,7 +94,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { @@ -94,7 +94,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
94 $dn = $oUser->getAuthenticationDetails(); 94 $dn = $oUser->getAuthenticationDetails();
95 95
96 $fields = array(); 96 $fields = array();
97 - $fields[] = new KTStringWidget(_kt('Distinguished name'), _('The location of this user in the LDAP tree'), 'dn', $dn, $this->oPage, true); 97 + $fields[] = new KTStringWidget(_kt('Distinguished name'), _kt('The location of this user in the LDAP tree'), 'dn', $dn, $this->oPage, true);
98 98
99 $aTemplateData = array( 99 $aTemplateData = array(
100 'context' => &$this, 100 'context' => &$this,
@@ -209,13 +209,13 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { @@ -209,13 +209,13 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
209 $this->oValidator->notError($aResults); 209 $this->oValidator->notError($aResults);
210 210
211 $fields = array(); 211 $fields = array();
212 - $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _('The location of the user within the LDAP directory.'), 'dn', $id, $this->oPage);  
213 - $fields[] = new KTStringWidget(_kt('Username'), _('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'ldap_username', $aResults[$this->aAttributes[1]], $this->oPage, true);  
214 - $fields[] = new KTStringWidget(_kt('Name'), _('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', $aResults[$this->aAttributes[0]], $this->oPage, true);  
215 - $fields[] = new KTStringWidget(_kt('Email Address'), _('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', $aResults[$this->aAttributes[4]], $this->oPage, false);  
216 - $fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _('If this is specified then the user will have notifications sent to the email address entered above. If it is not set, then the user will only see notifications on the <strong>Dashboard</strong>'), 'email_notifications', true, $this->oPage, false);  
217 - $fields[] = new KTStringWidget(_kt('Mobile Number'), _('The mobile phone number of the user. If the system is configured to send notifications to cellphones, then this number will have an SMS delivered to it with notifications. e.g. <strong>999 9999 999</strong>'), 'mobile_number', $aResults[$this->aAttributes[5]], $this->oPage, false);  
218 - $fields[] = new KTStringWidget(_kt('Maximum Sessions'), _('As a safety precaution, it is useful to limit the number of times a given account can log in, before logging out. This prevents a single account being used by many different people.'), 'max_sessions', '3', $this->oPage, true); 212 + $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _kt('The location of the user within the LDAP directory.'), 'dn', $id, $this->oPage);
  213 + $fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'ldap_username', $aResults[$this->aAttributes[1]], $this->oPage, true);
  214 + $fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', $aResults[$this->aAttributes[0]], $this->oPage, true);
  215 + $fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', $aResults[$this->aAttributes[4]], $this->oPage, false);
  216 + $fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _kt('If this is specified then the user will have notifications sent to the email address entered above. If it is not set, then the user will only see notifications on the <strong>Dashboard</strong>'), 'email_notifications', true, $this->oPage, false);
  217 + $fields[] = new KTStringWidget(_kt('Mobile Number'), _kt('The mobile phone number of the user. If the system is configured to send notifications to cellphones, then this number will have an SMS delivered to it with notifications. e.g. <strong>999 9999 999</strong>'), 'mobile_number', $aResults[$this->aAttributes[5]], $this->oPage, false);
  218 + $fields[] = new KTStringWidget(_kt('Maximum Sessions'), _kt('As a safety precaution, it is useful to limit the number of times a given account can log in, before logging out. This prevents a single account being used by many different people.'), 'max_sessions', '3', $this->oPage, true);
219 219
220 $aTemplateData = array( 220 $aTemplateData = array(
221 'context' => &$this, 221 'context' => &$this,
@@ -328,8 +328,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { @@ -328,8 +328,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
328 $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchuser'); 328 $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchuser');
329 329
330 $fields = array(); 330 $fields = array();
331 - $fields[] = new KTStringWidget(_kt("User's name"), _("The user's name, or part thereof, to find the user that you wish to add"), 'ldap_name', '', $this->oPage, true);  
332 - $fields[] = new KTCheckboxWidget(_kt("Mass import"), _("Allow for multiple users to be selected to be added (will not get to manually verify the details if selected)"), 'massimport', false, $this->oPage, true); 331 + $fields[] = new KTStringWidget(_kt("User's name"), _kt("The user's name, or part thereof, to find the user that you wish to add"), 'ldap_name', '', $this->oPage, true);
  332 + $fields[] = new KTCheckboxWidget(_kt("Mass import"), _kt("Allow for multiple users to be selected to be added (will not get to manually verify the details if selected)"), 'massimport', false, $this->oPage, true);
333 333
334 $oAuthenticator = $this->getAuthenticator($oSource); 334 $oAuthenticator = $this->getAuthenticator($oSource);
335 $name = KTUtil::arrayGet($_REQUEST, 'ldap_name'); 335 $name = KTUtil::arrayGet($_REQUEST, 'ldap_name');
@@ -376,7 +376,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { @@ -376,7 +376,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
376 $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchgroup'); 376 $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchgroup');
377 377
378 $fields = array(); 378 $fields = array();
379 - $fields[] = new KTStringWidget(_kt("Group's name"), _("The group's name, or part thereof, to find the group that you wish to add"), 'name', '', $this->oPage, true); 379 + $fields[] = new KTStringWidget(_kt("Group's name"), _kt("The group's name, or part thereof, to find the group that you wish to add"), 'name', '', $this->oPage, true);
380 380
381 $oAuthenticator = $this->getAuthenticator($oSource); 381 $oAuthenticator = $this->getAuthenticator($oSource);
382 $name = KTUtil::arrayGet($_REQUEST, 'name'); 382 $name = KTUtil::arrayGet($_REQUEST, 'name');
@@ -408,10 +408,10 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { @@ -408,10 +408,10 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
408 $aAttributes = $oAuthenticator->getGroup($id); 408 $aAttributes = $oAuthenticator->getGroup($id);
409 409
410 $fields = array(); 410 $fields = array();
411 - $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _('The location of the group within the LDAP directory.'), 'dn', $aAttributes['dn'], $this->oPage);  
412 - $fields[] = new KTStringWidget(_kt('Group Name'), _('The name the group will enter to gain access to KnowledgeTree. e.g. <strong>accountants</strong>'), 'ldap_groupname', $aAttributes['cn'], $this->oPage, true);  
413 - $fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', false, $this->oPage, false);  
414 - $fields[] = new KTCheckboxWidget(_kt('System Administrators'), _('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', false, $this->oPage, false); 411 + $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _kt('The location of the group within the LDAP directory.'), 'dn', $aAttributes['dn'], $this->oPage);
  412 + $fields[] = new KTStringWidget(_kt('Group Name'), _kt('The name the group will enter to gain access to KnowledgeTree. e.g. <strong>accountants</strong>'), 'ldap_groupname', $aAttributes['cn'], $this->oPage, true);
  413 + $fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', false, $this->oPage, false);
  414 + $fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', false, $this->oPage, false);
415 415
416 $aTemplateData = array( 416 $aTemplateData = array(
417 'context' => &$this, 417 'context' => &$this,
plugins/ktstandard/workflow/FolderAssociator.php
@@ -107,7 +107,7 @@ class FolderWorkflowAssignmentFolderAction extends KTFolderAction { @@ -107,7 +107,7 @@ class FolderWorkflowAssignmentFolderAction extends KTFolderAction {
107 if (PEAR::isError($res)) { 107 if (PEAR::isError($res)) {
108 $res = null; 108 $res = null;
109 } 109 }
110 - $fields[] = new KTLookupWidget(_kt('Automatic Workflow'), _('If you specify an automatic workflow, new documents will automatically enter that workflows starting state. Setting this to "No Automatic Workflow" will mean that users can choose the appropriate workflow.'), 'fWorkflowId', $res, $this->oPage, true, null, $fieldErrors, $fieldOptions); 110 + $fields[] = new KTLookupWidget(_kt('Automatic Workflow'), _kt('If you specify an automatic workflow, new documents will automatically enter that workflows starting state. Setting this to "No Automatic Workflow" will mean that users can choose the appropriate workflow.'), 'fWorkflowId', $res, $this->oPage, true, null, $fieldErrors, $fieldOptions);
111 111
112 112
113 $oTemplate->setData(array( 113 $oTemplate->setData(array(
plugins/ktstandard/workflow/adminpage.php
@@ -55,7 +55,7 @@ class WorkflowAllocationSelection extends KTAdminDispatcher { @@ -55,7 +55,7 @@ class WorkflowAllocationSelection extends KTAdminDispatcher {
55 foreach ($aTriggers as $aTrigger) { 55 foreach ($aTriggers as $aTrigger) {
56 $aVocab[$aTrigger[2]] = $aTrigger[0]; 56 $aVocab[$aTrigger[2]] = $aTrigger[0];
57 } 57 }
58 - $aFields[] = new KTLookupWidget(_kt('Workflow Plugins'), _('Plugins providing workflow allocators.'),'selection_ns', $this->getHandler(), $this->oPage, true, null, null, array('vocab' => $aVocab)); 58 + $aFields[] = new KTLookupWidget(_kt('Workflow Plugins'), _kt('Plugins providing workflow allocators.'),'selection_ns', $this->getHandler(), $this->oPage, true, null, null, array('vocab' => $aVocab));
59 59
60 $oTemplate =& $this->oValidator->validateTemplate('ktstandard/workflow/allocator_selection'); 60 $oTemplate =& $this->oValidator->validateTemplate('ktstandard/workflow/allocator_selection');
61 $oTemplate->setData(array( 61 $oTemplate->setData(array(