本文整理汇总了PHP中ZLanguage::getlanguageCode方法的典型用法代码示例。如果您正苦于以下问题:PHP ZLanguage::getlanguageCode方法的具体用法?PHP ZLanguage::getlanguageCode怎么用?PHP ZLanguage::getlanguageCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZLanguage
的用法示例。
在下文中一共展示了ZLanguage::getlanguageCode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: install
/**
* Initialise the settings module.
*
* @return boolean
*/
public function install()
{
// Set up an initial value for a module variable. Note that all module
// variables should be initialised with some value in this way rather
// than just left blank, this helps the user-side code and means that
// there doesn't need to be a check to see if the variable is set in
// the rest of the code as it always will be
System::setVar('debug', '0');
System::setVar('sitename', $this->__('Site name'));
System::setVar('slogan', $this->__('Site description'));
System::setVar('metakeywords', $this->__('zikula, portal, portal web, open source, web site, website, weblog, blog, content management, content management system, web content management, web content management system, enterprise web content management, cms, application framework'));
System::setVar('defaultpagetitle', $this->__('Site name'));
System::setVar('defaultmetadescription', $this->__('Site description'));
System::setVar('startdate', date('m/Y', time()));
System::setVar('adminmail', 'example@example.com');
System::setVar('Default_Theme', 'Andreas08');
System::setVar('timezone_offset', '0');
System::setVar('timezone_server', '0');
System::setVar('funtext', '1');
System::setVar('reportlevel', '0');
System::setVar('startpage', '');
System::setVar('Version_Num', Zikula_Core::VERSION_NUM);
System::setVar('Version_ID', Zikula_Core::VERSION_ID);
System::setVar('Version_Sub', Zikula_Core::VERSION_SUB);
System::setVar('debug_sql', '0');
System::setVar('multilingual', '1');
System::setVar('useflags', '0');
System::setVar('theme_change', '0');
System::setVar('UseCompression', '0');
System::setVar('siteoff', 0);
System::setVar('siteoffreason', '');
System::setVar('starttype', '');
System::setVar('startfunc', '');
System::setVar('startargs', '');
System::setVar('entrypoint', 'index.php');
System::setVar('language_detect', 0);
System::setVar('shorturls', false);
System::setVar('shorturlstype', '0');
System::setVar('shorturlsseparator', '-');
System::setVar('shorturlsstripentrypoint', false);
System::setVar('shorturlsdefaultmodule', '');
System::setVar('profilemodule', ModUtil::available('Profile') ? 'Profile' : '');
System::setVar('messagemodule', '');
System::setVar('languageurl', 0);
System::setVar('ajaxtimeout', 5000);
//! this is a comma-separated list of special characters to search for in permalinks
System::setVar('permasearch', $this->__('À,Á,Â,Ã,Å,à,á,â,ã,å,Ò,Ó,Ô,Õ,Ø,ò,ó,ô,õ,ø,È,É,Ê,Ë,è,é,ê,ë,Ç,ç,Ì,Í,Î,Ï,ì,í,î,ï,Ù,Ú,Û,ù,ú,û,ÿ,Ñ,ñ,ß,ä,Ä,ö,Ö,ü,Ü'));
//! this is a comma-separated list of special characters to replace in permalinks
System::setVar('permareplace', $this->__('A,A,A,A,A,a,a,a,a,a,O,O,O,O,O,o,o,o,o,o,E,E,E,E,e,e,e,e,C,c,I,I,I,I,i,i,i,i,U,U,U,u,u,u,y,N,n,ss,ae,Ae,oe,Oe,ue,Ue'));
System::setVar('language',ZLanguage::getLanguageCodeLegacy());
System::setVar('locale', ZLanguage::getLocale());
System::setVar('language_i18n', ZLanguage::getlanguageCode());
System::setVar('idnnames', 1);
if (!DBUtil::createTable('workflows')) {
return false;
}
if (!DBUtil::createTable('objectdata_attributes')) {
return false;
}
if (!DBUtil::createTable('objectdata_log')) {
return false;
}
if (!DBUtil::createTable('objectdata_meta')) {
return false;
}
// Initialisation successful
return true;
}