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


PHP Translations::langs方法代码示例

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


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

示例1: get_cookie

    }
}
$view->users = $users;
// ==============================
// = display global roles table =
// ==============================
$view->globalRoles = $database->global_roles();
$view->globalRoles_display = $view->render("globalRoles.php");
// ==================================
// = display membership roles table =
// ==================================
$view->membershipRoles = $database->membership_roles();
$view->membershipRoles_display = $view->render("membershipRoles.php");
$view->showDeletedGroups = get_cookie('adminPanel_extension_show_deleted_groups', 0);
$view->showDeletedUsers = get_cookie('adminPanel_extension_show_deleted_users', 0);
$view->languages = Translations::langs();
$view->timezones = timezoneList();
$status = $database->get_statuses();
$view->arr_status = $status;
$admin['users'] = $view->render("users.php");
$admin['groups'] = $view->render("groups.php");
$admin['status'] = $view->render("status.php");
if ($kga['conf']['editLimit'] != '-') {
    $view->editLimitEnabled = true;
    $editLimit = $kga['conf']['editLimit'] / (60 * 60);
    // convert to hours
    $view->editLimitDays = (int) ($editLimit / 24);
    $view->editLimitHours = (int) ($editLimit % 24);
} else {
    $view->editLimitEnabled = false;
    $view->editLimitDays = '';
开发者ID:cljk,项目名称:kimai,代码行数:31,代码来源:init.php

示例2: array

      */
 /**
  * Display the preferences dialog.
  */
 case 'prefs':
     if (isset($kga['customer'])) {
         die;
     }
     $skins = array();
     $langs = array();
     $allSkins = glob(__DIR__ . "/../skins/*", GLOB_ONLYDIR);
     foreach ($allSkins as $skin) {
         $name = basename($skin);
         $skins[$name] = $name;
     }
     foreach (Translations::langs() as $lang) {
         $langs[$lang] = $lang;
     }
     $view->skins = $skins;
     $view->langs = $langs;
     $view->timezones = timezoneList();
     $view->user = $kga['user'];
     $view->rate = $database->get_rate($kga['user']['userID'], NULL, NULL);
     echo $view->render("floaters/preferences.php");
     break;
     /**
      * Display the dialog to add or edit a customer.
      */
 /**
  * Display the dialog to add or edit a customer.
  */
开发者ID:cljk,项目名称:kimai,代码行数:31,代码来源:floaters.php


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