1

Is is safe to edit language files from wp-content/languages/plugins/woocommerce-ro_RO.mo(.po) ? I'm asking this because I don't want them to be overriden on plugin update. Sorry if dumb question.

3

No, this is not safe. You shouldn't make any changes to files within a plugin's directory, all of those changes may be overridden.

If you want to change a translation, you can use a plugin such as Loco Translate or use the gettext filter.

2

This IS safe and this is where custom translation files need to be so that when the main plugin updates itself, your custom translations don't get overwritten.

The previous answer is not correct, simply because the person did not read your folder path correctly. The plugins store their language files (the ones that get overwritten) in this folder

wp-content/plugins/<pluginname>/languages/<pluginname>-ro_RO.(po|mo)

the folder that stores your custom translations, and the one you asked about, is

wp-content/languages/plugins/<pluginname>-ro_RO.(po|mo)

these do not get touched when a plugin updates itself

1
  • This should be the accepted answer. – user1448031 Jun 11 '20 at 6:09

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.