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)); ?>

Localized WordPress content for different sub-locales of same language?

Well, actually, you should view your site as requiring “multilingual” capabilities, even if the base language for both countries is identical, because the actual locale for each is nevertheless different. More specifically, you can create variant “translations” for your British (‘en_GB’) and Irish (‘en_IE’) localizations. A plugin such WPML (WordPress Multilingual) can help you implement … Read more

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