当前位置: 首页>>代码示例>>PHP>>正文


PHP Localization::getAvailableInterfaceLanguageDescriptions方法代码示例

本文整理汇总了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);
 }
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:7,代码来源:multilingual.php

示例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");
 }
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:23,代码来源:login.php

示例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">
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:31,代码来源:add.php

示例4: getLocales

 protected function getLocales()
 {
     return Localization::getAvailableInterfaceLanguageDescriptions();
 }
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:4,代码来源:install.php


注:本文中的Localization::getAvailableInterfaceLanguageDescriptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。