feat:3.0.0版初次提交,新版将完全推倒重写

This commit is contained in:
sunxiyuan 2020-07-13 18:44:03 +08:00
parent e556c4b6d9
commit 39735249ee
293 changed files with 26908 additions and 475 deletions

View file

@ -0,0 +1,29 @@
<?php
/**
* Tokenizer extension required.
* Warning should also appear in the usual notices location. This page is just for information.
*/
$this->extend('../layout');
?>
<div class="notice inline notice-info">
<h3 class="has-icon">
<?php esc_html_e('About the Tokenizer','loco-translate')?>
</h3>
<p>
<?php
// Translators: change "en" in the URL to your language if it's available at http://php.net/docs.php
echo wp_kses(
__('Loco requires the <a href="http://php.net/manual/en/book.tokenizer.php" target="_blank">Tokenizer extension</a> to scan PHP source code for translatable strings','loco-translate'),
array('a'=>array('href'=>true,'target'=>true)), array('http','https')
);?>.
</p>
<p><?php
// Translators: %s is a URL. Keep the <a> tag intact
$help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/templates');
echo wp_kses(
sprintf( __('You can still translate any bundle that has a <a href="%s" target="_blank">template</a>','loco-translate'), $help ),
array('a'=>array('href'=>true,'target'=>true)), array('https')
);?>.
</p>
</div>