I download a wordpress theme that have a language folder with .po and .mo files, I translate these files with POEdit and replace with originals. but any words in theme didn't translate.
I think I must put files in another place, In theme help I didn't find any useful answer.
please help me.
my files: fa_IR.mo and fa_IR.po
in my wp-config: define('WPLANG', 'fa_IR');
I step by step follow Wordpress Codex but it don't change and don't shown my translation.
In order for Wordpress to properly find your localization files, they have to be in the directory specified in either the second argument of
load_theme_textdomain
or the third ofload_plugin_textdomain
.Be careful that your .mo files must be named exactly like the locale. In your case it has to be
fa_IR.mo
. In the case of a plugin, the name of the plugin must be prefixed to the locale with a dash, such as:my-plugin-fa_IR.mo
.