本文整理汇总了PHP中Internationalization::getLanguageDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP Internationalization::getLanguageDescription方法的具体用法?PHP Internationalization::getLanguageDescription怎么用?PHP Internationalization::getLanguageDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Internationalization
的用法示例。
在下文中一共展示了Internationalization::getLanguageDescription方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (($all_langs = Internationalization::availableLanguages()) && count($all_langs) > 1) {
foreach ($all_langs as $code => $info) {
list($lang, $locale) = explode('_', $code);
?>
<a class="flag flag-<?php
echo strtolower($locale ?: $info['flag'] ?: $lang);
?>
"
href="?<?php
echo urlencode($_GET['QUERY_STRING']);
?>
&lang=<?php
echo $code;
?>
" title="<?php
echo Internationalization::getLanguageDescription($code);
?>
"> </a>
<?php
}
}
?>
</p>
</div>
<a class="pull-left" id="logo" href="<?php
echo ROOT_PATH;
?>
index.php"
title="<?php
echo __('Support Center');
?>
示例2: __
</td>
</tr>
</tbody>
<tbody id="language">
<tr>
<td width="180" class="required">
<?php echo __('Language'); ?>:
</td>
<td>
<?php
$langs = Internationalization::availableLanguages(); ?>
<select name="lang_id">
<?php foreach($langs as $l) {
$selected = ($info['lang_id'] == $l['code']) ? 'selected="selected"' : ''; ?>
<option value="<?php echo $l['code']; ?>" <?php echo $selected;
?>><?php echo Internationalization::getLanguageDescription($l['code']); ?></option>
<?php } ?>
</select>
<span class="error">* <?php echo $errors['lang_id']; ?></span>
<i class="help-tip icon-question-sign" href="#language"></i>
</td>
</tr>
</tbody>
<tbody>
<?php } ?>
<tr>
<th colspan="2">
<em><strong><?php echo __('Internal Notes');?></strong>: <?php echo __(
"be liberal, they're internal");?></em>
</th>
</tr>
示例3: uasort
<span class="error">* <?php
echo $errors['isactive'];
?>
</span> <i class="help-tip icon-question-sign" href="#status"></i>
</span>
</td>
</tr>
<?php
if ($template) {
?>
<tr>
<td width="180" class="required">
Language:
</td>
<td><?php
echo Internationalization::getLanguageDescription($info['lang']);
?>
</td>
</tr>
<?php
$current_group = false;
$impl = $template->getTemplates();
$_tpls = $template::$all_names;
$_groups = $template::$all_groups;
uasort($_tpls, function ($a, $b) {
return strcmp($a['group'] . $a['name'], $b['group'] . $b['name']);
});
foreach ($_tpls as $cn => $info) {
if (!$info['name']) {
continue;
}
示例4: foreach
<?php
$langs = Internationalization::availableLanguages();
?>
<select name="lang_id">
<?php
foreach ($langs as $l) {
$selected = $info['lang_id'] == $l['code'] ? 'selected="selected"' : '';
?>
<option value="<?php
echo $l['code'];
?>
" <?php
echo $selected;
?>
><?php
echo Internationalization::getLanguageDescription($l['code']);
?>
</option>
<?php
}
?>
</select>
<span class="error">* <?php
echo $errors['lang_id'];
?>
</span>
<i class="help-tip icon-question-sign" href="#language"></i>
</td>
</tr>
</tbody>
<tbody>
示例5: db_result
$space = db_result(db_query($sql));
echo sprintf('%.2f MiB', $space); ?></td>
<tr><td><?php echo __('Space for Attachments'); ?></td>
<td><?php
$sql = 'SELECT SUM(LENGTH(filedata)) / 1048576 FROM '.FILE_CHUNK_TABLE;
$space = db_result(db_query($sql));
echo sprintf('%.2f MiB', $space); ?></td>
</tbody>
</table>
<br/>
<h2><?php echo __('Installed Language Packs'); ?></h2>
<div style="margin: 0 20px">
<?php
foreach (Internationalization::availableLanguages() as $info) {
$p = $info['path'];
if ($info['phar']) $p = 'phar://' . $p;
if (file_exists($p . '/MANIFEST.php')) {
$manifest = (include $p . '/MANIFEST.php'); ?>
<h3><strong><?php echo Internationalization::getLanguageDescription($info['code']); ?></strong>
— <?php echo $manifest['Language']; ?>
<?php if ($info['phar'])
Plugin::showVerificationBadge($info['path']);
?>
</h3>
<div><?php echo __('Version'); ?>: <?php echo $manifest['Version']; ?>,
<?php echo __('Built'); ?>: <?php echo $manifest['Build-Date']; ?>
</div>
<?php }
} ?>
</div>
示例6: foreach
<div id="header">
<img id="logo" src="./images/<?php echo $wizard['logo']?$wizard['logo']:'logo.png'; ?>" width="280" height="72" alt="osTicket">
<div class="info"><?php echo $wizard['tagline']; ?></div>
<br/>
<ul class="links">
<li>
<?php
foreach($wizard['menu'] as $k=>$v)
echo sprintf('<a target="_blank" href="%s">%s</a> — ',$v,$k);
?>
<a target="_blank" href="http://osticket.com/contact-us"><?php echo __('Contact Us');?></a>
</li>
</ul>
<div class="flags">
<?php
if (($all_langs = Internationalization::availableLanguages())
&& (count($all_langs) > 1)
) {
foreach ($all_langs as $code=>$info) {
list($lang, $locale) = explode('_', $code);
?>
<a class="flag flag-<?php echo strtolower($locale ?: $info['flag'] ?: $lang); ?>"
href="?<?php echo urlencode($_GET['QUERY_STRING']); ?>&lang=<?php echo $code;
?>" title="<?php echo Internationalization::getLanguageDescription($code); ?>"> </a>
<?php }
} ?>
</div>
</div>
<div class="clear"></div>
<div id="content">