mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 14:59:18 +08:00
feat:3.0.0版初次提交,新版将完全推倒重写
This commit is contained in:
parent
e556c4b6d9
commit
39735249ee
293 changed files with 26908 additions and 475 deletions
46
vendor/loco-translate/tpl/admin/init/init-pot.php
vendored
Normal file
46
vendor/loco-translate/tpl/admin/init/init-pot.php
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
/**
|
||||
* Initialize a new POT template file
|
||||
*/
|
||||
$this->extend('../layout');
|
||||
$help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/templates');
|
||||
?>
|
||||
|
||||
<div class="notice inline notice-generic">
|
||||
<h2><?php $params->e('subhead')?></h2>
|
||||
<p>
|
||||
<?php esc_html_e('Source files to scan:','loco-translate')?>
|
||||
<strong><?php $scan->n('count')?></strong>
|
||||
<span>(<?php
|
||||
// Translators: Where %s is the size of a file
|
||||
$scan->f( 'size', __('%s on disk','loco-translate') );?>, <?php
|
||||
// Translators: Where %s is the size of a file
|
||||
$scan->f( 'largest', __('largest is %s','loco-translate') )?>)</span>
|
||||
</p><?php
|
||||
if( $n = $scan->skip ):?>
|
||||
<p>
|
||||
<em><?php
|
||||
// Translators: Where %2$s is the size of a file
|
||||
self::e( _n('Excludes one file over %2$s','Excludes %s files over %2$s',$n,'loco-translate'), $n, $scan->large )?>.
|
||||
<a class="icon icon-help" href="<?php echo esc_url(apply_filters('loco_external','https://localise.biz/wordpress/plugin/faqs/skipped-files'))?>" target="_blank"><span class="screen-reader-text">Help</span></a>
|
||||
</em>
|
||||
</p><?php
|
||||
endif?>
|
||||
<p>
|
||||
<?php esc_html_e('Strings will be extracted to:','loco-translate')?>
|
||||
<code class="path"><?php $pot->e('relpath')?></code>
|
||||
</p>
|
||||
<form action="" method="post" enctype="application/x-www-form-urlencoded" id="loco-potinit"><?php
|
||||
|
||||
foreach( $hidden as $name => $value ):?>
|
||||
<input type="hidden" name="<?php echo $name?>" value="<?php $hidden->e($name)?>" /><?php
|
||||
endforeach;?>
|
||||
|
||||
<p class="submit">
|
||||
<button type="submit" class="button button-large button-primary" disabled><?php esc_html_e('Create template','loco-translate')?></button>
|
||||
<a href="<?php echo esc_url($help)?>" class="button button-large button-link" target="_blank"><?php
|
||||
esc_html_e('About templates','loco-translate')?></a>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue