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.
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.
Share Improve this question asked Jul 2, 2018 at 19:55 Razvan CuceuRazvan Cuceu 2482 silver badges14 bronze badges2 Answers
Reset to default 3No, 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.
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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745309727a4621932.html
评论列表(0条)