admin-fscheck.tpl.php
9 years ago
admin-list.tpl.php
9 years ago
admin-nav.tpl.php
9 years ago
admin-opts.tpl.php
9 years ago
admin-poedit.tpl.php
9 years ago
admin-poinit.tpl.php
9 years ago
admin-root.tpl.php
9 years ago
admin-opts.tpl.php
106 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin options screen - changes loco plugin settings |
| 4 | */ |
| 5 | $nav = array ( |
| 6 | __('Packages','loco-translate') => array( 'href' => LocoAdmin::uri() ), |
| 7 | __('Settings','loco-translate') => array( 'icon' => 'admin-settings' ), |
| 8 | ); |
| 9 | ?> |
| 10 | |
| 11 | <div class="wrap loco-admin loco-settings"> |
| 12 | |
| 13 | <?php Loco::render('admin-nav', compact('nav') )?> |
| 14 | |
| 15 | <div> </div> |
| 16 | <div class="icon32 icon-settings"><br /></div> |
| 17 | <h2> |
| 18 | <?php Loco::h( __('Configure Loco Translate','loco-translate') )?> |
| 19 | </h2> |
| 20 | |
| 21 | <?php isset($success) and LocoAdmin::success( $success )?> |
| 22 | |
| 23 | <form action="" method="post"> |
| 24 | <table class="form-table"> |
| 25 | <tbody> |
| 26 | <tr valign="top"> |
| 27 | <th scope="row"><?php Loco::h( __('Compiling MO files','loco-translate') )?></th> |
| 28 | <td> |
| 29 | <fieldset> |
| 30 | <legend class="screen-reader-text"> |
| 31 | <span><?php Loco::h( __('Compiling MO files','loco-translate') )?></span> |
| 32 | </legend> |
| 33 | <p> |
| 34 | <label for="loco--use-msgfmt-0"> |
| 35 | <input type="radio" name="loco[use_msgfmt]" value="0" id="loco--use-msgfmt-0"<?php echo $use_msgfmt ? '' : ' checked';?> /> |
| 36 | <?php Loco::h( __('Use built-in MO compiler.','loco-translate') )?> |
| 37 | </label> |
| 38 | </p> |
| 39 | <p> |
| 40 | <label for="loco--use-msgfmt-1"> |
| 41 | <input type="radio" name="loco[use_msgfmt]" value="1" id="loco--use-msgfmt-1"<?php echo $use_msgfmt ? ' checked' : '';?> /> |
| 42 | <?php Loco::h( __('Use external command:','loco-translate') )?> |
| 43 | </label> |
| 44 | <ul> |
| 45 | <li> |
| 46 | <input type="text" size="32" name="loco[which_msgfmt]" id="loco--which_msgfmt" value="<?php Loco::h($which_msgfmt)?>" |
| 47 | placeholder="<?php Loco::h( __('Enter path to msgfmt on server','loco-translate') ) ?>" /> |
| 48 | </li> |
| 49 | </ul> |
| 50 | </p> |
| 51 | <p> |
| 52 | <label for="loco--gen-hash"> |
| 53 | <input type="checkbox" name="loco[gen_hash]" value="1" id="loco--gen-hash"<?php echo $gen_hash ? ' checked' : '';?> /> |
| 54 | <?php Loco::h( __('Generate hash tables','loco-translate') )?> |
| 55 | </label> |
| 56 | </p> |
| 57 | <p> |
| 58 | <label for="loco--use-fuzzy"> |
| 59 | <input type="checkbox" name="loco[use_fuzzy]" value="1" id="loco--use-fuzzy"<?php echo $use_fuzzy ? ' checked' : '';?> /> |
| 60 | <?php Loco::h( __('Include Fuzzy strings','loco-translate') )?> |
| 61 | </label> |
| 62 | </p> |
| 63 | </fieldset> |
| 64 | </td> |
| 65 | </tr> |
| 66 | <tr valign="top"> |
| 67 | <th scope="row"><?php Loco::h( __('Backing up PO files','loco-translate') )?></th> |
| 68 | <td> |
| 69 | <fieldset> |
| 70 | <legend class="screen-reader-text"> |
| 71 | <span><?php Loco::h( __('Backing up PO files','loco-translate') )?></span> |
| 72 | </legend> |
| 73 | <p> |
| 74 | <label for="loco--num-backups"> |
| 75 | <?php Loco::h( __('Number of backups to keep of each file:','loco-translate') )?> |
| 76 | </label> |
| 77 | <input type="number" min="0" max="99" size="2" name="loco[num_backups]" id="loco--num_backups" value="<?php printf('%u',$num_backups)?>" /> |
| 78 | </p> |
| 79 | </fieldset> |
| 80 | </td> |
| 81 | </tr> |
| 82 | <tr valign="top"> |
| 83 | <th scope="row"><?php Loco::h( __('Experimental features','loco-translate') )?></th> |
| 84 | <td> |
| 85 | <fieldset> |
| 86 | <legend class="screen-reader-text"> |
| 87 | <span><?php Loco::h( __('Experimental features','loco-translate') )?></span> |
| 88 | </legend> |
| 89 | <p> |
| 90 | <label for="loco--enable-core"> |
| 91 | <input type="checkbox" name="loco[enable_core]" value="1" id="loco--enable-core"<?php echo $enable_core ? ' checked' : '';?> /> |
| 92 | <?php Loco::h( __('Enable WordPress core translations','loco-translate') )?> |
| 93 | </label> |
| 94 | </p> |
| 95 | </fieldset> |
| 96 | </td> |
| 97 | </tr> |
| 98 | </tbody> |
| 99 | </table> |
| 100 | <p class="submit"> |
| 101 | <input type="submit" class="button-primary" value="<?php Loco::h( __('Save settings','loco-translate') )?>" /> |
| 102 | <a class="button" href="https://localise.biz/help/wordpress/translate-plugin/support" target="_blank"><?php Loco::h( __('Get help','loco-translate') )?></a> |
| 103 | </p> |
| 104 | </form> |
| 105 | |
| 106 | </div> |