I18N Issue
-
Hi Developer,
If you have more than one placeholder in a string, it is recommended that you use argument swapping. Please refer to this official tip.
Like the above suggestion, class-r34nono.php line 157 should be modified as the following:
'description' => sprintf(__('Removes the selected %1$s tags from the %2$s on all front-end pages.', 'no-nonsense'), '<code><link></code>', '<code><head></code>'),
Then my zh_TW translation can be “從全部前端頁面的 %2$s 中移除選取的 %1$s 標籤。”templates\admin\r34nono-admin.php line 100 should be modified as the following:
<p><?php echo sprintf(__('For support with the %1$s plugin, please use the %2$sWordPress Support Forums%3$s or email %4$s.', 'no-nonsense'), '<strong>No Nonsense</strong>', '<a href="https://www.ads-software.com/support/plugin/no-nonsense" target="_blank">', '</a>', '<a href="mailto:[email protected]">[email protected]</a>'); ?></p>
class-r34nono.php line 61 should be modified as the following:
'description' => sprintf(__('Hides the admin bar on front-end pages for logged-in users with no editing capabilities. Admin bar will still display for these users when they access their profile page. %1$sNote:%2$s With this option turned on, you will need to provide another way on the front end of your site for logged-in users to access their profile page and the logout link.', 'no-nonsense'), '<strong>', '</strong>')
,class-r34nono.php line 229 should be modified as the following:
'description' => sprintf(__('Most WordPress sites do not use XML-RPC, although some plugins (e.g. Jetpack) and mobile applications may require it. Per changes in WordPress 3.5, turning this option on will only disable XML-RPC requests that require authentication. Use the %1$sAlso kill any incoming XML-RPC request%2$s option below to cause all incoming XML-RPC requests to exit early. (Note: Because this is a plugin-based solution, XML-RPC requests still must partially load, to the point where this plugin is active, before it can kill the process. For better performance during a DDOS attack, you may wish to block calls to %3$s directly in your site’s %4$s file.', 'no-nonsense'), '<strong>', '</strong>', '<code>xmlrpc.php</code>', '<code>.htaccess</code>'),
And templates\admin\r34nono-admin.php line 108 can be localized, it should be modified as the following:
<h3 class="hndle"><span><?php _e('Thank You!', 'no-nonsense'); ?></span></h3>
- The topic ‘I18N Issue’ is closed to new replies.