简体   繁体   English

如何更新Wordpress翻译文件

[英]How to update a wordpress translation file

I want to localize a wordpress plugin and translate it to Persian with POEDIT. 我想本地化一个wordpress插件,并使用POEDIT将其翻译成波斯语。 I created the fa_IR.po , fa_IR.mo and all the texts loaded but when I write the translation texts and save the file, nothing happens, and it still shows me english texts in front-end.What should I do?! 我创建了fa_IR.pofa_IR.mo并加载了所有文本,但是当我编写翻译文本并保存文件时,什么也没有发生,并且仍然在前端显示英文文本。我该怎么办? 在此处输入图片说明

Did you properly put your fa_IR.mo file in the /wp-content/languages folder? 您是否已将fa_IR.mo文件正确放置在/ wp-content / languages文件夹中? And did you properly set define( 'WPLANG', 'fa_IR' ); 并正确设置了define('WPLANG','fa_IR'); in wp-config.php? 在wp-config.php中?

https://codex.wordpress.org/WordPress_in_Your_Language https://codex.wordpress.org/WordPress_in_Your_Language

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM