Localized version offers upgrade to en-us version

(Answering my own question) It is now 1 week after posting my question. I just revisited the dashboard. There are now two updates available: WordPress 4.3.1–nl_NL and WordPress 4.3.1–en_US. So it looks as if the localized update takes some more time to prepare. I will not click anything right now, assuming that the update will … Read more

Can any users change locale language?

You don’t need to work on any .mo files for allowing your users to switch between language. Loco translate plugin comes with this features. So what you need to do is to follow the steps below :- Navigate to Loco Translate menu Find and select plugin / theme you want to translate Create template file … Read more

Possibility to use WordPress built-in localization

It is possible, and in some cases make sense, but I would advice against thinking that way. Some words in the context of wordpress core admin might be translated differently in the context of a theme. If the motivation here is to save translation time, then don’t bother as any one with translation experience will … Read more

Strings including html for localisation

Your example is correct, simply because it works. There are hundreds of ways to localize strings wich are displayed including html, all good and elegant in their own way. I like to do this as follows: printf( ‘<div class=”updated”> <p>%1$s</p> </div>’, __( ‘All options are restored successfully.’, ‘mytextdomain’ ) ); You also could do this … Read more

Change WordPress Language

I found the issue. So what happens is that when you do redownload the wordpress you need to go BACK into settings and update the language setting in the dropdown. It will have a new value there. 🙂

Do I need the .po file for my plugin?

keep the .po. If someone will want to modify your translation he can do it based on your .po but it is much harder to do it (if possible at all) based on the .mo file. You don’t save much by not distributing the .po and it keeps things organized for you as well.

get_locale() behaving strange in same functions.php file

You try this example <?php // outputs a list of languages names ?> <ul><?php pll_the_languages(); ?></ul> <?php // outputs a flags list (without languages names) ?> <ul><?php pll_the_languages(array(‘show_flags’=>1,’show_names’=>0)); ?></ul> <?php // outputs a dropdown list of languages names ?> <?php pll_the_languages(array(‘dropdown’=>1)); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)