translation - Is is safe to edit language files from wp-contentlanguagespluginswoocommerce-ro_RO?

Is is safe to edit language files from wp-contentlanguagespluginswoocommerce-ro_RO.mo(.po) ? I'm asking this bec

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 badges
Add a comment  | 

2 Answers 2

Reset to default 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.

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信