At the end of the previous step, we can see than when displaying as single a post checked as french (or other language available in theme languages sub-folder), the theme terms are displayed in the same language. But not the name or description of categories or widget title.
Categories are totally depending on how the website is organized. So it necessary to import in languages files (.po and .mo) these new terms or sentences of description.
As webmaster loving keyboard or skilled with poEdit, you can do it by hand with .po files… xili-dictionary was conceived to afford pretty tools to do that on line – on the fly.
In preliminary : because the twentyten ‘root’ language is english (msgid of .pot or .po file), don’t forget to name (or rename) categories in english.
After installing, the plugin xili-dictionary, you can observe that the dictionary list is empty. To fill it with translated terms of theme (by example with fr_FR language twins), import the fr_FR.po available in the twentyten-xili folder (see previous post).
All the terms of theme and french translation are now in the list. And now to add the categories words, click the “import terms of categories” button and confirm.
As example, we will translate in french the category named “News”.
The list of terms in xili-dictionary is searchable. So, as shown below in screenshot, fill search with “News” to sub-select. Click Edit in column action. As visible, the term is not yet translated.
Click ‘add a translation’ to create a new term.
Fill the translation, don’t forget to select the target language, click add…
Repeat this with description for news… (second line)…
And now to test, we will create an updated fr_FR.mo file for the website.
Back to endusers side, we see that the categories list is now translated when a single in french is displayed !
At the first start of a website, this work is a little tedious. But when a modification occurs or a new category is added. It is easy.
Next step : the menus and the language list !