Commit 081c8bc9a2b4bf1fb34cce2b5202b9e693dd8ad4
1 parent
fc26a2e8
i18n fixes.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5984 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
10 changed files
with
15 additions
and
15 deletions
lib/authentication/builtinauthenticationprovider.inc.php
| @@ -54,7 +54,7 @@ class KTBuiltinAuthenticationProvider extends KTAuthenticationProvider { | @@ -54,7 +54,7 @@ class KTBuiltinAuthenticationProvider extends KTAuthenticationProvider { | ||
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | function editUserSource_main() { | 56 | function editUserSource_main() { |
| 57 | - $this->oPage->setBreadcrumbDetails(_kt('change user password')); | 57 | + $this->oPage->setBreadcrumbDetails(_kt('Change User Password')); |
| 58 | $this->oPage->setTitle(_kt("Change User Password")); | 58 | $this->oPage->setTitle(_kt("Change User Password")); |
| 59 | 59 | ||
| 60 | $user_id = KTUtil::arrayGet($_REQUEST, 'user_id'); | 60 | $user_id = KTUtil::arrayGet($_REQUEST, 'user_id'); |
| @@ -161,7 +161,7 @@ class KTBuiltinAuthenticationProvider extends KTAuthenticationProvider { | @@ -161,7 +161,7 @@ class KTBuiltinAuthenticationProvider extends KTAuthenticationProvider { | ||
| 161 | function verify($oUser) { | 161 | function verify($oUser) { |
| 162 | if (isset($_SESSION['mustChangePassword'])) { | 162 | if (isset($_SESSION['mustChangePassword'])) { |
| 163 | $url = generateControllerUrl("login", "action=providerVerify&type=1"); | 163 | $url = generateControllerUrl("login", "action=providerVerify&type=1"); |
| 164 | - $this->addErrorMessage("Your password has expired"); | 164 | + $this->addErrorMessage(_kt("Your password has expired")); |
| 165 | redirect($url); | 165 | redirect($url); |
| 166 | exit(0); | 166 | exit(0); |
| 167 | } | 167 | } |
lib/import/fsimportstorage.inc.php
| @@ -38,10 +38,10 @@ class KTFSImportStorage extends KTImportStorage { | @@ -38,10 +38,10 @@ class KTFSImportStorage extends KTImportStorage { | ||
| 38 | 38 | ||
| 39 | function init() { | 39 | function init() { |
| 40 | if (!file_exists($this->sBasePath)) { | 40 | if (!file_exists($this->sBasePath)) { |
| 41 | - return PEAR::raiseError("Filesystem location given does not exist"); | 41 | + return PEAR::raiseError(_kt("Filesystem location given does not exist")); |
| 42 | } | 42 | } |
| 43 | if (!is_dir($this->sBasePath)) { | 43 | if (!is_dir($this->sBasePath)) { |
| 44 | - return PEAR::raiseError("Filesystem location given is not a directory"); | 44 | + return PEAR::raiseError(_kt("Filesystem location given is not a directory")); |
| 45 | } | 45 | } |
| 46 | } | 46 | } |
| 47 | 47 |
lib/session/Session.inc
| @@ -52,7 +52,7 @@ class Session { | @@ -52,7 +52,7 @@ class Session { | ||
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | if ($oUser->getDisabled()) { | 54 | if ($oUser->getDisabled()) { |
| 55 | - return PEAR::raiseError("Your account has been disabled. Please contact the system administrator for assistance."); | 55 | + return PEAR::raiseError(_kt("Your account has been disabled. Please contact the system administrator for assistance.")); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | // bind user id to session | 58 | // bind user id to session |
| @@ -201,7 +201,7 @@ class Session { | @@ -201,7 +201,7 @@ class Session { | ||
| 201 | if ($numrows < 1) { | 201 | if ($numrows < 1) { |
| 202 | // the session doesn't exist in the db | 202 | // the session doesn't exist in the db |
| 203 | $default->log->info("Session::verify sessionID=$sessionID, not in db"); | 203 | $default->log->info("Session::verify sessionID=$sessionID, not in db"); |
| 204 | - return PEAR::raiseError('You need to login to access this page'); | 204 | + return PEAR::raiseError(_kt('You need to login to access this page')); |
| 205 | return false; | 205 | return false; |
| 206 | } | 206 | } |
| 207 | 207 |
plugins/ktcore/KTDocumentActions.php
| @@ -484,7 +484,7 @@ class KTDocumentCheckInAction extends KTDocumentAction { | @@ -484,7 +484,7 @@ class KTDocumentCheckInAction extends KTDocumentAction { | ||
| 484 | 484 | ||
| 485 | 485 | ||
| 486 | function do_main() { | 486 | function do_main() { |
| 487 | - $this->oPage->setBreadcrumbDetails("checkin"); | 487 | + $this->oPage->setBreadcrumbDetails(_kt("Checkin")); |
| 488 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkin'); | 488 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/checkin'); |
| 489 | 489 | ||
| 490 | $oForm = $this->form_main(); | 490 | $oForm = $this->form_main(); |
| @@ -734,7 +734,7 @@ class KTDocumentDeleteAction extends KTDocumentAction { | @@ -734,7 +734,7 @@ class KTDocumentDeleteAction extends KTDocumentAction { | ||
| 734 | } | 734 | } |
| 735 | 735 | ||
| 736 | function do_main() { | 736 | function do_main() { |
| 737 | - $this->oPage->setBreadcrumbDetails("Delete"); | 737 | + $this->oPage->setBreadcrumbDetails(_kt("Delete")); |
| 738 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/delete'); | 738 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/delete'); |
| 739 | 739 | ||
| 740 | $oForm = $this->form_main(); | 740 | $oForm = $this->form_main(); |
plugins/ktcore/KTPermissions.php
| @@ -57,7 +57,7 @@ class KTDocumentPermissionsAction extends KTDocumentAction { | @@ -57,7 +57,7 @@ class KTDocumentPermissionsAction extends KTDocumentAction { | ||
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | function do_main() { | 59 | function do_main() { |
| 60 | - $this->oPage->setBreadcrumbDetails("Document Permissions"); | 60 | + $this->oPage->setBreadcrumbDetails(_kt("Document Permissions")); |
| 61 | $oTemplate = $this->oValidator->validateTemplate("ktcore/document/document_permissions"); | 61 | $oTemplate = $this->oValidator->validateTemplate("ktcore/document/document_permissions"); |
| 62 | 62 | ||
| 63 | $oPL = KTPermissionLookup::get($this->oDocument->getPermissionLookupID()); | 63 | $oPL = KTPermissionLookup::get($this->oDocument->getPermissionLookupID()); |
plugins/ktcore/authentication/authenticationadminpage.inc.php
| @@ -96,7 +96,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { | @@ -96,7 +96,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { | ||
| 96 | $oSource =& KTAuthenticationSource::get($_REQUEST['source_id']); | 96 | $oSource =& KTAuthenticationSource::get($_REQUEST['source_id']); |
| 97 | $this->aBreadcrumbs[] = array('name' => $oSource->getName()); | 97 | $this->aBreadcrumbs[] = array('name' => $oSource->getName()); |
| 98 | $this->oPage->setTitle(sprintf(_kt("Authentication source: %s"), $oSource->getName())); | 98 | $this->oPage->setTitle(sprintf(_kt("Authentication source: %s"), $oSource->getName())); |
| 99 | - $this->oPage->setBreadcrumbDetails('viewing'); | 99 | + $this->oPage->setBreadcrumbDetails(_kt('Viewing')); |
| 100 | $sProvider = $oSource->getAuthenticationProvider(); | 100 | $sProvider = $oSource->getAuthenticationProvider(); |
| 101 | $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); | 101 | $oRegistry =& KTAuthenticationProviderRegistry::getSingleton(); |
| 102 | $oProvider =& $oRegistry->getAuthenticationProvider($sProvider); | 102 | $oProvider =& $oRegistry->getAuthenticationProvider($sProvider); |
| @@ -118,7 +118,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { | @@ -118,7 +118,7 @@ class KTAuthenticationAdminPage extends KTAdminDispatcher { | ||
| 118 | 'query' => sprintf('action=viewsource&source_id=%d', $oSource->getId()), | 118 | 'query' => sprintf('action=viewsource&source_id=%d', $oSource->getId()), |
| 119 | ); | 119 | ); |
| 120 | $this->oPage->setTitle(sprintf(_kt("Editing authentication source: %s"), $oSource->getName())); | 120 | $this->oPage->setTitle(sprintf(_kt("Editing authentication source: %s"), $oSource->getName())); |
| 121 | - $this->oPage->setBreadcrumbDetails('editing'); | 121 | + $this->oPage->setBreadcrumbDetails(_kt("Editing")); |
| 122 | 122 | ||
| 123 | $fields = array(); | 123 | $fields = array(); |
| 124 | 124 |
plugins/ktcore/document/Rename.php
| @@ -67,7 +67,7 @@ class KTDocumentRenameAction extends KTDocumentAction { | @@ -67,7 +67,7 @@ class KTDocumentRenameAction extends KTDocumentAction { | ||
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | function do_main() { | 69 | function do_main() { |
| 70 | - $this->oPage->setBreadcrumbDetails("rename"); | 70 | + $this->oPage->setBreadcrumbDetails(_kt("Rename")); |
| 71 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/rename'); | 71 | $oTemplate =& $this->oValidator->validateTemplate('ktcore/action/rename'); |
| 72 | $fields = array(); | 72 | $fields = array(); |
| 73 | 73 |
plugins/ktcore/document/edit.php
| @@ -114,7 +114,7 @@ class KTDocumentEditAction extends KTDocumentAction { | @@ -114,7 +114,7 @@ class KTDocumentEditAction extends KTDocumentAction { | ||
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | function do_main() { | 116 | function do_main() { |
| 117 | - $this->oPage->setBreadcrumbDetails("Edit Metadata"); | 117 | + $this->oPage->setBreadcrumbDetails(_kt("Edit Metadata")); |
| 118 | 118 | ||
| 119 | $oTemplate = $this->oValidator->validateTemplate('ktcore/document/edit'); | 119 | $oTemplate = $this->oValidator->validateTemplate('ktcore/document/edit'); |
| 120 | 120 |
plugins/ktcore/folder/Permissions.php
| @@ -242,7 +242,7 @@ class KTFolderPermissionsAction extends KTFolderAction { | @@ -242,7 +242,7 @@ class KTFolderPermissionsAction extends KTFolderAction { | ||
| 242 | 242 | ||
| 243 | 243 | ||
| 244 | function do_edit() { | 244 | function do_edit() { |
| 245 | - $this->oPage->setBreadcrumbDetails(_kt("viewing permissions")); | 245 | + $this->oPage->setBreadcrumbDetails(_kt("Viewing Permissions")); |
| 246 | 246 | ||
| 247 | 247 | ||
| 248 | $oPO = KTPermissionObject::get($this->oFolder->getPermissionObjectId()); | 248 | $oPO = KTPermissionObject::get($this->oFolder->getPermissionObjectId()); |
templates/ktcore/folder/permissions.smarty
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | <div class="ktInfo"> | 18 | <div class="ktInfo"> |
| 19 | <p>{i18n}This folder defines its own permissions.{/i18n} | 19 | <p>{i18n}This folder defines its own permissions.{/i18n} |
| 20 | <a class="ktActionLink ktDelete" | 20 | <a class="ktActionLink ktDelete" |
| 21 | - kt:deleteMessage="Are you sure you wish to reinstate inherited permissions?" | 21 | + kt:deleteMessage="{i18n}Are you sure you wish to reinstate inherited permissions?{/i18n}" |
| 22 | href="{addQS context=$context}action=inheritPermissions{/addQS}">{i18n}Inherit permissions{/i18n}</a> | 22 | href="{addQS context=$context}action=inheritPermissions{/addQS}">{i18n}Inherit permissions{/i18n}</a> |
| 23 | </div> | 23 | </div> |
| 24 | {/if} | 24 | {/if} |