How to translate the WordPress Thesis Theme

by Roberto on August 16, 2009

in General

Post image for How to translate the WordPress Thesis Theme

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 :

  1. 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.
  2. rename the thesis.po file using your language code (ex for Italian language in will be : it_IT.po)
  3. open the file with the text editor of your choice and translate the strings filling the msgstr value
  4. using the command-line utility msgfmt to create the machine readable file : msgfmt -o it_IT.mo it_IT.po
  5. copy the files it_IT.po, it_IT.mo into the wp-content/themes/thesis directory

Suggested books

WordPress Plugin Development: Beginner's GuideWordPress Theme Design

{ 11 comments… read them below or add one }

xeye August 19, 2009 at 15:52

This doesn’t work for me…
i did what u say, used poedit. but nothing happens. any configuration needed to make this work?
thanks.

Roberto August 19, 2009 at 15:57

Hi, have you created the .mo file and copied it to the Thesis folder ?

xeye August 20, 2009 at 14:36

Yes i have, both files are in the “wp-content/themes/thesis” folder.
i tried putting it in different folders and nothing, i also tried keeping the original names of the files as thesis, nothing seems to effect the outcome, it’s like it ignores the files…
Any idea?

Thanks

anuncios clasificados Gratis en barcelona September 18, 2009 at 12:01

I trasnlated the file thesis.mo, and uploaded it into the same folder. The blog still appears in original english language. ¿? Can anyone help?

Please notify me by email.

Roberto September 18, 2009 at 16:56

Hi.
Have you set your preferred language in your wp-config.php file ?

anuncios clasificados gratuitos barcelona September 18, 2009 at 19:36

Yes, define (‘WPLANG’, ‘ca’);

Just the admin area becomes catalan, not the entire blog.

I would like to translate what the users see, phrases such as “[click to continue…]” are still in english…

I’m using Thesis theme.

Can anyone make the translation for me?

Thanks!

Roberto September 18, 2009 at 19:46
Alfredo November 23, 2009 at 23:27

Hi,

Upload the po and mo files (es_ES.po and es_ES.mo) to:
wp-content/themes/thesis_16/lib/languages

It will work :-)

anuncios gratis March 11, 2010 at 19:50

Hi,
thanks for great information of Wordpress Thesis Theme translation!
It work.

John June 7, 2010 at 17:58

Hi!
Nice blog! I’m trying to translate my thesis theme but I’m confuse with that part:

4. using the command-line utility msgfmt to create the machine readable file : msgfmt -o it_IT.mo it_IT.po

What is a command-line utility?? :) Where should I paste the commande?
Thanks!

ps. sorry i’m not familiar with Thesis at all!

Israel Estrada April 17, 2011 at 07:41

Hello everyone!

If you are experimenting some kind of troubles with thesis translation, try :

1) Open the .pot file in the “wp-content/themes/thesis/lib/languages/” folder
2) Save the .pot file as a .po file in the same foder
3) Make your translations in the .po file (you can use poedit software)
4) Save the .po file as a .mo file

that work for me!

Leave a Comment

Previous post:

Next post: