Пример #1
0
 
                            </li><?php 
    }
    ?>
 
                        </ul>
                    </td>
                    <td>
                        <ul><?php 
    try {
        $package->check_permissions();
        ?>
 
                            <li class="loco-ok">
                                <?php 
        echo LocoAdmin::fscheck_link($package, $domain, Loco::_x('OK', 'Message label'));
        ?>
 
                            </li><?php 
    } catch (Exception $Ex) {
        ?>
 
                            <li class="loco-warning">
                                <?php 
        echo LocoAdmin::fscheck_link($package, $domain, $Ex->getMessage());
        ?>
 
                            </li><?php 
    }
    ?>
 
Пример #2
0
            <label>
                <input type="radio" name="gforce" value="1"<?php 
    print $is_global ? ' checked' : '';
    print $gdir_ok ? '' : ' disabled';
    ?>
 />
                <?php 
    Loco::h(Loco::_x('create in global languages directory', 'Form label'));
    ?>
 
                <code><?php 
    Loco::h(LocoAdmin::trim_path($gdir));
    ?>
/</code>
            </label>
        </p><?php 
}
?>
 

        <p class="submit">
            <input type="submit" value="<?php 
Loco::h(Loco::_x('Start translating', 'Submit button'));
?>
" class="button button-primary button-large" disabled />
        </p>
    </form>
    
    
</div> 
Пример #3
0
 /**
  * Generate a link to create a new PO file for a not-yet-specified locale
  */
 public static function msginit_link(LocoPackage $package, $domain = '', $label = '')
 {
     if (!$domain) {
         $domain = $package->get_domain();
     }
     $url = self::uri($package->get_query() + array('msginit' => $domain ? $domain : $package->get_domain()));
     if (!$label) {
         $label = Loco::_x('New language', 'Add button');
     }
     return '<a href="' . Loco::html($url) . '">' . Loco::html($label) . '</a>';
 }
Пример #4
0
?>
/loco-fail.php" id="loco-filter">
                <div class="loco-clearable">
                    <input type="text" maxlength="100" name="q" id="loco-search" placeholder="<?php 
Loco::h(Loco::__('Filter translations'));
?>
" autocomplete="off" disabled />
                </div>
            </form>
            <form action="http://wordpress.org/support/plugin/<?php 
echo Loco::NS;
?>
" target="_blank" class="loco-right">
                <button class="button loco-help" data-loco="help" type="submit">
                    <span><?php 
Loco::h(Loco::_x('Help', 'Editor button'));
?>
</span>
                </button>
            </form>
        </nav>
    
        <div id="loco-poedit-inner" class="loco-editor loading">
            <span>Loading..</span>
        </div>
    
    </div>
    
    
    <script>
        loco = window.loco || {};
Пример #5
0
    <div class="loco-list loco-list-plugins">
        <?php 
    Loco::render('admin-list', array('items' => $plugins));
    ?>
 
    </div><?php 
}
// Core packages
//
if ($core) {
    ?>
 
    <div class="icon32 icon-generic"><br /></div>
    <h2 class="dashicons-wordpress">
        <?php 
    Loco::h(Loco::_x('Core', 'Package list header'));
    ?>
 
    </h2>
    <div class="loco-list loco-list-core">
        <?php 
    Loco::render('admin-list', array('items' => $core));
    ?>
 
    </div><?php 
}
?>
 

</div>
Пример #6
0
                            </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));
        ?>
 
                                </small>
                            </li><?php 
    }
    ?>
 
                        </ul>
                    </td>
                    <td>
                        <ul>