?> </label> <br /> <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>
if (1 < count($pofiles)) { ?> <form action="#" class="loco-switcher"> <select onchange="void function(u){ u && location.assign(u) }( this.options[this.options.selectedIndex].value);"> <option value=""> <?php Loco::h(Loco::_x('Switch to...', 'Dropdown label')); ?> </option><?php // drop down of files in package $poname = str_replace('.mo', '.po', basename($path)); foreach ($pofiles as $_path) { $label = str_replace('.mo', '.po', basename($_path)); $poedit = LocoAdmin::trim_path($_path); $url = LocoAdmin::uri($package->get_query() + compact('poedit')); ?> <option value="<?php Loco::h($url); ?> " <?php $poname === $label and print 'selected'; ?> > <?php Loco::h($label); ?> </option><?php
<h2> <?php Loco::h(sprintf(Loco::__('File system permissions for %s'), $name)); ?> </h2><?php /* @var $package LocoPackage */ foreach ($package->get_permission_errors() as $path => $error) { ?> <ul class="loco-list"> <li> <code><?php Loco::h(LocoAdmin::trim_path($path)); ?> </code> </li><?php if ($error) { ?> <li class="loco-warning"> <span><?php Loco::h($error); ?> </span> </li><?php } else { ?> <li class="loco-ok">
<p> <label for="f-loco-locale"> – <?php Loco::h(Loco::_x('or enter any language code', 'Form label')); ?> : <br /> </label> <input type="text" maxlength="6" size="5" pattern="^[a-zA-Z]{2,3}([\-_][a-zA-Z]{2})?$" name="custom-locale" for="f-loco-locale" placeholder="xx_XX" /> <span class="flag"></span> </p><?php // provide location choice if package and global dirs are both writable if (is_writeable($pdir) && is_writable($gdir)) { $is_global = $package->is_global_path($path); $pdir = LocoAdmin::trim_path($pdir); ?> <p> <label> <input type="radio" name="gforce" value="0"<?php print $is_global ? '' : ' checked'; ?> /> <?php echo sprintf(Loco::_x('create in <code>%s</code>', 'Form label'), $pdir); ?> </label> <br /> <label> <input type="radio" name="gforce" value="1"<?php