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


PHP Translator::getFullNamesForISOCodes方法代码示例

本文整理汇总了PHP中Translator::getFullNamesForISOCodes方法的典型用法代码示例。如果您正苦于以下问题:PHP Translator::getFullNamesForISOCodes方法的具体用法?PHP Translator::getFullNamesForISOCodes怎么用?PHP Translator::getFullNamesForISOCodes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Translator的用法示例。


在下文中一共展示了Translator::getFullNamesForISOCodes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct()
 {
     parent::__construct("NREN/subscriber settings", true, "contactinfo");
     $available_languages = Config::get_config('language.available');
     $this->full_names = Translator::getFullNamesForISOCodes($available_languages);
     $this->form_data['contact_email'] = "";
     $this->form_data['contact_phone'] = "";
     $this->form_data['sanitizedCertPhone'] = "";
     $this->form_data['sanitizedCertEmail'] = "";
     $this->form_data['sanitizedURL'] = "";
     $this->form_data['sanitizedWAYF'] = "";
     $this->form_data['enable_email'] = "";
     $this->form_data['cert_validity'] = "";
     $this->validation_error = false;
 }
开发者ID:henrikau,项目名称:confusa,代码行数:15,代码来源:nren_subs_settings.php

示例2: pre_process

 /**
  * pre_process()- function to call before render but *after*
  *		  authentication has finished.
  *
  *		  This function will not be of any use if something must
  *		  be done before authentication is run, in a forced
  *		  authenticated setup. (You should do that by doing the
  *		  business needed before calling framework into action).
  *
  * @person : the decorated person (if authenticated)
  */
 function pre_process($person)
 {
     $this->setPerson($person);
     $this->setCA();
     /* if the nren of the useris in maint-mode, trigger a warning here */
     if (!is_null($this->person) && !is_null($this->person->getNREN()) && $this->person->getNREN()->inMaintMode()) {
         $this->tpl->assign('instance', Config::get_config('system_name'));
         $this->tpl->assign('maint_header', $this->translateTag('l10n_nren_maint_header', 'portal_config'));
         $this->tpl->assign('maint_msg', $this->person->getNREN()->getMaintMsg());
         if ($this->person->isAuth() && $this->person->isNRENAdmin()) {
             $this->tpl->assign('mode_toggle', true);
             $this->tpl->assign('mode_toggle_text', $this->translateTag('l10n_nren_maint_mode_text', 'portal_config'));
             $this->tpl->assign('mode_toggle_button', $this->translateTag('l10n_nren_maint_mode_button', 'portal_config'));
         }
         $this->tpl->assign('maint', $this->tpl->fetch('nren_maint.tpl'));
         $this->tpl->display('site.tpl');
         exit(0);
     }
     /* show the available languages in the template */
     $available_languages = Config::get_config('language.available');
     $this->tpl->assign('available_languages', Translator::getFullNamesForISOCodes($available_languages));
     $this->translator->guessBestLanguage($person);
     $this->tpl = $this->translator->decorateTemplate($this->tpl, 'menu');
     $this->tpl = $this->translator->decorateTemplate($this->tpl, $this->dictionary);
     $this->tpl->assign('selected_language', $this->translator->getLanguage());
     return false;
 }
开发者ID:henrikau,项目名称:confusa,代码行数:38,代码来源:Content_Page.php


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