Language files in a theme
-
I have a multilingual site where I want to add a translation for each theme available.
Some questions on this subject:
– What is the name of the file? As I understand, it has to be in a folder called language within the theme. Something like
wp-content/themes/<my theme>/languages
and the file should be called, for instance, en_EN.po (plus the necessary compiled en_EN.mo)– What is the syntaxis of the .po file? Do I have to mention the absolute path, the relative path to the root of WordPress or else to the root of the theme?
#: wp-content/themes/<my theme>/<filename.ext>:109 msgid "My Favorites" msgstr ""I am sure this has been resolved in another post but I have tried several searches and cannot find it. I would appreciate if you can save yourself from pointing me to a different thread.
Thanks,
AG
The topic ‘Language files in a theme’ is closed to new replies.