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');