Tag Info

New answers tagged

0

The button might not be the best route to solve this problem. If your aim is to have a separate page for each language then look into using the WordPress ML plugin. This will give you the tools (and buttons) to properly have your site be in two languages.


0

You can use __(), _e(), _x() or _ex() and your textdomain to make your theme or plugin translatable. I stripped your code snippet to the basics, so you will get the idea more easily: <select class="widefat"> <?php foreach ( $this->getImageSizes() as $name => $atts ) : ?> <option value="<?php echo $name; ?>" ?>> ...


0

As brasofilo mentioned you can do a str_replace() on the admin_post_thumbnail_html filter. function changeFeaturedImageLinks($content) { $content = str_replace(__('Set featured image'), __('YOUR_CUSTOM_TEXT'), $content); $content = str_replace(__('Remove featured image'), __('YOUR_CUSTOM_TEXT'), $content); return $content; } ...


0

Localizing a string with html markup inside the string can be a very opinionated story as you can see from one of my questions when I started out. I would not say you are right, neither would I say that you are wrong, but I would say that your method is not prefered. If you have a look at I18n for WordPress Developers, you'll see that you should use ...


0

Thanks for bringing this up. The Koi theme files have been updated to address the issue you've brought up and to include some other minor i18n fixes. You can download the most recent version from WordPress.com here at this link.


0

Editing po files is easier than you can imagine. You can open a po file by any text editor such as gedit on linux or notepad on windows. After the header, you will see the following: msgid "Something" msgstr "Translation of Something" and the file goes on and on. If you want to change couple of translations, then , use gedit on linux or notepad on windows, ...



Top 50 recent answers are included