コード例 #1
0
ファイル: admin-list.tpl.php プロジェクト: Makenrro/repos
</strong>
                            </li><?php 
    if (isset($parent)) {
        ?>
 
                            <li>
                                <?php 
        Loco::h(Loco::__('Extends: %s'), $parent);
        ?>
 
                            </li><?php 
    }
    ?>
 
                            <li><?php 
    Loco::h(Loco::_n('1 language', '%u languages', $n), $n);
    ?>
 
                            </li><?php 
    if ($mtime) {
        ?>
 
                            <li class="loco-mtime">
                                <small>
                                    <?php 
        Loco::h(Loco::_x('Updated', 'Modified time'));
        ?>
 
                                    <?php 
        Loco::h(LocoAdmin::format_datetime($mtime));
        ?>
コード例 #2
0
ファイル: loco-admin.php プロジェクト: the-xenon/someshops
 /**
  * PO translate progress summary
  */
 public static function format_progress_summary(array $stats)
 {
     extract($stats);
     $text = sprintf(Loco::__('%s%% translated'), $p) . ', ' . sprintf(Loco::_n('1 string', '%s strings', $t), number_format($t));
     $extra = array();
     if ($f) {
         $extra[] = sprintf(Loco::__('%s fuzzy'), number_format($f));
     }
     if ($u) {
         $extra[] = sprintf(Loco::__('%s untranslated'), number_format($f));
     }
     if ($extra) {
         $text .= ' (' . implode(', ', $extra) . ')';
     }
     return $text;
 }