Do I lose translations when I change my Text domain for my plugin on wp.org?

I actually got a superfast response from the plugins mail. I’m assuming it’s cool if I make this public. I am wondering if I do I lose translations when I change my “Text Domain: xxxxx” inside my readme? Yes but … You can’t change that. Well, you can, but the WordPress translation system will always … Read more

Language string not detecting used within the function

You can’t use variables in translation functions. From the internationalisation documentation: The following example tells you what not to do // This is incorrect do not use. _e( “Your city is $city.”, ‘my-theme’ ); The strings for translation are extracted from the source without executing the PHP associated with it. For example: The variable $city … Read more

jQuery Datepicker displays wrong language until interection with the calendar

This must have been a conflict in my site. TBH, I wasn’t able to spot the conflict, but I was able to circumvent it by setting the necessary lang strings just before datepicker’s initiation like so: $(function() { $.datepicker.regional[‘el’] = { closeText: ‘Κλείσιμο’, prevText: ‘Προηγούμενος’, nextText: ‘Επόμενος’, currentText: ‘Σήμερα’, monthNames: [‘Ιανουάριος’, ‘Φεβρουάριος’, ‘Μάρτιος’, ‘Απρίλιος’, ‘Μάιος’, … Read more

how to unlocalize theme/plugin?

The main problem is that you removed the sprintf. Replace the echo with sprintf and remove the (). Should be like this ‘logged_in_as’ => ‘<p class=”logged-in-as”>’. sprintf( ‘Logged in as <a href=”%1$s”>%2$s</a>. <a href=”%3$s” title=”Log out of this account”>Log out?</a>’, admin_url( ‘profile.php’ ), $user_identity, wp_logout_url( apply_filters( ‘the_permalink’, get_permalink( ) ) ) ). ‘</p>’, Be careful! … Read more

Use localized plugin name and description even when the plugin is disabled

Hello Dolly is a specific edge case, it does not translate itself. Rather it’s considered a part of the WordPress codebase, and has a translated title in the WP core language files. Instead, to have a plugin name translated, you need a language file that maps to the textdomain specified in your plugin, that contains … Read more