2

One of my WordPress plugins has ended up with 2 different sets of translations for the same exact language (Spanish)... there's the one set of .mo/.po files I bundle with the plugin itself, and another set that the WordPress.org community translators created. If your site language is set to Spanish it downloads both... so my question is, which one is it actually using? (mine or the community one?)

I know with WP theme templates there's a hierarchy of inheritance that tells you exactly the order in which it looks for template files... basically I'm looking for some documentation like this but for language files, i.e. in what order does WordPress look for language files? (I've searched in vain... hoping someone out there knows!)

Update 2017-07-16: the 2 sets of translations are located in the following directories:

Community translation: /wp-content/languages/plugins

My translation: /wp-content/plugins/[my-plugin-name]/languages

  • Where does each of the sets reside? Please, complement the question. – Max Yudin Jul 16 '17 at 9:45
  • 3
    Also, keep in mind that since WordPress 4.6 the order of translations lookup has been changed. Now it looks for wp-content/languages and then for available languages inside wp-content/theme_or_plugin. See I18N Improvements in 4.6 for more. – Max Yudin Jul 16 '17 at 9:49
  • Thanks @MaxYudin, that link gave me the answer I was looking for! – David R. Jul 17 '17 at 4:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.