Commit 7d90560c20b157cc4dff4e79f29d23714630730c
1 parent
e299449f
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
Showing
22 changed files
with
119 additions
and
119 deletions
plugins/ktcore/KTCorePlugin.php
| ... | ... | @@ -66,7 +66,7 @@ class KTCorePlugin extends KTPlugin { |
| 66 | 66 | $this->registerDashlet('KTCheckoutDashlet', 'ktcore.dashlet.checkout', 'KTDashlets.php'); |
| 67 | 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 | 71 | $this->registerPortlet(array('browse'), |
| 72 | 72 | 'KTAdminModePortlet', 'ktcore.portlets.admin_mode', |
| ... | ... | @@ -102,20 +102,20 @@ class KTCorePlugin extends KTPlugin { |
| 102 | 102 | |
| 103 | 103 | // users and groups |
| 104 | 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 | 106 | 'admin/userManagement.php', null); |
| 107 | 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 | 109 | 'admin/groupManagement.php', null); |
| 110 | 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 | 112 | 'admin/unitManagement.php', null); |
| 113 | 113 | |
| 114 | 114 | // security |
| 115 | 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 | 117 | $this->registerAdminPage("roles", 'RoleAdminDispatcher', "security", |
| 118 | - _kt("Roles"), _("Create or delete roles"), | |
| 118 | + _kt("Roles"), _kt("Create or delete roles"), | |
| 119 | 119 | 'admin/roleManagement.php', null); |
| 120 | 120 | $this->registerAdminPage("conditions", 'KTConditionDispatcher', "security", |
| 121 | 121 | _kt("Dynamic Conditions"), |
| ... | ... | @@ -136,7 +136,7 @@ class KTCorePlugin extends KTPlugin { |
| 136 | 136 | _kt('Manage the different ways documents can be associated with one another.'), |
| 137 | 137 | 'admin/documentLinks.php', null); |
| 138 | 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 | 140 | 'admin/workflows.php', null); |
| 141 | 141 | |
| 142 | 142 | // storage |
| ... | ... | @@ -145,25 +145,25 @@ class KTCorePlugin extends KTPlugin { |
| 145 | 145 | _kt('Override the checked-out status of documents if a user has failed to do so.'), |
| 146 | 146 | 'admin/documentCheckout.php', null); |
| 147 | 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 | 149 | 'admin/archivedDocuments.php', null); |
| 150 | 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 | 152 | 'admin/deletedDocuments.php', null); |
| 153 | 153 | |
| 154 | 154 | // misc |
| 155 | 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 | 157 | 'admin/manageHelp.php', null); |
| 158 | 158 | $this->registerAdminPage("savedsearch", 'KTSavedSearchDispatcher', 'misc', |
| 159 | 159 | _kt('Saved searches'), |
| 160 | 160 | _kt('Manage saved searches - searches available by default to all users.'), |
| 161 | 161 | 'admin/savedSearch.php', null); |
| 162 | 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 | 164 | 'admin/plugins.php', null); |
| 165 | 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 | 167 | 'admin/techsupport.php', null); |
| 168 | 168 | // plugins |
| 169 | 169 | ... | ... |
plugins/ktcore/KTDocumentActions.php
| ... | ... | @@ -123,7 +123,7 @@ class KTDocumentCheckOutAction extends KTDocumentAction { |
| 123 | 123 | $this->oPage->setBreadcrumbDetails("checkout"); |
| 124 | 124 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkout'); |
| 125 | 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 | 128 | $oTemplate->setData(array( |
| 129 | 129 | 'context' => &$this, |
| ... | ... | @@ -212,8 +212,8 @@ class KTDocumentCheckInAction extends KTDocumentAction { |
| 212 | 212 | |
| 213 | 213 | $sReason = KTUtil::arrayGet($_REQUEST, 'reason', ""); |
| 214 | 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 | 218 | $oTemplate->setData(array( |
| 219 | 219 | 'context' => &$this, |
| ... | ... | @@ -293,7 +293,7 @@ class KTDocumentCancelCheckOutAction extends KTDocumentAction { |
| 293 | 293 | |
| 294 | 294 | $sReason = KTUtil::arrayGet($_REQUEST, 'reason', ""); |
| 295 | 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 | 298 | $oTemplate->setData(array( |
| 299 | 299 | 'context' => &$this, |
| ... | ... | @@ -389,7 +389,7 @@ class KTDocumentDeleteAction extends KTDocumentAction { |
| 389 | 389 | $this->oPage->setBreadcrumbDetails("delete"); |
| 390 | 390 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/delete'); |
| 391 | 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 | 394 | $oTemplate->setData(array( |
| 395 | 395 | 'context' => &$this, |
| ... | ... | @@ -527,7 +527,7 @@ class KTDocumentMoveAction extends KTDocumentAction { |
| 527 | 527 | $move_fields = array(); |
| 528 | 528 | $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false); |
| 529 | 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 | 532 | $oTemplate->setData(array( |
| 533 | 533 | 'context' => &$this, |
| ... | ... | @@ -722,7 +722,7 @@ class KTDocumentCopyAction extends KTDocumentAction { |
| 722 | 722 | $move_fields = array(); |
| 723 | 723 | $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false); |
| 724 | 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 | 727 | $oTemplate->setData(array( |
| 728 | 728 | 'context' => &$this, |
| ... | ... | @@ -832,7 +832,7 @@ class KTDocumentArchiveAction extends KTDocumentAction { |
| 832 | 832 | $this->oPage->setBreadcrumbDetails(_kt("archiving")); |
| 833 | 833 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/archive'); |
| 834 | 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 | 837 | $oTemplate->setData(array( |
| 838 | 838 | 'context' => &$this, |
| ... | ... | @@ -920,7 +920,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction { |
| 920 | 920 | $fieldOptions = array("vocab" => $aVocab); |
| 921 | 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 | 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 | 924 | 'fComments', "", |
| 925 | 925 | $this->oPage, true, null, null, |
| 926 | 926 | array('cols' => 80, 'rows' => 4)); | ... | ... |
plugins/ktcore/KTFolderActions.php
| ... | ... | @@ -53,7 +53,7 @@ class KTFolderAddFolderAction extends KTFolderAction { |
| 53 | 53 | $this->oPage->setBreadcrumbDetails(_kt("add folder")); |
| 54 | 54 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/addFolder'); |
| 55 | 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 | 58 | $oTemplate->setData(array( |
| 59 | 59 | 'context' => &$this, | ... | ... |
plugins/ktcore/admin/documentFields.php
| ... | ... | @@ -126,9 +126,9 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { |
| 126 | 126 | $aErrorOptions['duplicate_message'] = _kt("A fieldset with that name already exists"); |
| 127 | 127 | $aErrorOptions['rename'] = $oFieldset->getId(); |
| 128 | 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 | 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 | 132 | $sDescription = $this->oValidator->validateString($_REQUEST['description'], $aErrorOptions); |
| 133 | 133 | |
| 134 | 134 | $oFieldset->setName($sName); | ... | ... |
plugins/ktcore/admin/documentTypes.php
| ... | ... | @@ -46,7 +46,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { |
| 46 | 46 | $this->oPage->setBreadcrumbDetails('view types'); |
| 47 | 47 | |
| 48 | 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 | 51 | $oTemplating =& KTTemplating::getSingleton(); |
| 52 | 52 | $oTemplate = $oTemplating->loadTemplate('ktcore/documenttypes/list'); |
| ... | ... | @@ -142,7 +142,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { |
| 142 | 142 | $aOptions['vocab'] = $vocab; |
| 143 | 143 | $aOptions['multi'] = true; |
| 144 | 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 | 146 | null, null, $aOptions); |
| 147 | 147 | |
| 148 | 148 | $this->aBreadcrumbs[] = array( | ... | ... |
plugins/ktcore/admin/groupManagement.php
| ... | ... | @@ -61,7 +61,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 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 | 66 | if (!empty($name)) { |
| 67 | 67 | $search_results =& Group::getList('WHERE name LIKE \'%' . DBUtil::escapeSimple($name) . '%\''); |
| ... | ... | @@ -97,9 +97,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { |
| 97 | 97 | $this->oPage->setTitle(sprintf(_kt("Edit Group (%s)"), $oGroup->getName())); |
| 98 | 98 | |
| 99 | 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 | 104 | // grab all units. |
| 105 | 105 | $unitId = $oGroup->getUnitId(); |
| ... | ... | @@ -111,7 +111,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { |
| 111 | 111 | foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); } |
| 112 | 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 | 116 | $oTemplating =& KTTemplating::getSingleton(); |
| 117 | 117 | $oTemplate = $oTemplating->loadTemplate("ktcore/principals/editgroup"); |
| ... | ... | @@ -445,9 +445,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { |
| 445 | 445 | $this->oPage->setTitle(_kt("Add a new group")); |
| 446 | 446 | |
| 447 | 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 | 451 | // grab all units. |
| 452 | 452 | |
| 453 | 453 | $oUnits = Unit::getList(); |
| ... | ... | @@ -456,7 +456,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { |
| 456 | 456 | foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); } |
| 457 | 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 | 461 | $aAuthenticationSources = array(); |
| 462 | 462 | $aAllAuthenticationSources =& KTAuthenticationSource::getList(); | ... | ... |
plugins/ktcore/admin/managePermissions.php
| ... | ... | @@ -38,8 +38,8 @@ class ManagePermissionsDispatcher extends KTAdminDispatcher { |
| 38 | 38 | $this->aBreadcrumbs[] = array('url' => $_SERVER['PHP_SELF'], 'name' => _kt('Manage Permissions')); |
| 39 | 39 | |
| 40 | 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 | 44 | $oTemplating =& KTTemplating::getSingleton(); |
| 45 | 45 | $aPermissions =& KTPermission::getList(); | ... | ... |
plugins/ktcore/admin/roleManagement.php
| ... | ... | @@ -46,13 +46,13 @@ class RoleAdminDispatcher extends KTAdminDispatcher { |
| 46 | 46 | if (PEAR::isError($oRole) || ($oRole == false)) { $for_edit = false; } |
| 47 | 47 | else { |
| 48 | 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 | 52 | $aRoles =& Role::getList('id > 0'); |
| 53 | 53 | |
| 54 | 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 | 57 | $oTemplating =& KTTemplating::getSingleton(); |
| 58 | 58 | $oTemplate = $oTemplating->loadTemplate('ktcore/principals/roleadmin'); |
| ... | ... | @@ -116,7 +116,7 @@ class RoleAdminDispatcher extends KTAdminDispatcher { |
| 116 | 116 | $this->startTransaction(); |
| 117 | 117 | $res = $oRole->delete(); |
| 118 | 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 | 122 | $this->successRedirectToMain(sprintf(_kt('Role "%s" deleted. '), $name)); | ... | ... |
plugins/ktcore/admin/unitManagement.php
| ... | ... | @@ -68,7 +68,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { |
| 68 | 68 | $this->oPage->setTitle(_kt("Add a new unit")); |
| 69 | 69 | |
| 70 | 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 | 73 | $oTemplating =& KTTemplating::getSingleton(); |
| 74 | 74 | $oTemplate = $oTemplating->loadTemplate("ktcore/principals/addunit"); |
| ... | ... | @@ -130,7 +130,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 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 | 135 | $isValid = true; |
| 136 | 136 | if (KTFolderUtil::exists($oFolder, $sName)) { |
| ... | ... | @@ -185,7 +185,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { |
| 185 | 185 | $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']); |
| 186 | 186 | |
| 187 | 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 | 190 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/editunit'); |
| 191 | 191 | $aTemplateData = array( |
| ... | ... | @@ -224,7 +224,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { |
| 224 | 224 | $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']); |
| 225 | 225 | |
| 226 | 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 | 229 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/deleteunit'); |
| 230 | 230 | $aTemplateData = array( | ... | ... |
plugins/ktcore/admin/userManagement.php
| ... | ... | @@ -63,7 +63,7 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { |
| 63 | 63 | |
| 64 | 64 | |
| 65 | 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 | 68 | // FIXME handle group search stuff. |
| 69 | 69 | $search_results = null; |
| ... | ... | @@ -110,15 +110,15 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 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 | 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 | 123 | $aAuthenticationSources =& KTAuthenticationSource::getList(); |
| 124 | 124 | |
| ... | ... | @@ -164,12 +164,12 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { |
| 164 | 164 | $this->aBreadcrumbs[] = array('name' => $oUser->getName()); |
| 165 | 165 | |
| 166 | 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 | 174 | $oAuthenticationSource = KTAuthenticationSource::getForUser($oUser); |
| 175 | 175 | if (is_null($oAuthenticationSource)) { |
| ... | ... | @@ -209,8 +209,8 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { |
| 209 | 209 | $this->aBreadcrumbs[] = array('name' => $oUser->getName()); |
| 210 | 210 | |
| 211 | 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 | 215 | $oTemplating =& KTTemplating::getSingleton(); |
| 216 | 216 | $oTemplate = $oTemplating->loadTemplate("ktcore/principals/updatepassword"); | ... | ... |
plugins/ktcore/admin/workflows.php
| ... | ... | @@ -411,7 +411,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 411 | 411 | function do_main () { |
| 412 | 412 | |
| 413 | 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 | 416 | $oTemplating =& KTTemplating::getSingleton(); |
| 417 | 417 | $oTemplate =& $oTemplating->loadTemplate('ktcore/workflow/listWorkflows'); |
| ... | ... | @@ -438,7 +438,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 438 | 438 | $aStates = $aInfo['states']; |
| 439 | 439 | |
| 440 | 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 | 442 | $aOptions = array(); |
| 443 | 443 | $vocab = array(); |
| 444 | 444 | $vocab[0] = 'None - documents cannot use this workflow.'; |
| ... | ... | @@ -446,14 +446,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 446 | 446 | $vocab[$state->getId()] = $state->getName(); |
| 447 | 447 | } |
| 448 | 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 | 450 | if (is_null($oWorkflow->getStartStateId())) { |
| 451 | 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 | 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 | 610 | $aInfo = $this->buildWorkflowInfo($oWorkflow); |
| 611 | 611 | |
| 612 | 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 | 663 | $aConditions = KTSavedSearch::getConditions(); |
| 664 | 664 | |
| 665 | 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 | 667 | $aOptions = array(); |
| 668 | 668 | $vocab = array(); |
| 669 | 669 | foreach($aInfo['states'] as $state) { |
| 670 | 670 | $vocab[$state->getId()] = $state->getName(); |
| 671 | 671 | } |
| 672 | 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 | 674 | $aOptions = array(); |
| 675 | 675 | $vocab = array(); |
| 676 | 676 | foreach($aInfo['permissions'] as $permission) { |
| 677 | 677 | $vocab[$permission->getId()] = $permission->getHumanName(); |
| 678 | 678 | } |
| 679 | 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 | 682 | $aOptions = array(); |
| 683 | 683 | $vocab = array(); |
| ... | ... | @@ -686,7 +686,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 686 | 686 | $vocab[$group->getId()] = $group->getName(); |
| 687 | 687 | } |
| 688 | 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 | 690 | $aOptions = array(); |
| 691 | 691 | $vocab = array(); |
| 692 | 692 | $vocab[0] = 'None'; |
| ... | ... | @@ -694,7 +694,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 694 | 694 | $vocab[$role->getId()] = $role->getName(); |
| 695 | 695 | } |
| 696 | 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 | 699 | if (!empty($aConditions)) { |
| 700 | 700 | $aOptions = array(); |
| ... | ... | @@ -704,7 +704,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 704 | 704 | $vocab[$condition->getId()] = $condition->getName(); |
| 705 | 705 | } |
| 706 | 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 | 858 | $aInformed = KTWorkflowUtil::getInformedForState($oState); |
| 859 | 859 | |
| 860 | 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 | 864 | $this->getPermissionAssignmentsForState($oState); |
| ... | ... | @@ -1224,14 +1224,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 1224 | 1224 | $aConditions = KTSavedSearch::getConditions(); |
| 1225 | 1225 | |
| 1226 | 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 | 1228 | $aOptions = array(); |
| 1229 | 1229 | $vocab = array(); |
| 1230 | 1230 | foreach($aStates as $state) { |
| 1231 | 1231 | $vocab[$state->getId()] = $state->getName(); |
| 1232 | 1232 | } |
| 1233 | 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 | 1235 | $aOptions = array(); |
| 1236 | 1236 | $vocab = array(); |
| 1237 | 1237 | $vocab[0] = 'None'; |
| ... | ... | @@ -1239,7 +1239,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 1239 | 1239 | $vocab[$permission->getId()] = $permission->getHumanName(); |
| 1240 | 1240 | } |
| 1241 | 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 | 1243 | $aOptions = array(); |
| 1244 | 1244 | $vocab = array(); |
| 1245 | 1245 | $vocab[0] = 'None'; |
| ... | ... | @@ -1247,7 +1247,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 1247 | 1247 | $vocab[$group->getId()] = $group->getName(); |
| 1248 | 1248 | } |
| 1249 | 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 | 1251 | $aOptions = array(); |
| 1252 | 1252 | $vocab = array(); |
| 1253 | 1253 | $vocab[0] = 'None'; |
| ... | ... | @@ -1255,7 +1255,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 1255 | 1255 | $vocab[$role->getId()] = $role->getName(); |
| 1256 | 1256 | } |
| 1257 | 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 | 1260 | if (!empty($aConditions)) { |
| 1261 | 1261 | $aOptions = array(); |
| ... | ... | @@ -1265,7 +1265,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { |
| 1265 | 1265 | $vocab[$condition->getId()] = $condition->getName(); |
| 1266 | 1266 | } |
| 1267 | 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 | 1271 | $this->aBreadcrumbs[] = array( | ... | ... |
plugins/ktcore/authentication/authenticationadminpage.inc.php
| ... | ... | @@ -45,7 +45,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { |
| 45 | 45 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/manage'); |
| 46 | 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 | 50 | $aVocab = array(); |
| 51 | 51 | $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); |
| ... | ... | @@ -54,7 +54,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { |
| 54 | 54 | $aVocab[$aProvider[2]] = $aProvider[0]; |
| 55 | 55 | } |
| 56 | 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 | 59 | $aSources = KTAuthenticationSource::getList(); |
| 60 | 60 | |
| ... | ... | @@ -71,7 +71,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { |
| 71 | 71 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/addsource'); |
| 72 | 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 | 76 | $aVocab = array(); |
| 77 | 77 | $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); |
| ... | ... | @@ -80,7 +80,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { |
| 80 | 80 | $aVocab[$aProvider[2]] = $aProvider[0]; |
| 81 | 81 | } |
| 82 | 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 | 85 | $aSources = KTAuthenticationSource::getList(); |
| 86 | 86 | |
| ... | ... | @@ -124,7 +124,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { |
| 124 | 124 | |
| 125 | 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 | 129 | $aVocab = array(); |
| 130 | 130 | $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); |
| ... | ... | @@ -133,7 +133,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { |
| 133 | 133 | $aVocab[$aProvider[2]] = $aProvider[0]; |
| 134 | 134 | } |
| 135 | 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 | 138 | $oTemplate->setData(array( |
| 139 | 139 | 'context' => &$this, | ... | ... |
plugins/ktcore/document/Rename.php
| ... | ... | @@ -71,7 +71,7 @@ class KTDocumentRenameAction extends KTDocumentAction { |
| 71 | 71 | $this->oPage->setBreadcrumbDetails("rename"); |
| 72 | 72 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/rename'); |
| 73 | 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 | 76 | $oTemplate->setData(array( |
| 77 | 77 | 'context' => &$this, | ... | ... |
plugins/ktcore/folder/BulkImport.php
| ... | ... | @@ -60,7 +60,7 @@ class KTBulkImportFolderAction extends KTFolderAction { |
| 60 | 60 | $this->oPage->setBreadcrumbDetails(_kt("bulk import")); |
| 61 | 61 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkImport'); |
| 62 | 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 | 65 | $aVocab = array('' => _kt('<Please select a document type>')); |
| 66 | 66 | foreach (DocumentType::getList() as $oDocumentType) { |
| ... | ... | @@ -70,7 +70,7 @@ class KTBulkImportFolderAction extends KTFolderAction { |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 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 | 75 | $fieldsets = array(); |
| 76 | 76 | $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); | ... | ... |
plugins/ktcore/folder/BulkUpload.php
| ... | ... | @@ -67,7 +67,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { |
| 67 | 67 | $this->oPage->setBreadcrumbDetails(_kt("bulk upload")); |
| 68 | 68 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkUpload'); |
| 69 | 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 | 72 | $aVocab = array('' => _kt('<Please select a document type>')); |
| 73 | 73 | foreach (DocumentType::getList() as $oDocumentType) { |
| ... | ... | @@ -76,7 +76,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { |
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 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 | 81 | $fieldsets = array(); |
| 82 | 82 | $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); | ... | ... |
plugins/ktcore/folder/Rename.php
| ... | ... | @@ -54,7 +54,7 @@ class KTFolderRenameAction extends KTFolderAction { |
| 54 | 54 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/rename'); |
| 55 | 55 | |
| 56 | 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 | 59 | $oTemplate->setData(array( |
| 60 | 60 | 'context' => &$this, | ... | ... |
plugins/ktcore/folder/addDocument.php
| ... | ... | @@ -66,8 +66,8 @@ class KTFolderAddDocumentAction extends KTFolderAction { |
| 66 | 66 | $this->oPage->setTitle(_kt('Add a document')); |
| 67 | 67 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/document/add'); |
| 68 | 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 | 73 | $aVocab = array('' => _kt('<Please select a document type>')); |
| ... | ... | @@ -78,7 +78,7 @@ class KTFolderAddDocumentAction extends KTFolderAction { |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 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 | 83 | $fieldsets = array(); |
| 84 | 84 | $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); | ... | ... |
plugins/ktstandard/KTDiscussion.php
| ... | ... | @@ -100,8 +100,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction { |
| 100 | 100 | |
| 101 | 101 | // Fields for new thread creation |
| 102 | 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 | 106 | $threads = DiscussionThread::getList(array('document_id=?', array($this->oDocument->getId()))); |
| 107 | 107 | |
| ... | ... | @@ -180,8 +180,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction { |
| 180 | 180 | |
| 181 | 181 | // Fields for new thread creation |
| 182 | 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 | 186 | // Fields for closing thread (if user has write permission) |
| 187 | 187 | $closeFields = array(); |
| ... | ... | @@ -189,7 +189,7 @@ class KTDocumentDiscussionAction extends KTDocumentAction { |
| 189 | 189 | $oPermission =& KTPermission::getByName('ktcore.permissions.write'); |
| 190 | 190 | if (PEAR::isError($oPermission) || |
| 191 | 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 | 195 | // increment views | ... | ... |
plugins/ktstandard/KTEmail.php
| ... | ... | @@ -240,12 +240,12 @@ class KTDocumentEmailAction extends KTDocumentAction { |
| 240 | 240 | $bAttachment = $oConfig->get('email/allowAttachment', false); |
| 241 | 241 | $bEmailAddresses = $oConfig->get('email/allowEmailAddresses', false); |
| 242 | 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 | 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 | 249 | $aGroups = Group::getList(); |
| 250 | 250 | $aUsers = User::getEmailUsers(); |
| 251 | 251 | $aTemplateData = array( | ... | ... |
plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php
| ... | ... | @@ -94,7 +94,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 94 | 94 | $dn = $oUser->getAuthenticationDetails(); |
| 95 | 95 | |
| 96 | 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 | 99 | $aTemplateData = array( |
| 100 | 100 | 'context' => &$this, |
| ... | ... | @@ -209,13 +209,13 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 209 | 209 | $this->oValidator->notError($aResults); |
| 210 | 210 | |
| 211 | 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 | 220 | $aTemplateData = array( |
| 221 | 221 | 'context' => &$this, |
| ... | ... | @@ -328,8 +328,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 328 | 328 | $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchuser'); |
| 329 | 329 | |
| 330 | 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 | 334 | $oAuthenticator = $this->getAuthenticator($oSource); |
| 335 | 335 | $name = KTUtil::arrayGet($_REQUEST, 'ldap_name'); |
| ... | ... | @@ -376,7 +376,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 376 | 376 | $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchgroup'); |
| 377 | 377 | |
| 378 | 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 | 381 | $oAuthenticator = $this->getAuthenticator($oSource); |
| 382 | 382 | $name = KTUtil::arrayGet($_REQUEST, 'name'); |
| ... | ... | @@ -408,10 +408,10 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { |
| 408 | 408 | $aAttributes = $oAuthenticator->getGroup($id); |
| 409 | 409 | |
| 410 | 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 | 416 | $aTemplateData = array( |
| 417 | 417 | 'context' => &$this, | ... | ... |
plugins/ktstandard/workflow/FolderAssociator.php
| ... | ... | @@ -107,7 +107,7 @@ class FolderWorkflowAssignmentFolderAction extends KTFolderAction { |
| 107 | 107 | if (PEAR::isError($res)) { |
| 108 | 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 | 113 | $oTemplate->setData(array( | ... | ... |
plugins/ktstandard/workflow/adminpage.php
| ... | ... | @@ -55,7 +55,7 @@ class WorkflowAllocationSelection extends KTAdminDispatcher { |
| 55 | 55 | foreach ($aTriggers as $aTrigger) { |
| 56 | 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 | 60 | $oTemplate =& $this->oValidator->validateTemplate('ktstandard/workflow/allocator_selection'); |
| 61 | 61 | $oTemplate->setData(array( | ... | ... |