本文整理汇总了PHP中Localization::getAvailableInterfaceLanguageDescriptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Localization::getAvailableInterfaceLanguageDescriptions方法的具体用法?PHP Localization::getAvailableInterfaceLanguageDescriptions怎么用?PHP Localization::getAvailableInterfaceLanguageDescriptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Localization
的用法示例。
在下文中一共展示了Localization::getAvailableInterfaceLanguageDescriptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view
public function view()
{
$locales = Localization::getAvailableInterfaceLanguageDescriptions();
$this->set('LANGUAGE_CHOOSE_ON_LOGIN', Config::get('LANGUAGE_CHOOSE_ON_LOGIN'));
$this->set('LANGUAGE_MULTILINGUAL_CONTENT_ENABLED', Config::get('LANGUAGE_MULTILINGUAL_CONTENT_ENABLED'));
$this->set('interfacelocales', $locales);
}
示例2: on_start
public function on_start()
{
$this->error = Loader::helper('validation/error');
if (USER_REGISTRATION_WITH_EMAIL_ADDRESS) {
$this->set('uNameLabel', t('Email Address'));
} else {
$this->set('uNameLabel', t('Username'));
}
$txt = Loader::helper('text');
if (isset($_GET['uName']) && strlen($_GET['uName'])) {
// pre-populate the username if supplied, if its an email address with special characters the email needs to be urlencoded first,
$this->set("uName", trim($txt->email($_GET['uName'])));
}
$languages = array();
$locales = array();
if (Config::get('LANGUAGE_CHOOSE_ON_LOGIN')) {
$locales = Localization::getAvailableInterfaceLanguageDescriptions();
$locales = array_merge(array('' => t('** Default')), $locales);
}
$this->locales = $locales;
$this->set('locales', $locales);
$this->openIDReturnTo = BASE_URL . View::url("/login", "complete_openid");
}
示例3: defined
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$th = Loader::helper('text');
Loader::model('attribute/categories/user');
$attribs = UserAttributeKey::getRegistrationList();
$assignment = PermissionKey::getByHandle('edit_user_properties')->getMyAssignment();
Loader::model("search/group");
$gl = new GroupSearch();
$gl->setItemsPerPage(10000);
$gArray = $gl->getPage();
$locales = Localization::getAvailableInterfaceLanguageDescriptions(ACTIVE_LOCALE);
?>
<?php
echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Add User'), false, false, false);
?>
<form method="post" enctype="multipart/form-data" id="ccm-user-form" action="<?php
echo $this->url('/dashboard/users/add');
?>
">
<?php
echo $valt->output('create_account');
?>
<input type="hidden" name="_disableLogin" value="1">
<div class="ccm-pane-body">
<table class="table table-bordered">
示例4: getLocales
protected function getLocales()
{
return Localization::getAvailableInterfaceLanguageDescriptions();
}