Commit 2fdb15cb8e59e20731bfaaf8b6076884316fd2c3
1 parent
9d908fba
Improve marking up of translatable text.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5156 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
30 changed files
with
52 additions
and
52 deletions
plugins/ktcore/KTDocumentActions.php
| @@ -135,7 +135,7 @@ class KTDocumentCheckOutAction extends KTDocumentAction { | @@ -135,7 +135,7 @@ class KTDocumentCheckOutAction extends KTDocumentAction { | ||
| 135 | function do_checkout() { | 135 | function do_checkout() { |
| 136 | $aErrorOptions = array( | 136 | $aErrorOptions = array( |
| 137 | 'redirect_to' => array('','fDocumentId=' . $this->oDocument->getId()), | 137 | 'redirect_to' => array('','fDocumentId=' . $this->oDocument->getId()), |
| 138 | - 'message' => "You must provide a reason" | 138 | + 'message' => _kt("You must provide a reason"), |
| 139 | ); | 139 | ); |
| 140 | 140 | ||
| 141 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkout_final'); | 141 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkout_final'); |
| @@ -845,7 +845,7 @@ class KTDocumentArchiveAction extends KTDocumentAction { | @@ -845,7 +845,7 @@ class KTDocumentArchiveAction extends KTDocumentAction { | ||
| 845 | 845 | ||
| 846 | $aErrorOptions = array( | 846 | $aErrorOptions = array( |
| 847 | 'redirect_to' => array('','fDocumentId=' . $this->oDocument->getId()), | 847 | 'redirect_to' => array('','fDocumentId=' . $this->oDocument->getId()), |
| 848 | - 'message' => "You must provide a reason" | 848 | + 'message' => _kt("You must provide a reason"), |
| 849 | ); | 849 | ); |
| 850 | 850 | ||
| 851 | $sReason = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'reason'), $aErrorOptions); | 851 | $sReason = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'reason'), $aErrorOptions); |
| @@ -954,7 +954,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction { | @@ -954,7 +954,7 @@ class KTDocumentWorkflowAction extends KTDocumentAction { | ||
| 954 | 954 | ||
| 955 | $aErrorOptions = array( | 955 | $aErrorOptions = array( |
| 956 | 'redirect_to' => array('main', sprintf('fDocumentId=%d', $_REQUEST['fDocumentId'])), | 956 | 'redirect_to' => array('main', sprintf('fDocumentId=%d', $_REQUEST['fDocumentId'])), |
| 957 | - 'message' => 'You must provide a reason for the transition' | 957 | + 'message' => _kt('You must provide a reason for the transition'), |
| 958 | ); | 958 | ); |
| 959 | 959 | ||
| 960 | $sComments =& $this->oValidator->validateString($_REQUEST['fComments'], $aErrorOptions); | 960 | $sComments =& $this->oValidator->validateString($_REQUEST['fComments'], $aErrorOptions); |
plugins/ktcore/KTPermissions.php
| @@ -635,4 +635,4 @@ class KTDocumentRolesAction extends KTDocumentAction { | @@ -635,4 +635,4 @@ class KTDocumentRolesAction extends KTDocumentAction { | ||
| 635 | ); | 635 | ); |
| 636 | return $oTemplate->render($aTemplateData); | 636 | return $oTemplate->render($aTemplateData); |
| 637 | } | 637 | } |
| 638 | -} | ||
| 639 | \ No newline at end of file | 638 | \ No newline at end of file |
| 639 | +} |
plugins/ktcore/admin/documentFields.php
| @@ -173,7 +173,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | @@ -173,7 +173,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | ||
| 173 | $sName = $this->oValidator->validateEntityName("KTFieldset", $_REQUEST['name'], $aErrorOptions); | 173 | $sName = $this->oValidator->validateEntityName("KTFieldset", $_REQUEST['name'], $aErrorOptions); |
| 174 | 174 | ||
| 175 | $sDescription = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'description'), | 175 | $sDescription = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'description'), |
| 176 | - KTUtil::meldOptions($aErrorOptions, array('message' => "You must provide a description"))); | 176 | + KTUtil::meldOptions($aErrorOptions, array('message' => _kt("You must provide a description")))); |
| 177 | 177 | ||
| 178 | $sNamespace = KTUtil::arrayGet($_REQUEST, 'namespace'); | 178 | $sNamespace = KTUtil::arrayGet($_REQUEST, 'namespace'); |
| 179 | 179 | ||
| @@ -224,7 +224,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | @@ -224,7 +224,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | ||
| 224 | unset($aErrorOptions['condition']); | 224 | unset($aErrorOptions['condition']); |
| 225 | 225 | ||
| 226 | $sDescription = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'description'), | 226 | $sDescription = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'description'), |
| 227 | - KTUtil::meldOptions($aErrorOptions, array('message' => "You must provide a description"))); | 227 | + KTUtil::meldOptions($aErrorOptions, array('message' => _kt("You must provide a description")))); |
| 228 | 228 | ||
| 229 | 229 | ||
| 230 | $oFieldset = KTFieldset::get($_REQUEST['fFieldsetId']); | 230 | $oFieldset = KTFieldset::get($_REQUEST['fFieldsetId']); |
| @@ -288,7 +288,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | @@ -288,7 +288,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | ||
| 288 | ); | 288 | ); |
| 289 | 289 | ||
| 290 | $sName = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'name'), | 290 | $sName = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'name'), |
| 291 | - KTUtil::meldOptions($aErrorOptions, array('message' => "You must provide a name"))); | 291 | + KTUtil::meldOptions($aErrorOptions, array('message' => _kt("You must provide a name")))); |
| 292 | 292 | ||
| 293 | $aErrorOptions['condition'] = array('parent_fieldset' => $oFieldset->getId()); | 293 | $aErrorOptions['condition'] = array('parent_fieldset' => $oFieldset->getId()); |
| 294 | $aErrorOptions['rename'] = $oField->getId(); | 294 | $aErrorOptions['rename'] = $oField->getId(); |
| @@ -297,7 +297,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | @@ -297,7 +297,7 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { | ||
| 297 | unset($aErrorOptions['rename']); | 297 | unset($aErrorOptions['rename']); |
| 298 | 298 | ||
| 299 | $sDescription = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'description'), | 299 | $sDescription = $this->oValidator->validateString(KTUtil::arrayGet($_REQUEST, 'description'), |
| 300 | - KTUtil::meldOptions($aErrorOptions, array('message' => "You must provide a description"))); | 300 | + KTUtil::meldOptions($aErrorOptions, array('message' => _kt("You must provide a description")))); |
| 301 | 301 | ||
| 302 | $oField->setName($_REQUEST['name']); | 302 | $oField->setName($_REQUEST['name']); |
| 303 | $oField->setDescription($sDescription); | 303 | $oField->setDescription($sDescription); |
plugins/ktcore/admin/plugins.php
| @@ -65,12 +65,12 @@ class KTPluginDispatcher extends KTAdminDispatcher { | @@ -65,12 +65,12 @@ class KTPluginDispatcher extends KTAdminDispatcher { | ||
| 65 | $sTable = KTUtil::getTableName('plugins'); | 65 | $sTable = KTUtil::getTableName('plugins'); |
| 66 | $aIds = (array) KTUtil::arrayGet($_REQUEST, 'pluginids'); | 66 | $aIds = (array) KTUtil::arrayGet($_REQUEST, 'pluginids'); |
| 67 | KTPluginEntity::setEnabled($aIds); | 67 | KTPluginEntity::setEnabled($aIds); |
| 68 | - $this->successRedirectToMain('Plugins updated'); | 68 | + $this->successRedirectToMain(_kt('Plugins updated')); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | function do_reread() { | 71 | function do_reread() { |
| 72 | KTPluginUtil::registerPlugins(); | 72 | KTPluginUtil::registerPlugins(); |
| 73 | - $this->successRedirectToMain('Plugins read from the filesystem'); | 73 | + $this->successRedirectToMain(_kt('Plugins read from the filesystem')); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | 76 |
plugins/ktcore/admin/unitManagement.php
| @@ -178,7 +178,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { | @@ -178,7 +178,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { | ||
| 178 | 'name' => $sName, | 178 | 'name' => $sName, |
| 179 | 'folderid' => $oFolder->getId(), | 179 | 'folderid' => $oFolder->getId(), |
| 180 | )); | 180 | )); |
| 181 | - return $this->successRedirectToMain('Unit created'); | 181 | + return $this->successRedirectToMain(_kt('Unit created')); |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | function do_editUnit() { | 184 | function do_editUnit() { |
| @@ -255,7 +255,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { | @@ -255,7 +255,7 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { | ||
| 255 | KTFolderUtil::delete($oFolder, $this->oUser, "Unit deleted", $aOptions); | 255 | KTFolderUtil::delete($oFolder, $this->oUser, "Unit deleted", $aOptions); |
| 256 | } | 256 | } |
| 257 | } | 257 | } |
| 258 | - $this->successRedirectToMain("Unit removed"); | 258 | + $this->successRedirectToMain(_kt("Unit removed")); |
| 259 | } | 259 | } |
| 260 | } | 260 | } |
| 261 | 261 |
plugins/ktcore/authentication/authenticationadminpage.inc.php
| @@ -150,11 +150,11 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { | @@ -150,11 +150,11 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { | ||
| 150 | $oSource->setAuthenticationProvider($authentication_provider); | 150 | $oSource->setAuthenticationProvider($authentication_provider); |
| 151 | $res = $oSource->update(); | 151 | $res = $oSource->update(); |
| 152 | $aOptions = array( | 152 | $aOptions = array( |
| 153 | - 'message' => 'Update failed', | 153 | + 'message' => _kt('Update failed'), |
| 154 | 'redirect_to' => array('editsource', sprintf('source_id=%d', $oSource->getId())), | 154 | 'redirect_to' => array('editsource', sprintf('source_id=%d', $oSource->getId())), |
| 155 | ); | 155 | ); |
| 156 | $this->oValidator->notErrorFalse($res, $aOptions); | 156 | $this->oValidator->notErrorFalse($res, $aOptions); |
| 157 | - $this->successRedirectTo('viewsource', 'Details updated', sprintf('source_id=%d', $oSource->getId())); | 157 | + $this->successRedirectTo('viewsource', _kt('Details updated'), sprintf('source_id=%d', $oSource->getId())); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | function do_newsource() { | 160 | function do_newsource() { |
plugins/ktcore/document/Rename.php
| @@ -85,7 +85,7 @@ class KTDocumentRenameAction extends KTDocumentAction { | @@ -85,7 +85,7 @@ class KTDocumentRenameAction extends KTDocumentAction { | ||
| 85 | $sFilename = KTUtil::arrayGet($_REQUEST, 'filename'); | 85 | $sFilename = KTUtil::arrayGet($_REQUEST, 'filename'); |
| 86 | $aOptions = array( | 86 | $aOptions = array( |
| 87 | 'redirect_to' => array('', sprintf('fDocumentId=%d', $this->oDocument->getId())), | 87 | 'redirect_to' => array('', sprintf('fDocumentId=%d', $this->oDocument->getId())), |
| 88 | - 'message' => "No filename given", | 88 | + 'message' => _kt("No filename given"), |
| 89 | ); | 89 | ); |
| 90 | $this->oValidator->validateString($sFilename, $aOptions); | 90 | $this->oValidator->validateString($sFilename, $aOptions); |
| 91 | 91 |
plugins/ktcore/folder/BulkUpload.php
| @@ -56,7 +56,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { | @@ -56,7 +56,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { | ||
| 56 | if (!empty($postExpected)) { | 56 | if (!empty($postExpected)) { |
| 57 | $aErrorOptions = array( | 57 | $aErrorOptions = array( |
| 58 | 'redirect_to' => array('main', sprintf('fFolderId=%d', $this->oFolder->getId())), | 58 | 'redirect_to' => array('main', sprintf('fFolderId=%d', $this->oFolder->getId())), |
| 59 | - 'message' => 'Upload larger than maximum POST size (max_post_size variable in .htaccess or php.ini)', | 59 | + 'message' => _kt('Upload larger than maximum POST size (max_post_size variable in .htaccess or php.ini)'), |
| 60 | ); | 60 | ); |
| 61 | $this->oValidator->notEmpty($postReceived, $aErrorOptions); | 61 | $this->oValidator->notEmpty($postReceived, $aErrorOptions); |
| 62 | } | 62 | } |
plugins/ktcore/folder/Rename.php
| @@ -67,7 +67,7 @@ class KTFolderRenameAction extends KTFolderAction { | @@ -67,7 +67,7 @@ class KTFolderRenameAction extends KTFolderAction { | ||
| 67 | $sName = KTUtil::arrayGet($_REQUEST, 'foldername'); | 67 | $sName = KTUtil::arrayGet($_REQUEST, 'foldername'); |
| 68 | $aOptions = array( | 68 | $aOptions = array( |
| 69 | 'redirect_to' => array('', sprintf('fFolderId=%d', $this->oFolder->getId())), | 69 | 'redirect_to' => array('', sprintf('fFolderId=%d', $this->oFolder->getId())), |
| 70 | - 'message' => "No folder name given", | 70 | + 'message' => _kt("No folder name given"), |
| 71 | ); | 71 | ); |
| 72 | $this->oValidator->validateString($sName, $aOptions); | 72 | $this->oValidator->validateString($sName, $aOptions); |
| 73 | 73 |
plugins/ktcore/folder/addDocument.php
| @@ -54,7 +54,7 @@ class KTFolderAddDocumentAction extends KTFolderAction { | @@ -54,7 +54,7 @@ class KTFolderAddDocumentAction extends KTFolderAction { | ||
| 54 | if (!empty($postExpected)) { | 54 | if (!empty($postExpected)) { |
| 55 | $aErrorOptions = array( | 55 | $aErrorOptions = array( |
| 56 | 'redirect_to' => array('main', sprintf('fFolderId=%d', $this->oFolder->getId())), | 56 | 'redirect_to' => array('main', sprintf('fFolderId=%d', $this->oFolder->getId())), |
| 57 | - 'message' => 'Upload larger than maximum POST size (max_post_size variable in .htaccess or php.ini)', | 57 | + 'message' => _kt('Upload larger than maximum POST size (max_post_size variable in .htaccess or php.ini)'), |
| 58 | ); | 58 | ); |
| 59 | $this->oValidator->notEmpty($postReceived, $aErrorOptions); | 59 | $this->oValidator->notEmpty($postReceived, $aErrorOptions); |
| 60 | } | 60 | } |
templates/kt3/browse_lookup_selection.smarty
| 1 | -<h2>Select a Field</h2> | 1 | +<h2>{i18n}Select a Field{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <p class="descriptiveText">{i18n}In some circumstances it is useful to view all | 3 | <p class="descriptiveText">{i18n}In some circumstances it is useful to view all |
| 4 | documents with a given value for a lookup field. Select the lookup field from the list below | 4 | documents with a given value for a lookup field. Select the lookup field from the list below |
| @@ -8,4 +8,4 @@ to view all relevant documents.{/i18n}</p> | @@ -8,4 +8,4 @@ to view all relevant documents.{/i18n}</p> | ||
| 8 | {foreach item=oField from=$fields} | 8 | {foreach item=oField from=$fields} |
| 9 | <li><a href="{$smarty.server.PHP_SELF}?action=selectLookup&fField={$oField->getId()}&fBrowseMode=field">{$oField->getName()}</a></li> | 9 | <li><a href="{$smarty.server.PHP_SELF}?action=selectLookup&fField={$oField->getId()}&fBrowseMode=field">{$oField->getName()}</a></li> |
| 10 | {/foreach} | 10 | {/foreach} |
| 11 | -</ul> | ||
| 12 | \ No newline at end of file | 11 | \ No newline at end of file |
| 12 | +</ul> |
templates/kt3/browse_types.smarty
| 1 | -<h2>Select a document type</h2> | 1 | +<h2>{i18n}Select a document type{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <p class="descriptiveText">{i18n}In some circumstances it is useful to view all | 3 | <p class="descriptiveText">{i18n}In some circumstances it is useful to view all |
| 4 | documents of a given <strong>document type</strong>. Select a <strong>document type</strong> from the list below | 4 | documents of a given <strong>document type</strong>. Select a <strong>document type</strong> from the list below |
| @@ -8,4 +8,4 @@ to view all relevant documents.{/i18n}</p> | @@ -8,4 +8,4 @@ to view all relevant documents.{/i18n}</p> | ||
| 8 | {foreach item=oType from=$document_types} | 8 | {foreach item=oType from=$document_types} |
| 9 | <li><a href="{$smarty.server.PHP_SELF}?action=main&fType={$oType->getId()}&fBrowseMode=document_type">{$oType->getName()}</a></li> | 9 | <li><a href="{$smarty.server.PHP_SELF}?action=main&fType={$oType->getId()}&fBrowseMode=document_type">{$oType->getName()}</a></li> |
| 10 | {/foreach} | 10 | {/foreach} |
| 11 | -</ul> | ||
| 12 | \ No newline at end of file | 11 | \ No newline at end of file |
| 12 | +</ul> |
templates/ktcore/authentication/manage.smarty
| @@ -9,7 +9,7 @@ specify additional sources of authentication data.{/i18n}</p> | @@ -9,7 +9,7 @@ specify additional sources of authentication data.{/i18n}</p> | ||
| 9 | 9 | ||
| 10 | {if $providers} | 10 | {if $providers} |
| 11 | <p><a href="{addQS}action=addSource{/addQS}" class="ktAction ktAddGroup | 11 | <p><a href="{addQS}action=addSource{/addQS}" class="ktAction ktAddGroup |
| 12 | -ktInline">{i18n}Add authentication source</a><a href="{addQS}action=addSource{/addQS}">Add a new | 12 | +ktInline">{i18n}Add authentication source{/i18n}</a><a href="{addQS}action=addSource{/addQS}">{i18n}Add a new |
| 13 | authentication source{/i18n}</a>.</p> | 13 | authentication source{/i18n}</a>.</p> |
| 14 | {else} | 14 | {else} |
| 15 | <div class="ktInfo"><p>{i18n}Only the standard database authentication is currently available. | 15 | <div class="ktInfo"><p>{i18n}Only the standard database authentication is currently available. |
templates/ktcore/dashlets/admintutorial.smarty
| 1 | -<h2>KnowledgeTree administrator's Guide</h2> | 1 | +<h2>{i18n}KnowledgeTree administrator's Guide{/i18n}</h2> |
| 2 | <p class="descriptiveText">{i18n}If this is your first KnowledgeTree installation, | 2 | <p class="descriptiveText">{i18n}If this is your first KnowledgeTree installation, |
| 3 | or if you've just upgraded from KnowledgeTree 2.x, we've put together some information | 3 | or if you've just upgraded from KnowledgeTree 2.x, we've put together some information |
| 4 | which might help you get to grips with the new system.{/i18n}</p> | 4 | which might help you get to grips with the new system.{/i18n}</p> |
templates/ktcore/document/admin/expungeconfirmlist.smarty
| 1 | -<h2>Confirm Expunge</h2> | 1 | +<h2>{i18n}Confirm Expunge{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <div class="ktInfo"><p><strong>{i18n}Note{/i18n}:</strong> {i18n}please | 3 | <div class="ktInfo"><p><strong>{i18n}Note{/i18n}:</strong> {i18n}please |
| 4 | confirm that you want to delete these documents.{/i18n}</p></div> | 4 | confirm that you want to delete these documents.{/i18n}</p></div> |
templates/ktcore/document/document_permissions.smarty
| @@ -121,7 +121,7 @@ value="{$iGroupId}"></td> | @@ -121,7 +121,7 @@ value="{$iGroupId}"></td> | ||
| 121 | 121 | ||
| 122 | {if (!empty($conditions))} | 122 | {if (!empty($conditions))} |
| 123 | {if ($edit || $dynamic_conditions)} | 123 | {if ($edit || $dynamic_conditions)} |
| 124 | -<h2>Dynamic permissions</h2> | 124 | +<h2>{i18n}Dynamic permissions{/i18n}</h2> |
| 125 | {/if} | 125 | {/if} |
| 126 | { if $dynamic_conditions } | 126 | { if $dynamic_conditions } |
| 127 | <table class="kt_collection" cellpadding="0" cellspacing="0"> | 127 | <table class="kt_collection" cellpadding="0" cellspacing="0"> |
| @@ -196,4 +196,4 @@ $this->assign("aPermissions", $this->_tpl_vars['oDynamicCondition']->getAssignme | @@ -196,4 +196,4 @@ $this->assign("aPermissions", $this->_tpl_vars['oDynamicCondition']->getAssignme | ||
| 196 | <input type="submit" name="submit" value="{i18n}Add{/i18n}" /> | 196 | <input type="submit" name="submit" value="{i18n}Add{/i18n}" /> |
| 197 | </form> | 197 | </form> |
| 198 | { /if } | 198 | { /if } |
| 199 | -{/if} | ||
| 200 | \ No newline at end of file | 199 | \ No newline at end of file |
| 200 | +{/if} |
templates/ktcore/folder/permissions.smarty
| @@ -114,7 +114,7 @@ value="{$iGroupId}"></td> | @@ -114,7 +114,7 @@ value="{$iGroupId}"></td> | ||
| 114 | 114 | ||
| 115 | {if (!empty($conditions))} | 115 | {if (!empty($conditions))} |
| 116 | {if ($edit || $dynamic_conditions)} | 116 | {if ($edit || $dynamic_conditions)} |
| 117 | -<h2>Dynamic permissions</h2> | 117 | +<h2>{i18n}Dynamic permissions{/i18n}</h2> |
| 118 | {/if} | 118 | {/if} |
| 119 | { if $dynamic_conditions } | 119 | { if $dynamic_conditions } |
| 120 | <table class="kt_collection" cellpadding="0" cellspacing="0"> | 120 | <table class="kt_collection" cellpadding="0" cellspacing="0"> |
templates/ktcore/help_with_edit.smarty
| 1 | {if (!$help_body)} | 1 | {if (!$help_body)} |
| 2 | -<div class="ktError"><p>No content specified for this help file yet. <strong>Edit it first.</strong></p></div> | 2 | +<div class="ktError"><p>{i18n}No content specified for this help file yet. <strong>Edit it first.</strong>{/i18n}</p></div> |
| 3 | {else} | 3 | {else} |
| 4 | 4 | ||
| 5 | {$context->oPage->requireJSResource("resources/js/help.js")} | 5 | {$context->oPage->requireJSResource("resources/js/help.js")} |
| @@ -16,4 +16,4 @@ left; padding-right: 0.5em;">{i18n}Edit this help page.{/i18n}</a><a href="{ktLi | @@ -16,4 +16,4 @@ left; padding-right: 0.5em;">{i18n}Edit this help page.{/i18n}</a><a href="{ktLi | ||
| 16 | 16 | ||
| 17 | <a href="{ktLink base="help.php" query="action=go_back&back_key=`$back_key`"}" class="ktAction ktBack" style="float: | 17 | <a href="{ktLink base="help.php" query="action=go_back&back_key=`$back_key`"}" class="ktAction ktBack" style="float: |
| 18 | left; padding-right: 0.5em; clear: left; ">{i18n}Return to where you came from.{/i18n}</a><a href="{ktLink base="help.php" query="action=go_back&back_key=`$back_key`"}">{i18n}Return to where you came from.{/i18n}</a></p> | 18 | left; padding-right: 0.5em; clear: left; ">{i18n}Return to where you came from.{/i18n}</a><a href="{ktLink base="help.php" query="action=go_back&back_key=`$back_key`"}">{i18n}Return to where you came from.{/i18n}</a></p> |
| 19 | - | ||
| 20 | \ No newline at end of file | 19 | \ No newline at end of file |
| 20 | + |
templates/ktcore/javascript_i18n.smarty
| @@ -17,8 +17,6 @@ function _(trans_string) { | @@ -17,8 +17,6 @@ function _(trans_string) { | ||
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | -// strings for file: resources/js/add_document.js | ||
| 21 | - | ||
| 22 | // strings for file: resources/js/conditional_complex_edit.js | 20 | // strings for file: resources/js/conditional_complex_edit.js |
| 23 | i18n['Finish with this column\'s behaviours.'] = '{i18n}Finish with this column\'s behaviours.{/i18n}'; | 21 | i18n['Finish with this column\'s behaviours.'] = '{i18n}Finish with this column\'s behaviours.{/i18n}'; |
| 24 | i18n['Assuming this field has behaviour "'] = '{i18n}Assuming this field has behaviour "{/i18n}'; | 22 | i18n['Assuming this field has behaviour "'] = '{i18n}Assuming this field has behaviour "{/i18n}'; |
| @@ -45,15 +43,17 @@ i18n['all'] = '{i18n}all{/i18n}'; | @@ -45,15 +43,17 @@ i18n['all'] = '{i18n}all{/i18n}'; | ||
| 45 | i18n['any'] = '{i18n}any{/i18n}'; | 43 | i18n['any'] = '{i18n}any{/i18n}'; |
| 46 | i18n['of the criteria specified.'] = '{i18n}of the criteria specified.{/i18n}'; | 44 | i18n['of the criteria specified.'] = '{i18n}of the criteria specified.{/i18n}'; |
| 47 | 45 | ||
| 48 | -// strings for file: resources/js/constructed_search_postprocess.js | 46 | +// strings for file: resources/js/taillog.js |
| 49 | 47 | ||
| 50 | -// strings for file: resources/js/help.js | 48 | +// strings for file: resources/js/add_document.js |
| 51 | 49 | ||
| 52 | -// strings for file: resources/js/kt-utility.js | 50 | +// strings for file: resources/js/constructed_search_postprocess.js |
| 53 | 51 | ||
| 54 | // strings for file: resources/js/kt3calendar.js | 52 | // strings for file: resources/js/kt3calendar.js |
| 55 | 53 | ||
| 56 | -// strings for file: resources/js/taillog.js | ||
| 57 | - | ||
| 58 | // strings for file: resources/js/toggleselect.js | 54 | // strings for file: resources/js/toggleselect.js |
| 59 | 55 | ||
| 56 | +// strings for file: resources/js/kt-utility.js | ||
| 57 | + | ||
| 58 | +// strings for file: resources/js/help.js | ||
| 59 | + |
templates/ktcore/manage_help.smarty
| @@ -4,13 +4,13 @@ | @@ -4,13 +4,13 @@ | ||
| 4 | via the help system and click on <strong>customise this help file</strong>.{/i18n}</p> | 4 | via the help system and click on <strong>customise this help file</strong>.{/i18n}</p> |
| 5 | 5 | ||
| 6 | { if $helpreplacements } | 6 | { if $helpreplacements } |
| 7 | -<h2>Existing customised help pages</h2> | 7 | +<h2>{i18n}Existing customised help pages{/i18n}</h2> |
| 8 | 8 | ||
| 9 | <table class="listing" cellspacing="0" cellpadding="0" border="0"> | 9 | <table class="listing" cellspacing="0" cellpadding="0" border="0"> |
| 10 | <thead> | 10 | <thead> |
| 11 | <tr> | 11 | <tr> |
| 12 | -<th>Name</th> | ||
| 13 | -<th>Actions</th> | 12 | +<th>{i18n}Name{/i18n}</th> |
| 13 | +<th>{i18n}Actions{/i18n}</th> | ||
| 14 | </tr> | 14 | </tr> |
| 15 | </thead> | 15 | </thead> |
| 16 | { foreach item=oHelpReplacement from=$helpreplacements } | 16 | { foreach item=oHelpReplacement from=$helpreplacements } |
templates/ktcore/metadata/conditional/manageConditional.smarty
| @@ -80,7 +80,7 @@ ordering!{/i18n}</p> | @@ -80,7 +80,7 @@ ordering!{/i18n}</p> | ||
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | {if !$oMasterField} | 82 | {if !$oMasterField} |
| 83 | -<h2>Master field</h2> | 83 | +<h2>{i18n}Master field{/i18n}</h2> |
| 84 | {i18n}No master field is set, please select the master field{/i18n}: | 84 | {i18n}No master field is set, please select the master field{/i18n}: |
| 85 | 85 | ||
| 86 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 86 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| @@ -95,7 +95,7 @@ ordering!{/i18n}</p> | @@ -95,7 +95,7 @@ ordering!{/i18n}</p> | ||
| 95 | 95 | ||
| 96 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 96 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 97 | <fieldset> | 97 | <fieldset> |
| 98 | -<legend>Master field</legend> | 98 | +<legend>{i18n}Master field{/i18n}</legend> |
| 99 | <input type="hidden" name="action" value="setMasterField" /> | 99 | <input type="hidden" name="action" value="setMasterField" /> |
| 100 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | 100 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> |
| 101 | 101 |
templates/ktcore/metadata/editField.smarty
| @@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
| 60 | 60 | ||
| 61 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 61 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 62 | <fieldset> | 62 | <fieldset> |
| 63 | -<legend>Existing values</legend> | 63 | +<legend>{i18n}Existing values{/i18n}</legend> |
| 64 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | 64 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> |
| 65 | <input type="hidden" name="fFieldId" value="{$oField->getId()}" /> | 65 | <input type="hidden" name="fFieldId" value="{$oField->getId()}" /> |
| 66 | <input type="hidden" name="action" value="metadataMultiAction" /> | 66 | <input type="hidden" name="action" value="metadataMultiAction" /> |
| @@ -87,7 +87,7 @@ from another source{/i18n})</span> | @@ -87,7 +87,7 @@ from another source{/i18n})</span> | ||
| 87 | 87 | ||
| 88 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 88 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 89 | <fieldset> | 89 | <fieldset> |
| 90 | -<legend>Disabled values</legend> | 90 | +<legend>{i18n}Disabled values{/i18n}</legend> |
| 91 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> | 91 | <input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}" /> |
| 92 | <input type="hidden" name="fFieldId" value="{$oField->getId()}" /> | 92 | <input type="hidden" name="fFieldId" value="{$oField->getId()}" /> |
| 93 | <input type="hidden" name="action" value="metadataMultiAction" /> | 93 | <input type="hidden" name="action" value="metadataMultiAction" /> |
templates/ktcore/principals/deleteunit.smarty
| 1 | -<h2>Delete Unit</h2> | 1 | +<h2>{i18n}Delete Unit{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <p class="descriptiveText">{i18n arg_name=$unit->getName()}Delete | 3 | <p class="descriptiveText">{i18n arg_name=$unit->getName()}Delete |
| 4 | unit <strong>#name#</strong> from the system{/i18n}</p> | 4 | unit <strong>#name#</strong> from the system{/i18n}</p> |
templates/ktcore/principals/editgroup.smarty
| 1 | -<h2>Edit Group Details</h2> | 1 | +<h2>{i18n}Edit Group Details{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <p class="descriptiveText">{i18n arg_name=$edit_group->getName()}Change | 3 | <p class="descriptiveText">{i18n arg_name=$edit_group->getName()}Change |
| 4 | the system's information about group <strong>#name#</strong>{/i18n}</p> | 4 | the system's information about group <strong>#name#</strong>{/i18n}</p> |
templates/ktcore/principals/groupadmin.smarty
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | <legend>{i18n}Add New Group{/i18n}</legend> | 4 | <legend>{i18n}Add New Group{/i18n}</legend> |
| 5 | <p class="descriptiveText">{i18n}Groups allow you to assign permissions and roles to a | 5 | <p class="descriptiveText">{i18n}Groups allow you to assign permissions and roles to a |
| 6 | number of different users at once.{/i18n}</p> | 6 | number of different users at once.{/i18n}</p> |
| 7 | -<p><a href="{addQS}action=addGroup{/addQS}" class="ktAction ktAddGroup ktInline">Add Group</a><a href="{addQS}action=addGroup{/addQS}">{i18n}Add a new group{/i18n}</a>.</p> | 7 | +<p><a href="{addQS}action=addGroup{/addQS}" class="ktAction ktAddGroup ktInline">{i18n}Add Group{/i18n}</a><a href="{addQS}action=addGroup{/addQS}">{i18n}Add a new group{/i18n}</a>.</p> |
| 8 | </fieldset> | 8 | </fieldset> |
| 9 | <!-- we roll both in here. --> | 9 | <!-- we roll both in here. --> |
| 10 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 10 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
templates/ktcore/principals/password.smarty
| 1 | -<h2>Password</h2> | 1 | +<h2>{i18n}Password{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <p class="descriptiveText">{i18n}You may change your password by entering it in the fields below. Your system administrator may have defined certain rules (such as minimum password length) that your password must abide by.{/i18n}</p> | 3 | <p class="descriptiveText">{i18n}You may change your password by entering it in the fields below. Your system administrator may have defined certain rules (such as minimum password length) that your password must abide by.{/i18n}</p> |
| 4 | 4 |
templates/ktcore/principals/preferences.smarty
| 1 | -<h2>Preferences</h2> | 1 | +<h2>{i18n}Preferences{/i18n}</h2> |
| 2 | 2 | ||
| 3 | <p class="descriptiveText">{i18n}You may change details about yourself by editing the entries below. Once you have completed the form, click on <strong>Update your details</strong>.{/i18n}</p> | 3 | <p class="descriptiveText">{i18n}You may change details about yourself by editing the entries below. Once you have completed the form, click on <strong>Update your details</strong>.{/i18n}</p> |
| 4 | 4 |
templates/ktcore/workflow/editState.smarty
| @@ -223,7 +223,7 @@ documents are in this state.{/i18n}</p></div> | @@ -223,7 +223,7 @@ documents are in this state.{/i18n}</p></div> | ||
| 223 | {/if} | 223 | {/if} |
| 224 | 224 | ||
| 225 | {else} | 225 | {else} |
| 226 | -<div class="ktInfo"><p>No permissions have been created within KnowledgeTree.</p></div> | 226 | +<div class="ktInfo"><p>{i18n}No permissions have been created within KnowledgeTree.{/i18n}</p></div> |
| 227 | {/if} | 227 | {/if} |
| 228 | 228 | ||
| 229 | 229 |
templates/ktstandard/authentication/ldapsearchgroup.smarty
| @@ -5,7 +5,7 @@ begin.{/i18n}</p> | @@ -5,7 +5,7 @@ begin.{/i18n}</p> | ||
| 5 | 5 | ||
| 6 | <input type="hidden" name="action" value="addGroupFromSource" /> | 6 | <input type="hidden" name="action" value="addGroupFromSource" /> |
| 7 | <input type="hidden" name="source_id" value="{$source->getId()}" /> | 7 | <input type="hidden" name="source_id" value="{$source->getId()}" /> |
| 8 | -<fieldset><legend>Search for group</legend> | 8 | +<fieldset><legend>{i18n}Search for group{/i18n}</legend> |
| 9 | {foreach from=$fields item=oWidget} | 9 | {foreach from=$fields item=oWidget} |
| 10 | {$oWidget->render()} | 10 | {$oWidget->render()} |
| 11 | {/foreach} | 11 | {/foreach} |
templates/ktstandard/authentication/ldapsearchuser.smarty
| @@ -11,7 +11,7 @@ begin.{/i18n}</p> | @@ -11,7 +11,7 @@ begin.{/i18n}</p> | ||
| 11 | 11 | ||
| 12 | <input type="hidden" name="action" value="addUserFromSource" /> | 12 | <input type="hidden" name="action" value="addUserFromSource" /> |
| 13 | <input type="hidden" name="source_id" value="{$source->getId()}" /> | 13 | <input type="hidden" name="source_id" value="{$source->getId()}" /> |
| 14 | -<fieldset><legend>Search for user</legend> | 14 | +<fieldset><legend>{i18n}Search for user{/i18n}</legend> |
| 15 | {foreach from=$fields item=oWidget} | 15 | {foreach from=$fields item=oWidget} |
| 16 | {$oWidget->render()} | 16 | {$oWidget->render()} |
| 17 | {/foreach} | 17 | {/foreach} |