當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。