TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

How to load an existing translation ? #656

Open JeromeDeBoysere opened 7 years ago

JeromeDeBoysere commented 7 years ago

Hello,

Your plugin is really great, thanks you for your work.

However, I thought TGMPA was only available in English but I have just seen that there is a directory 'languages' with the tgmpa-fr_FR.mo/tgmpa-fr_FR.po files for the French translation! Great!

Can you tell me how I can load the French translation? My WordPress is in French but TGMPA is still in English. Do I have do add some code to load the French language files ?

Thanks you

edit

I see load_theme_textdomain() is already in your class but it return false for me, I do not why!

jrfnl commented 7 years ago

I'm sorry to hear that the localization is not working for you. There is an open PR #601 which is trying to address this, but I haven't gotten round to testing this yet.

Also related #611 .

maxviewup commented 6 years ago

Having the same issue here:

There is an pt_BR (and pt_PT) translate file on the TGMPA, but it doesn't work on my themes. All messages still are in english. (check issue reference above)