From b3967e3983914357f8ab79432b006692fc7d105c Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Mon, 27 Mar 2006 10:45:19 +0000 Subject: [PATCH] Register languages in KTCoreLanguagePlugin.php, which happens early on. --- plugins/ktcore/KTCoreLanguagePlugin.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ plugins/ktcore/KTCorePlugin.php | 3 +-- 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 plugins/ktcore/KTCoreLanguagePlugin.php diff --git a/plugins/ktcore/KTCoreLanguagePlugin.php b/plugins/ktcore/KTCoreLanguagePlugin.php new file mode 100644 index 0000000..8e4a231 --- /dev/null +++ b/plugins/ktcore/KTCoreLanguagePlugin.php @@ -0,0 +1,45 @@ +registeri18n('knowledgeTree', KT_DIR . '/i18n'); + $this->registeri18nLang('knowledgeTree', "en", "default"); + $this->registerLanguage('en', 'English (United States)'); + } +} + +$oRegistry =& KTPluginRegistry::getSingleton(); +$oRegistry->registerPlugin('KTCoreLanguagePlugin', 'ktcore.language.plugin', __FILE__); diff --git a/plugins/ktcore/KTCorePlugin.php b/plugins/ktcore/KTCorePlugin.php index e591fa2..735c62f 100644 --- a/plugins/ktcore/KTCorePlugin.php +++ b/plugins/ktcore/KTCorePlugin.php @@ -32,6 +32,7 @@ require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); class KTCorePlugin extends KTPlugin { var $bAlwaysInclude = true; var $sNamespace = "ktcore.plugin"; + var $iOrder = -25; function setup() { $this->registerAction('documentaction', 'KTDocumentDetailsAction', 'ktcore.actions.document.displaydetails', 'KTDocumentActions.php'); @@ -67,8 +68,6 @@ class KTCorePlugin extends KTPlugin { $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->registeri18n('knowledgeTree', KT_DIR . '/i18n'); - $this->registerPortlet(array('browse'), 'KTAdminModePortlet', 'ktcore.portlets.admin_mode', 'KTPortlets.php'); -- libgit2 0.21.4