Example #1
0
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');
?>
Example #2
0
            </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>
Example #3
0
                &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;
        }
Example #4
0
        <?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>
        $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>
Example #6
0
        <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">