diff --git a/plugins/ktcore/KTCorePlugin.php b/plugins/ktcore/KTCorePlugin.php index 735c62f..4900cea 100644 --- a/plugins/ktcore/KTCorePlugin.php +++ b/plugins/ktcore/KTCorePlugin.php @@ -66,7 +66,7 @@ class KTCorePlugin extends KTPlugin { $this->registerDashlet('KTCheckoutDashlet', 'ktcore.dashlet.checkout', 'KTDashlets.php'); $this->registerDashlet('KTIndexerStatusDashlet', 'ktcore.dashlet.indexer_status', 'KTDashlets.php'); - $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 Authentication Sources allow the system administrator to specify additional sources of authentication data.'), 'authentication/authenticationadminpage.inc.php'); + $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 Authentication Sources allow the system administrator to specify additional sources of authentication data.'), 'authentication/authenticationadminpage.inc.php'); $this->registerPortlet(array('browse'), 'KTAdminModePortlet', 'ktcore.portlets.admin_mode', @@ -102,20 +102,20 @@ class KTCorePlugin extends KTPlugin { // users and groups $this->registerAdminPage("users", 'KTUserAdminDispatcher', "principals", - _kt("Manage Users"), _("Add or remove users from the system."), + _kt("Manage Users"), _kt("Add or remove users from the system."), 'admin/userManagement.php', null); $this->registerAdminPage("groups", 'KTGroupAdminDispatcher', "principals", - _kt("Manage Groups"), _("Add or remove groups from the system."), + _kt("Manage Groups"), _kt("Add or remove groups from the system."), 'admin/groupManagement.php', null); $this->registerAdminPage("units", 'KTUnitAdminDispatcher', "principals", - _kt("Control Units"), _("Specify which organisational units are available within the repository."), + _kt("Control Units"), _kt("Specify which organisational units are available within the repository."), 'admin/unitManagement.php', null); // security $this->registerAdminPage("permissions", 'ManagePermissionsDispatcher', "security", - _kt("Permissions"), _("Create or delete permissions."), 'admin/managePermissions.php', null); + _kt("Permissions"), _kt("Create or delete permissions."), 'admin/managePermissions.php', null); $this->registerAdminPage("roles", 'RoleAdminDispatcher', "security", - _kt("Roles"), _("Create or delete roles"), + _kt("Roles"), _kt("Create or delete roles"), 'admin/roleManagement.php', null); $this->registerAdminPage("conditions", 'KTConditionDispatcher', "security", _kt("Dynamic Conditions"), @@ -136,7 +136,7 @@ class KTCorePlugin extends KTPlugin { _kt('Manage the different ways documents can be associated with one another.'), 'admin/documentLinks.php', null); $this->registerAdminPage("workflows", 'KTWorkflowDispatcher', 'documents', - _kt('Workflows'), _('Configure the process documents go through.'), + _kt('Workflows'), _kt('Configure the process documents go through.'), 'admin/workflows.php', null); // storage @@ -145,25 +145,25 @@ class KTCorePlugin extends KTPlugin { _kt('Override the checked-out status of documents if a user has failed to do so.'), 'admin/documentCheckout.php', null); $this->registerAdminPage("archived", 'ArchivedDocumentsDispatcher', 'storage', - _kt('Archived Document Restoration'), _("Restore old (archived) documents, usually at a user's request."), + _kt('Archived Document Restoration'), _kt("Restore old (archived) documents, usually at a user's request."), 'admin/archivedDocuments.php', null); $this->registerAdminPage("expunge", 'DeletedDocumentsDispatcher', 'storage', - _kt('Restore or Expunge Deleted Documents'), _('Restore previously deleted documents, or permanently expunge them.'), + _kt('Restore or Expunge Deleted Documents'), _kt('Restore previously deleted documents, or permanently expunge them.'), 'admin/deletedDocuments.php', null); // misc $this->registerAdminPage("helpmanagement", 'ManageHelpDispatcher', 'misc', - _kt('Edit Help files'), _('Change the help files that are displayed to users.'), + _kt('Edit Help files'), _kt('Change the help files that are displayed to users.'), 'admin/manageHelp.php', null); $this->registerAdminPage("savedsearch", 'KTSavedSearchDispatcher', 'misc', _kt('Saved searches'), _kt('Manage saved searches - searches available by default to all users.'), 'admin/savedSearch.php', null); $this->registerAdminPage("plugins", 'KTPluginDispatcher', 'misc', - _kt('Manage plugins'), _('Register new plugins, disable plugins, and so forth'), + _kt('Manage plugins'), _kt('Register new plugins, disable plugins, and so forth'), 'admin/plugins.php', null); $this->registerAdminPage("techsupport", 'KTSupportDispatcher', 'misc', - _kt('Support and System information'), _('Information about this system and how to get support.'), + _kt('Support and System information'), _kt('Information about this system and how to get support.'), 'admin/techsupport.php', null); // plugins diff --git a/plugins/ktcore/KTDocumentActions.php b/plugins/ktcore/KTDocumentActions.php index ae5f321..bdab3c0 100644 --- a/plugins/ktcore/KTDocumentActions.php +++ b/plugins/ktcore/KTDocumentActions.php @@ -123,7 +123,7 @@ class KTDocumentCheckOutAction extends KTDocumentAction { $this->oPage->setBreadcrumbDetails("checkout"); $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkout'); $checkout_fields = array(); - $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); + $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); $oTemplate->setData(array( 'context' => &$this, @@ -212,8 +212,8 @@ class KTDocumentCheckInAction extends KTDocumentAction { $sReason = KTUtil::arrayGet($_REQUEST, 'reason', ""); $checkin_fields = array(); - $checkin_fields[] = new KTFileUploadWidget(_kt('File'), _('The updated document.'), 'file', "", $this->oPage, true); - $checkin_fields[] = new KTStringWidget(_kt('Description'), _('Describe the changes made to the document.'), 'reason', $sReason, $this->oPage, true); + $checkin_fields[] = new KTFileUploadWidget(_kt('File'), _kt('The updated document.'), 'file', "", $this->oPage, true); + $checkin_fields[] = new KTStringWidget(_kt('Description'), _kt('Describe the changes made to the document.'), 'reason', $sReason, $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, @@ -293,7 +293,7 @@ class KTDocumentCancelCheckOutAction extends KTDocumentAction { $sReason = KTUtil::arrayGet($_REQUEST, 'reason', ""); $checkin_fields = array(); - $checkin_fields[] = new KTStringWidget(_kt('Reason'), _('Give a reason for cancelling this checkout.'), 'reason', $sReason, $this->oPage, true); + $checkin_fields[] = new KTStringWidget(_kt('Reason'), _kt('Give a reason for cancelling this checkout.'), 'reason', $sReason, $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, @@ -389,7 +389,7 @@ class KTDocumentDeleteAction extends KTDocumentAction { $this->oPage->setBreadcrumbDetails("delete"); $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/delete'); $delete_fields = array(); - $delete_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for this document to be removed.'), 'reason', "", $this->oPage, true); + $delete_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for this document to be removed.'), 'reason', "", $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, @@ -527,7 +527,7 @@ class KTDocumentMoveAction extends KTDocumentAction { $move_fields = array(); $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false); $move_fields[] = new KTStaticTextWidget(_kt('Target folder'), '', 'fFolderId', $sFolderPath, $this->oPage, false); - $move_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for this document to be moved.'), 'reason', "", $this->oPage, true); + $move_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for this document to be moved.'), 'reason', "", $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, @@ -722,7 +722,7 @@ class KTDocumentCopyAction extends KTDocumentAction { $move_fields = array(); $move_fields[] = new KTStaticTextWidget(_kt('Document to move'), '', 'fDocumentId', $sDocumentName, $this->oPage, false); $move_fields[] = new KTStaticTextWidget(_kt('Target folder'), '', 'fFolderId', $sFolderPath, $this->oPage, false); - $move_fields[] = new KTStringWidget(_kt('Reason'), _('The reason for this document to be moved.'), 'reason', "", $this->oPage, true); + $move_fields[] = new KTStringWidget(_kt('Reason'), _kt('The reason for this document to be moved.'), 'reason', "", $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, @@ -832,7 +832,7 @@ class KTDocumentArchiveAction extends KTDocumentAction { $this->oPage->setBreadcrumbDetails(_kt("archiving")); $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/archive'); $fields = array(); - $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); + $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); $oTemplate->setData(array( 'context' => &$this, @@ -920,7 +920,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction { $fieldOptions = array("vocab" => $aVocab); $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); $transition_fields[] = new KTTextWidget( - _kt('Reason for transition'), _('Describe why this document qualifies to be changed from its current state to the destination state of the transition chosen.'), + _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.'), 'fComments', "", $this->oPage, true, null, null, array('cols' => 80, 'rows' => 4)); diff --git a/plugins/ktcore/KTFolderActions.php b/plugins/ktcore/KTFolderActions.php index 0197fd8..bed8433 100644 --- a/plugins/ktcore/KTFolderActions.php +++ b/plugins/ktcore/KTFolderActions.php @@ -53,7 +53,7 @@ class KTFolderAddFolderAction extends KTFolderAction { $this->oPage->setBreadcrumbDetails(_kt("add folder")); $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/addFolder'); $fields = array(); - $fields[] = new KTStringWidget(_kt('Folder name'), _('The name for the new folder.'), 'name', "", $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Folder name'), _kt('The name for the new folder.'), 'name', "", $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, diff --git a/plugins/ktcore/admin/documentFields.php b/plugins/ktcore/admin/documentFields.php index cdcc817..d315075 100755 --- a/plugins/ktcore/admin/documentFields.php +++ b/plugins/ktcore/admin/documentFields.php @@ -126,9 +126,9 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { $aErrorOptions['duplicate_message'] = _kt("A fieldset with that name already exists"); $aErrorOptions['rename'] = $oFieldset->getId(); $sName = $this->oValidator->validateEntityName("KTFieldset", $_REQUEST['name'], $aErrorOptions); - $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _("Namespace")); + $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _kt("Namespace")); $sNamespace = $this->oValidator->validateString($_REQUEST['namespace'], $aErrorOptions); - $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _("Description")); + $aErrorOptions['message'] = sprintf(_kt("The field '%s' is a required field"), _kt("Description")); $sDescription = $this->oValidator->validateString($_REQUEST['description'], $aErrorOptions); $oFieldset->setName($sName); diff --git a/plugins/ktcore/admin/documentTypes.php b/plugins/ktcore/admin/documentTypes.php index 7b1d9fd..834a1aa 100755 --- a/plugins/ktcore/admin/documentTypes.php +++ b/plugins/ktcore/admin/documentTypes.php @@ -46,7 +46,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { $this->oPage->setBreadcrumbDetails('view types'); $addFields = array(); - $addFields[] = new KTStringWidget(_kt('Name'), _('A short, human-readable name for the document type.'), 'name', null, $this->oPage, true); + $addFields[] = new KTStringWidget(_kt('Name'), _kt('A short, human-readable name for the document type.'), 'name', null, $this->oPage, true); $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate('ktcore/documenttypes/list'); @@ -142,7 +142,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { $aOptions['vocab'] = $vocab; $aOptions['multi'] = true; $aOptions['size'] = 5; - $availableTypesWidget =& new KTLookupWidget(_kt('Available Fieldsets'), _('Select the fieldsets which you wish to associate with this document type'), 'fieldsetid[]', null, $this->oPage, true, + $availableTypesWidget =& new KTLookupWidget(_kt('Available Fieldsets'), _kt('Select the fieldsets which you wish to associate with this document type'), 'fieldsetid[]', null, $this->oPage, true, null, null, $aOptions); $this->aBreadcrumbs[] = array( diff --git a/plugins/ktcore/admin/groupManagement.php b/plugins/ktcore/admin/groupManagement.php index f5115d6..e892f38 100755 --- a/plugins/ktcore/admin/groupManagement.php +++ b/plugins/ktcore/admin/groupManagement.php @@ -61,7 +61,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { } $search_fields = array(); - $search_fields[] = new KTStringWidget(_kt('Group Name'), _("Enter part of the group's name. e.g. ad will match administrators."), 'name', $name, $this->oPage, true); + $search_fields[] = new KTStringWidget(_kt('Group Name'), _kt("Enter part of the group's name. e.g. ad will match administrators."), 'name', $name, $this->oPage, true); if (!empty($name)) { $search_results =& Group::getList('WHERE name LIKE \'%' . DBUtil::escapeSimple($name) . '%\''); @@ -97,9 +97,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { $this->oPage->setTitle(sprintf(_kt("Edit Group (%s)"), $oGroup->getName())); $edit_fields = array(); - $edit_fields[] = new KTStringWidget(_kt('Group Name'), _('A short name for the group. e.g. administrators.'), 'group_name', $oGroup->getName(), $this->oPage, true); - $edit_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _('Should all the members of this group be given unit administration privileges?'), 'is_unitadmin', $oGroup->getUnitAdmin(), $this->oPage, false); - $edit_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _('Should all the members of this group be given system administration privileges?'), 'is_sysadmin', $oGroup->getSysAdmin(), $this->oPage, false); + $edit_fields[] = new KTStringWidget(_kt('Group Name'), _kt('A short name for the group. e.g. administrators.'), 'group_name', $oGroup->getName(), $this->oPage, true); + $edit_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given unit administration privileges?'), 'is_unitadmin', $oGroup->getUnitAdmin(), $this->oPage, false); + $edit_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given system administration privileges?'), 'is_sysadmin', $oGroup->getSysAdmin(), $this->oPage, false); // grab all units. $unitId = $oGroup->getUnitId(); @@ -111,7 +111,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); } $aOptions = array('vocab' => $vocab); - $edit_fields[] = new KTLookupWidget(_kt('Unit'), _('Which Unit is this group part of?'), 'unit_id', $unitId, $this->oPage, false, null, null, $aOptions); + $edit_fields[] = new KTLookupWidget(_kt('Unit'), _kt('Which Unit is this group part of?'), 'unit_id', $unitId, $this->oPage, false, null, null, $aOptions); $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate("ktcore/principals/editgroup"); @@ -445,9 +445,9 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { $this->oPage->setTitle(_kt("Add a new group")); $edit_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Group Name'), _('A short name for the group. e.g. administrators.'), 'group_name', null, $this->oPage, true); - $add_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _('Should all the members of this group be given unit administration privileges?'), 'is_unitadmin', false, $this->oPage, false); - $add_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _('Should all the members of this group be given system administration privileges?'), 'is_sysadmin', false, $this->oPage, false); + $add_fields[] = new KTStringWidget(_kt('Group Name'), _kt('A short name for the group. e.g. administrators.'), 'group_name', null, $this->oPage, true); + $add_fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given unit administration privileges?'), 'is_unitadmin', false, $this->oPage, false); + $add_fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given system administration privileges?'), 'is_sysadmin', false, $this->oPage, false); // grab all units. $oUnits = Unit::getList(); @@ -456,7 +456,7 @@ class KTGroupAdminDispatcher extends KTAdminDispatcher { foreach ($oUnits as $oUnit) { $vocab[$oUnit->getID()] = $oUnit->getName(); } $aOptions = array('vocab' => $vocab); - $add_fields[] = new KTLookupWidget(_kt('Unit'), _('Which Unit is this group part of?'), 'unit_id', 0, $this->oPage, false, null, null, $aOptions); + $add_fields[] = new KTLookupWidget(_kt('Unit'), _kt('Which Unit is this group part of?'), 'unit_id', 0, $this->oPage, false, null, null, $aOptions); $aAuthenticationSources = array(); $aAllAuthenticationSources =& KTAuthenticationSource::getList(); diff --git a/plugins/ktcore/admin/managePermissions.php b/plugins/ktcore/admin/managePermissions.php index 8c1f428..336008c 100755 --- a/plugins/ktcore/admin/managePermissions.php +++ b/plugins/ktcore/admin/managePermissions.php @@ -38,8 +38,8 @@ class ManagePermissionsDispatcher extends KTAdminDispatcher { $this->aBreadcrumbs[] = array('url' => $_SERVER['PHP_SELF'], 'name' => _kt('Manage Permissions')); $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('System Name'), _('The internal name used for the permission. This should never be changed.'), 'name', null, $this->oPage, true); - $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); + $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); + $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); $oTemplating =& KTTemplating::getSingleton(); $aPermissions =& KTPermission::getList(); diff --git a/plugins/ktcore/admin/roleManagement.php b/plugins/ktcore/admin/roleManagement.php index 76448ac..0ed8b55 100644 --- a/plugins/ktcore/admin/roleManagement.php +++ b/plugins/ktcore/admin/roleManagement.php @@ -46,13 +46,13 @@ class RoleAdminDispatcher extends KTAdminDispatcher { if (PEAR::isError($oRole) || ($oRole == false)) { $for_edit = false; } else { $for_edit = true; - $edit_fields[] = new KTStringWidget(_kt('Name'), _('A short, human-readable name for the role.'), 'name', $oRole->getName(), $this->oPage, true); + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('A short, human-readable name for the role.'), 'name', $oRole->getName(), $this->oPage, true); } $aRoles =& Role::getList('id > 0'); $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Name'), _('A short, human-readable name for the role.'), 'name', null, $this->oPage, true); + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('A short, human-readable name for the role.'), 'name', null, $this->oPage, true); $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate('ktcore/principals/roleadmin'); @@ -116,7 +116,7 @@ class RoleAdminDispatcher extends KTAdminDispatcher { $this->startTransaction(); $res = $oRole->delete(); if (PEAR::isError($res) || ($res == false)) { - $this->errorRedirectToMain(_kt('Unable to delete the role.') . ' ' . _('Possible cause') . ': ' . $_SESSION['errorMessage']); + $this->errorRedirectToMain(_kt('Unable to delete the role.') . ' ' . _kt('Possible cause') . ': ' . $_SESSION['errorMessage']); } $this->successRedirectToMain(sprintf(_kt('Role "%s" deleted. '), $name)); diff --git a/plugins/ktcore/admin/unitManagement.php b/plugins/ktcore/admin/unitManagement.php index 8fb7123..462bfb6 100755 --- a/plugins/ktcore/admin/unitManagement.php +++ b/plugins/ktcore/admin/unitManagement.php @@ -68,7 +68,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { $this->oPage->setTitle(_kt("Add a new unit")); $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Unit Name'), _('A short name for the unit. e.g. Accounting.'), 'unit_name', null, $this->oPage, true); + $add_fields[] = new KTStringWidget(_kt('Unit Name'), _kt('A short name for the unit. e.g. Accounting.'), 'unit_name', null, $this->oPage, true); $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate("ktcore/principals/addunit"); @@ -130,7 +130,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { } $add_fields = array(); - $add_fields[] = new KTStaticTextWidget(_kt('Unit Name'), _('A short name for the unit. e.g. Accounting.'), 'unit_name', $sName, $this->oPage, true); + $add_fields[] = new KTStaticTextWidget(_kt('Unit Name'), _kt('A short name for the unit. e.g. Accounting.'), 'unit_name', $sName, $this->oPage, true); $isValid = true; if (KTFolderUtil::exists($oFolder, $sName)) { @@ -185,7 +185,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']); $fields = array(); - $fields[] = new KTStringWidget(_kt('Unit Name'), _('A short name for the unit. e.g. Accounting.'), 'unit_name', $oUnit->getName(), $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Unit Name'), _kt('A short name for the unit. e.g. Accounting.'), 'unit_name', $oUnit->getName(), $this->oPage, true); $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/editunit'); $aTemplateData = array( @@ -224,7 +224,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { $oUnit =& $this->oValidator->validateUnit($_REQUEST['unit_id']); $fields = array(); - $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); + $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); $oTemplate =& $this->oValidator->validateTemplate('ktcore/principals/deleteunit'); $aTemplateData = array( diff --git a/plugins/ktcore/admin/userManagement.php b/plugins/ktcore/admin/userManagement.php index ecc4b22..ee0ea25 100755 --- a/plugins/ktcore/admin/userManagement.php +++ b/plugins/ktcore/admin/userManagement.php @@ -63,7 +63,7 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { $search_fields = array(); - $search_fields[] = new KTStringWidget(_kt('Username'), _("Enter part of the person's username. e.g. ra will match brad."), 'name', $name, $this->oPage, true); + $search_fields[] = new KTStringWidget(_kt('Username'), _kt("Enter part of the person's username. e.g. ra will match brad."), 'name', $name, $this->oPage, true); // FIXME handle group search stuff. $search_results = null; @@ -110,15 +110,15 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { } $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Username'), _('The username the user will enter to gain access to KnowledgeTree. e.g. jsmith'), 'username', null, $this->oPage, true, null, null, $aOptions); - $add_fields[] = new KTStringWidget(_kt('Name'), _('The full name of the user. This is shown in reports and listings. e.g. John Smith'), 'name', null, $this->oPage, true, null, null, $aOptions); - $add_fields[] = new KTStringWidget(_kt('Email Address'), _('The email address of the user. Notifications and alerts are mailed to this address if email notifications is set below. e.g. jsmith@acme.com'), 'email_address', null, $this->oPage, false, null, null, $aOptions); - $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 Dashboard"), 'email_notifications', true, $this->oPage, false, null, null, $aOptions); - $add_fields[] = new KTPasswordWidget(_kt('Password'), _('Specify an initial password for the user.') . $passwordAddRequirement, 'password', null, $this->oPage, true, null, null, $aOptions); - $add_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true, null, null, $aOptions); + $add_fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. jsmith'), 'username', null, $this->oPage, true, null, null, $aOptions); + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. John Smith'), 'name', null, $this->oPage, true, null, null, $aOptions); + $add_fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if email notifications is set below. e.g. jsmith@acme.com'), 'email_address', null, $this->oPage, false, null, null, $aOptions); + $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 Dashboard"), 'email_notifications', true, $this->oPage, false, null, null, $aOptions); + $add_fields[] = new KTPasswordWidget(_kt('Password'), _kt('Specify an initial password for the user.') . $passwordAddRequirement, 'password', null, $this->oPage, true, null, null, $aOptions); + $add_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _kt('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true, null, null, $aOptions); // nice, easy bits. - $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. 999 9999 999"), 'mobile_number', null, $this->oPage, false, null, null, $aOptions); - $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); + $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. 999 9999 999"), 'mobile_number', null, $this->oPage, false, null, null, $aOptions); + $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); $aAuthenticationSources =& KTAuthenticationSource::getList(); @@ -164,12 +164,12 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { $this->aBreadcrumbs[] = array('name' => $oUser->getName()); $edit_fields = array(); - $edit_fields[] = new KTStringWidget(_kt('Username'), _('The username the user will enter to gain access to KnowledgeTree. e.g. jsmith'), 'username', $oUser->getUsername(), $this->oPage, true); - $edit_fields[] = new KTStringWidget(_kt('Name'), _('The full name of the user. This is shown in reports and listings. e.g. John Smith'), 'name', $oUser->getName(), $this->oPage, true); - $edit_fields[] = new KTStringWidget(_kt('Email Address'), _('The email address of the user. Notifications and alerts are mailed to this address if email notifications is set below. e.g. jsmith@acme.com'), 'email_address', $oUser->getEmail(), $this->oPage, false); - $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 Dashboard'), 'email_notifications', $oUser->getEmailNotification(), $this->oPage, false); - $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. 999 9999 999"), 'mobile_number', $oUser->getMobile(), $this->oPage, false); - $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); + $edit_fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. jsmith'), 'username', $oUser->getUsername(), $this->oPage, true); + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. John Smith'), 'name', $oUser->getName(), $this->oPage, true); + $edit_fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if email notifications is set below. e.g. jsmith@acme.com'), 'email_address', $oUser->getEmail(), $this->oPage, false); + $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 Dashboard'), 'email_notifications', $oUser->getEmailNotification(), $this->oPage, false); + $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. 999 9999 999"), 'mobile_number', $oUser->getMobile(), $this->oPage, false); + $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); $oAuthenticationSource = KTAuthenticationSource::getForUser($oUser); if (is_null($oAuthenticationSource)) { @@ -209,8 +209,8 @@ class KTUserAdminDispatcher extends KTAdminDispatcher { $this->aBreadcrumbs[] = array('name' => $oUser->getName()); $edit_fields = array(); - $edit_fields[] = new KTPasswordWidget(_kt('Password'), _('Specify an initial password for the user.'), 'password', null, $this->oPage, true); - $edit_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true); + $edit_fields[] = new KTPasswordWidget(_kt('Password'), _kt('Specify an initial password for the user.'), 'password', null, $this->oPage, true); + $edit_fields[] = new KTPasswordWidget(_kt('Confirm Password'), _kt('Confirm the password specified above.'), 'confirm_password', null, $this->oPage, true); $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate("ktcore/principals/updatepassword"); diff --git a/plugins/ktcore/admin/workflows.php b/plugins/ktcore/admin/workflows.php index 46144a6..994817f 100755 --- a/plugins/ktcore/admin/workflows.php +++ b/plugins/ktcore/admin/workflows.php @@ -411,7 +411,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { function do_main () { $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the workflow.'), 'fName', null, $this->oPage, true); + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the workflow.'), 'fName', null, $this->oPage, true); $oTemplating =& KTTemplating::getSingleton(); $oTemplate =& $oTemplating->loadTemplate('ktcore/workflow/listWorkflows'); @@ -438,7 +438,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $aStates = $aInfo['states']; $edit_fields = array(); - $edit_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the workflow.'), 'fName', $oWorkflow->getName(), $this->oPage, true); + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the workflow.'), 'fName', $oWorkflow->getName(), $this->oPage, true); $aOptions = array(); $vocab = array(); $vocab[0] = 'None - documents cannot use this workflow.'; @@ -446,14 +446,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$state->getId()] = $state->getName(); } $aOptions['vocab'] = $vocab; - $edit_fields[] = new KTLookupWidget(_kt('Starting State'), _('When a document has this workflow applied to it, to which state should it initially be set. Note that workflows without a starting state cannot be applied to documents.'), 'fStartStateId', $oWorkflow->getStartStateId(), $this->oPage, false, null, null, $aOptions); + $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. Note that workflows without a starting state cannot be applied to documents.'), 'fStartStateId', $oWorkflow->getStartStateId(), $this->oPage, false, null, null, $aOptions); if (is_null($oWorkflow->getStartStateId())) { $this->oPage->addInfo(_kt('This workflow is currently disabled. To enable it, please assign a starting state in the "Edit workflow properties" box.')); } /* $add_state_fields = array(); - $add_state_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the state.'), 'fName', null, $this->oPage, true); + $add_state_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the state.'), 'fName', null, $this->oPage, true); */ @@ -610,7 +610,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $aInfo = $this->buildWorkflowInfo($oWorkflow); $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the state.'), 'fName', null, $this->oPage, true); + $add_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the state.'), 'fName', null, $this->oPage, true); @@ -663,21 +663,21 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $aConditions = KTSavedSearch::getConditions(); $add_transition_fields = array(); - $add_transition_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the transition.'), 'fName', null, $this->oPage, true); + $add_transition_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the transition.'), 'fName', null, $this->oPage, true); $aOptions = array(); $vocab = array(); foreach($aInfo['states'] as $state) { $vocab[$state->getId()] = $state->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); $aOptions = array(); $vocab = array(); foreach($aInfo['permissions'] as $permission) { $vocab[$permission->getId()] = $permission->getHumanName(); } $aOptions['vocab'] = $vocab; - $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); + $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); $aOptions = array(); $vocab = array(); @@ -686,7 +686,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$group->getId()] = $group->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); $aOptions = array(); $vocab = array(); $vocab[0] = 'None'; @@ -694,7 +694,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$role->getId()] = $role->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); if (!empty($aConditions)) { $aOptions = array(); @@ -704,7 +704,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$condition->getId()] = $condition->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); } @@ -858,7 +858,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $aInformed = KTWorkflowUtil::getInformedForState($oState); $editForm = array(); - $editForm[] = new KTStringWidget(_kt('Name'), _('A human-readable name for this state. This is shown on the "Browse" page, as well as on the user\'s workflow page.'), 'fName', $oState->getName(), $this->oPage, true); + $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 user\'s workflow page.'), 'fName', $oState->getName(), $this->oPage, true); $this->getPermissionAssignmentsForState($oState); @@ -1224,14 +1224,14 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $aConditions = KTSavedSearch::getConditions(); $edit_fields = array(); - $edit_fields[] = new KTStringWidget(_kt('Name'), _('A human-readable name for the state.'), 'fName', $oTransition->getName(), $this->oPage, true); + $edit_fields[] = new KTStringWidget(_kt('Name'), _kt('A human-readable name for the state.'), 'fName', $oTransition->getName(), $this->oPage, true); $aOptions = array(); $vocab = array(); foreach($aStates as $state) { $vocab[$state->getId()] = $state->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); $aOptions = array(); $vocab = array(); $vocab[0] = 'None'; @@ -1239,7 +1239,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$permission->getId()] = $permission->getHumanName(); } $aOptions['vocab'] = $vocab; - $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); + $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); $aOptions = array(); $vocab = array(); $vocab[0] = 'None'; @@ -1247,7 +1247,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$group->getId()] = $group->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); $aOptions = array(); $vocab = array(); $vocab[0] = 'None'; @@ -1255,7 +1255,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$role->getId()] = $role->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); if (!empty($aConditions)) { $aOptions = array(); @@ -1265,7 +1265,7 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { $vocab[$condition->getId()] = $condition->getName(); } $aOptions['vocab'] = $vocab; - $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); + $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); } $this->aBreadcrumbs[] = array( diff --git a/plugins/ktcore/authentication/authenticationadminpage.inc.php b/plugins/ktcore/authentication/authenticationadminpage.inc.php index 3425ece..49a4c59 100644 --- a/plugins/ktcore/authentication/authenticationadminpage.inc.php +++ b/plugins/ktcore/authentication/authenticationadminpage.inc.php @@ -45,7 +45,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/manage'); $fields = array(); - $fields[] = new KTStringWidget(_kt('Name'), _('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Name'), _kt('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true); $aVocab = array(); $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); @@ -54,7 +54,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { $aVocab[$aProvider[2]] = $aProvider[0]; } $fieldOptions = array("vocab" => $aVocab); - $fields[] = new KTLookupWidget(_kt('Authentication provider'), _('The type of source (e.g. LDAP)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); + $fields[] = new KTLookupWidget(_kt('Authentication provider'), _kt('The type of source (e.g. LDAP)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); $aSources = KTAuthenticationSource::getList(); @@ -71,7 +71,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { $oTemplate =& $this->oValidator->validateTemplate('ktcore/authentication/addsource'); $fields = array(); - $fields[] = new KTStringWidget(_kt('Name'), _('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Name'), _kt('A short name which helps identify this source of authentication data.'), 'name', "", $this->oPage, true); $aVocab = array(); $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); @@ -80,7 +80,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { $aVocab[$aProvider[2]] = $aProvider[0]; } $fieldOptions = array("vocab" => $aVocab); - $fields[] = new KTLookupWidget(_kt('Authentication provider'), _('The type of source (e.g. LDAP)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); + $fields[] = new KTLookupWidget(_kt('Authentication provider'), _kt('The type of source (e.g. LDAP)'), 'authentication_provider', null, $this->oPage, true, null, $fieldErrors, $fieldOptions); $aSources = KTAuthenticationSource::getList(); @@ -124,7 +124,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { $fields = array(); - $fields[] = new KTStringWidget(_kt('Name'), _('A short name which helps identify this source of authentication data.'), 'authentication_name', $oSource->getName(), $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Name'), _kt('A short name which helps identify this source of authentication data.'), 'authentication_name', $oSource->getName(), $this->oPage, true); $aVocab = array(); $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); @@ -133,7 +133,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { $aVocab[$aProvider[2]] = $aProvider[0]; } $fieldOptions = array("vocab" => $aVocab); - $fields[] = new KTLookupWidget(_kt('Authentication provider'), _('The type of source (e.g. LDAP)'), 'authentication_provider', $oSource->getAuthenticationProvider(), $this->oPage, true, null, $fieldErrors, $fieldOptions); + $fields[] = new KTLookupWidget(_kt('Authentication provider'), _kt('The type of source (e.g. LDAP)'), 'authentication_provider', $oSource->getAuthenticationProvider(), $this->oPage, true, null, $fieldErrors, $fieldOptions); $oTemplate->setData(array( 'context' => &$this, diff --git a/plugins/ktcore/document/Rename.php b/plugins/ktcore/document/Rename.php index 508d212..8328d26 100644 --- a/plugins/ktcore/document/Rename.php +++ b/plugins/ktcore/document/Rename.php @@ -71,7 +71,7 @@ class KTDocumentRenameAction extends KTDocumentAction { $this->oPage->setBreadcrumbDetails("rename"); $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/rename'); $fields = array(); - $fields[] = new KTStringWidget(_kt('New file name'), _('The name to which the current file should be renamed.'), 'filename', "", $this->oPage, true); + $fields[] = new KTStringWidget(_kt('New file name'), _kt('The name to which the current file should be renamed.'), 'filename', "", $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, diff --git a/plugins/ktcore/folder/BulkImport.php b/plugins/ktcore/folder/BulkImport.php index eb4b88a..2f23b6b 100644 --- a/plugins/ktcore/folder/BulkImport.php +++ b/plugins/ktcore/folder/BulkImport.php @@ -60,7 +60,7 @@ class KTBulkImportFolderAction extends KTFolderAction { $this->oPage->setBreadcrumbDetails(_kt("bulk import")); $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkImport'); $add_fields = array(); - $add_fields[] = new KTStringWidget(_kt('Path'), _('The path containing the documents to be added to the document management system.'), 'path', "", $this->oPage, true); + $add_fields[] = new KTStringWidget(_kt('Path'), _kt('The path containing the documents to be added to the document management system.'), 'path', "", $this->oPage, true); $aVocab = array('' => _kt('<Please select a document type>')); foreach (DocumentType::getList() as $oDocumentType) { @@ -70,7 +70,7 @@ class KTBulkImportFolderAction extends KTFolderAction { } $fieldOptions = array("vocab" => $aVocab); - $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); + $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); $fieldsets = array(); $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); diff --git a/plugins/ktcore/folder/BulkUpload.php b/plugins/ktcore/folder/BulkUpload.php index 2c4a0bd..60f9efe 100644 --- a/plugins/ktcore/folder/BulkUpload.php +++ b/plugins/ktcore/folder/BulkUpload.php @@ -67,7 +67,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { $this->oPage->setBreadcrumbDetails(_kt("bulk upload")); $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/bulkUpload'); $add_fields = array(); - $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); + $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); $aVocab = array('' => _kt('<Please select a document type>')); foreach (DocumentType::getList() as $oDocumentType) { @@ -76,7 +76,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { } } $fieldOptions = array("vocab" => $aVocab); - $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); + $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); $fieldsets = array(); $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); diff --git a/plugins/ktcore/folder/Rename.php b/plugins/ktcore/folder/Rename.php index 0c004fc..9e10a88 100644 --- a/plugins/ktcore/folder/Rename.php +++ b/plugins/ktcore/folder/Rename.php @@ -54,7 +54,7 @@ class KTFolderRenameAction extends KTFolderAction { $oTemplate =& $this->oValidator->validateTemplate('ktcore/folder/rename'); $fields = array(); - $fields[] = new KTStringWidget(_kt('New folder name'), _('The name to which the current folder should be renamed.'), 'foldername', "", $this->oPage, true); + $fields[] = new KTStringWidget(_kt('New folder name'), _kt('The name to which the current folder should be renamed.'), 'foldername', "", $this->oPage, true); $oTemplate->setData(array( 'context' => &$this, diff --git a/plugins/ktcore/folder/addDocument.php b/plugins/ktcore/folder/addDocument.php index 5af3be3..ad3b998 100644 --- a/plugins/ktcore/folder/addDocument.php +++ b/plugins/ktcore/folder/addDocument.php @@ -66,8 +66,8 @@ class KTFolderAddDocumentAction extends KTFolderAction { $this->oPage->setTitle(_kt('Add a document')); $oTemplate =& $this->oValidator->validateTemplate('ktcore/document/add'); $add_fields = array(); - $add_fields[] = new KTFileUploadWidget(_kt('File'), _('The contents of the document to be added to the document management system.'), 'file', "", $this->oPage, true); - $add_fields[] = new KTStringWidget(_kt('Title'), _('The document title is used as the main name of a document throughout KnowledgeTree.'), 'title', "", $this->oPage, true); + $add_fields[] = new KTFileUploadWidget(_kt('File'), _kt('The contents of the document to be added to the document management system.'), 'file', "", $this->oPage, true); + $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); $aVocab = array('' => _kt('<Please select a document type>')); @@ -78,7 +78,7 @@ class KTFolderAddDocumentAction extends KTFolderAction { } $fieldOptions = array("vocab" => $aVocab); - $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); + $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); $fieldsets = array(); $fieldsetDisplayReg =& KTFieldsetDisplayRegistry::getSingleton(); diff --git a/plugins/ktstandard/KTDiscussion.php b/plugins/ktstandard/KTDiscussion.php index 99ed282..cd785b0 100644 --- a/plugins/ktstandard/KTDiscussion.php +++ b/plugins/ktstandard/KTDiscussion.php @@ -100,8 +100,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction { // Fields for new thread creation $fields = array(); - $fields[] = new KTStringWidget(_kt("Subject"), _("The topic of discussion in this thread"), "subject", "", $this->oPage, true); - $fields[] = new KTTextWidget(_kt("Body"), _("Your contribution to the discussion in this thread"), "body", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 10)); + $fields[] = new KTStringWidget(_kt("Subject"), _kt("The topic of discussion in this thread"), "subject", "", $this->oPage, true); + $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)); $threads = DiscussionThread::getList(array('document_id=?', array($this->oDocument->getId()))); @@ -180,8 +180,8 @@ class KTDocumentDiscussionAction extends KTDocumentAction { // Fields for new thread creation $replyFields = array(); - $replyFields[] = new KTStringWidget(_kt("Subject"), _("The topic of discussion in this thread"), "subject", "", $this->oPage, true); - $replyFields[] = new KTTextWidget(_kt("Body"), _("Your contribution to the discussion in this thread"), "body", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 10)); + $replyFields[] = new KTStringWidget(_kt("Subject"), _kt("The topic of discussion in this thread"), "subject", "", $this->oPage, true); + $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)); // Fields for closing thread (if user has write permission) $closeFields = array(); @@ -189,7 +189,7 @@ class KTDocumentDiscussionAction extends KTDocumentAction { $oPermission =& KTPermission::getByName('ktcore.permissions.write'); if (PEAR::isError($oPermission) || KTPermissionUtil::userHasPermissionOnItem($this->oUser, $oPermission, $this->oDocument)) { - $closeFields[] = new KTTextWidget(_kt("Reason"), _("Describe the reason for closing this thread"), "reason", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 5)); + $closeFields[] = new KTTextWidget(_kt("Reason"), _kt("Describe the reason for closing this thread"), "reason", "", $this->oPage, true, null, null, array("cols" => 50, "rows" => 5)); } // increment views diff --git a/plugins/ktstandard/KTEmail.php b/plugins/ktstandard/KTEmail.php index 6ec33e2..48da9ca 100644 --- a/plugins/ktstandard/KTEmail.php +++ b/plugins/ktstandard/KTEmail.php @@ -240,12 +240,12 @@ class KTDocumentEmailAction extends KTDocumentAction { $bAttachment = $oConfig->get('email/allowAttachment', false); $bEmailAddresses = $oConfig->get('email/allowEmailAddresses', false); if ($bAttachment) { - $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); + $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); } if ($bEmailAddresses) { - $fields[] = new KTTextWidget(_kt("Email addresses"), _("Add extra email addresses here"), 'fEmailAddresses', "", $this->oPage, false, null, null, array('cols' => 60, 'rows' => 5)); + $fields[] = new KTTextWidget(_kt("Email addresses"), _kt("Add extra email addresses here"), 'fEmailAddresses', "", $this->oPage, false, null, null, array('cols' => 60, 'rows' => 5)); } - $fields[] = new KTTextWidget(_kt("Comment"), _("A message for those who receive the document"), 'fComment', "", $this->oPage, true, null, null, array('cols' => 60, 'rows' => 5)); + $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)); $aGroups = Group::getList(); $aUsers = User::getEmailUsers(); $aTemplateData = array( diff --git a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php index a039f1b..132ff49 100644 --- a/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php +++ b/plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php @@ -94,7 +94,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { $dn = $oUser->getAuthenticationDetails(); $fields = array(); - $fields[] = new KTStringWidget(_kt('Distinguished name'), _('The location of this user in the LDAP tree'), 'dn', $dn, $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Distinguished name'), _kt('The location of this user in the LDAP tree'), 'dn', $dn, $this->oPage, true); $aTemplateData = array( 'context' => &$this, @@ -209,13 +209,13 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { $this->oValidator->notError($aResults); $fields = array(); - $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _('The location of the user within the LDAP directory.'), 'dn', $id, $this->oPage); - $fields[] = new KTStringWidget(_kt('Username'), _('The username the user will enter to gain access to KnowledgeTree. e.g. jsmith'), 'ldap_username', $aResults[$this->aAttributes[1]], $this->oPage, true); - $fields[] = new KTStringWidget(_kt('Name'), _('The full name of the user. This is shown in reports and listings. e.g. John Smith'), 'name', $aResults[$this->aAttributes[0]], $this->oPage, true); - $fields[] = new KTStringWidget(_kt('Email Address'), _('The email address of the user. Notifications and alerts are mailed to this address if email notifications is set below. e.g. jsmith@acme.com'), 'email_address', $aResults[$this->aAttributes[4]], $this->oPage, false); - $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 Dashboard'), 'email_notifications', true, $this->oPage, false); - $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. 999 9999 999'), 'mobile_number', $aResults[$this->aAttributes[5]], $this->oPage, false); - $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); + $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _kt('The location of the user within the LDAP directory.'), 'dn', $id, $this->oPage); + $fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. jsmith'), 'ldap_username', $aResults[$this->aAttributes[1]], $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. John Smith'), 'name', $aResults[$this->aAttributes[0]], $this->oPage, true); + $fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if email notifications is set below. e.g. jsmith@acme.com'), 'email_address', $aResults[$this->aAttributes[4]], $this->oPage, false); + $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 Dashboard'), 'email_notifications', true, $this->oPage, false); + $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. 999 9999 999'), 'mobile_number', $aResults[$this->aAttributes[5]], $this->oPage, false); + $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); $aTemplateData = array( 'context' => &$this, @@ -328,8 +328,8 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchuser'); $fields = array(); - $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); - $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); + $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); + $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); $oAuthenticator = $this->getAuthenticator($oSource); $name = KTUtil::arrayGet($_REQUEST, 'ldap_name'); @@ -376,7 +376,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { $oTemplate = $this->oValidator->validateTemplate('ktstandard/authentication/ldapsearchgroup'); $fields = array(); - $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); + $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); $oAuthenticator = $this->getAuthenticator($oSource); $name = KTUtil::arrayGet($_REQUEST, 'name'); @@ -408,10 +408,10 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider { $aAttributes = $oAuthenticator->getGroup($id); $fields = array(); - $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _('The location of the group within the LDAP directory.'), 'dn', $aAttributes['dn'], $this->oPage); - $fields[] = new KTStringWidget(_kt('Group Name'), _('The name the group will enter to gain access to KnowledgeTree. e.g. accountants'), 'ldap_groupname', $aAttributes['cn'], $this->oPage, true); - $fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _('Should all the members of this group be given unit administration privileges?'), 'is_unitadmin', false, $this->oPage, false); - $fields[] = new KTCheckboxWidget(_kt('System Administrators'), _('Should all the members of this group be given system administration privileges?'), 'is_sysadmin', false, $this->oPage, false); + $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _kt('The location of the group within the LDAP directory.'), 'dn', $aAttributes['dn'], $this->oPage); + $fields[] = new KTStringWidget(_kt('Group Name'), _kt('The name the group will enter to gain access to KnowledgeTree. e.g. accountants'), 'ldap_groupname', $aAttributes['cn'], $this->oPage, true); + $fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given unit administration privileges?'), 'is_unitadmin', false, $this->oPage, false); + $fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given system administration privileges?'), 'is_sysadmin', false, $this->oPage, false); $aTemplateData = array( 'context' => &$this, diff --git a/plugins/ktstandard/workflow/FolderAssociator.php b/plugins/ktstandard/workflow/FolderAssociator.php index e35aa7d..c082ad8 100644 --- a/plugins/ktstandard/workflow/FolderAssociator.php +++ b/plugins/ktstandard/workflow/FolderAssociator.php @@ -107,7 +107,7 @@ class FolderWorkflowAssignmentFolderAction extends KTFolderAction { if (PEAR::isError($res)) { $res = null; } - $fields[] = new KTLookupWidget(_kt('Automatic Workflow'), _('If you specify an automatic workflow, new documents will automatically enter that workflow\'s 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); + $fields[] = new KTLookupWidget(_kt('Automatic Workflow'), _kt('If you specify an automatic workflow, new documents will automatically enter that workflow\'s 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); $oTemplate->setData(array( diff --git a/plugins/ktstandard/workflow/adminpage.php b/plugins/ktstandard/workflow/adminpage.php index 65d7580..a5aeb9c 100644 --- a/plugins/ktstandard/workflow/adminpage.php +++ b/plugins/ktstandard/workflow/adminpage.php @@ -55,7 +55,7 @@ class WorkflowAllocationSelection extends KTAdminDispatcher { foreach ($aTriggers as $aTrigger) { $aVocab[$aTrigger[2]] = $aTrigger[0]; } - $aFields[] = new KTLookupWidget(_kt('Workflow Plugins'), _('Plugins providing workflow allocators.'),'selection_ns', $this->getHandler(), $this->oPage, true, null, null, array('vocab' => $aVocab)); + $aFields[] = new KTLookupWidget(_kt('Workflow Plugins'), _kt('Plugins providing workflow allocators.'),'selection_ns', $this->getHandler(), $this->oPage, true, null, null, array('vocab' => $aVocab)); $oTemplate =& $this->oValidator->validateTemplate('ktstandard/workflow/allocator_selection'); $oTemplate->setData(array(