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


PHP Internationalization::getLanguageDescription方法代码示例

本文整理汇总了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']);
        ?>
&amp;lang=<?php 
        echo $code;
        ?>
" title="<?php 
        echo Internationalization::getLanguageDescription($code);
        ?>
">&nbsp;</a>
<?php 
    }
}
?>
            </p>
            </div>
            <a class="pull-left" id="logo" href="<?php 
echo ROOT_PATH;
?>
index.php"
            title="<?php 
echo __('Support Center');
?>
开发者ID:gizur,项目名称:osticket,代码行数:31,代码来源:header.inc.php

示例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>
                &nbsp;<span class="error">*&nbsp;<?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>
开发者ID:KingsleyGU,项目名称:osticket,代码行数:31,代码来源:template.inc.php

示例3: uasort

                &nbsp;<span class="error">*&nbsp;<?php 
echo $errors['isactive'];
?>
</span>&nbsp;<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;
        }
开发者ID:ed00m,项目名称:osTicket-1.8,代码行数:31,代码来源:template.inc.php

示例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>
                &nbsp;<span class="error">*&nbsp;<?php 
    echo $errors['lang_id'];
    ?>
</span>
                <i class="help-tip icon-question-sign" href="#language"></i>
            </td>
        </tr>
</tbody>
<tbody>
开发者ID:dmiguel92,项目名称:osTicket-1.8,代码行数:31,代码来源:template.inc.php

示例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>
        &mdash; <?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>
开发者ID:CarlosAvilesMx,项目名称:CarlosAviles.Mx,代码行数:30,代码来源:system.inc.php

示例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> &mdash; ',$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']); ?>&amp;lang=<?php echo $code;
            ?>" title="<?php echo Internationalization::getLanguageDescription($code); ?>">&nbsp;</a>
<?php }
} ?>
            </div>
        </div>
        <div class="clear"></div>
        <div id="content">
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:30,代码来源:header.inc.php


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