WordPress Thesis Theme is shipped in English language only, but it provides also the strings to translate in a file in PO (GNU Gettext Portable Object) format.
The file is thesis.po
and is located in the directory wp-content/themes/thesis
of your WordPress installation. The file thesis.mo
that you’ll find in the same directory is the same file but in the machine readable format.
To translate the Thesis’s strings in your own language follow these simple steps :
- set your preferred language in the file
wp-config.php
: for Italian, for example,define ('WPLANG', 'it_IT');
See these instructions WordPress in Your Language for a complete guide. - rename the
thesis.po
file using your language code (ex for Italian language in will be :it_IT.po
) - open the file with the text editor of your choice and translate the strings filling the
msgstr
value - using the command-line utility
msgfmt
to create the machine readable file :msgfmt -o it_IT.mo it_IT.po
- copy the files
it_IT.po
,it_IT.mo
into thewp-content/themes/thesis
directory - In thesis 1.8 or later copy the files
it_IT.po
,it_IT.mo
into thewp-content/themes/thesis_18/lib/languages
directory - There may be missing strings, so add them to the .po file with Dreamweaver or notepad and generate the .mo file with poedit.
thank you!
.. and you can download the msgfmt utility with the gettext package, wich can be downloaded from here: http://gnuwin32.sourceforge.net/packages/gettext.htm#download
I have tried it but it does not working. Could you please help me to fix the error?
you can write me on the email about the problems and we can discuss…
Hi,
If you want to localize software and are interested in a user friendly translation management tool, I would warmly recommend this powerful, localization tool my team recently developed – http://poeditor.com/
It will most likely make your work a lot easier, so feel free to try it out and , if you like it, to recommend it to developers and everyone who might find it useful.