最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论