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

,

13 Responses to How to translate the WordPress Thesis Theme

  1. 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.

  2. Roberto August 19, 2009 at 15:57 #

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

  3. 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

  4. 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.

  5. Roberto September 18, 2009 at 16:56 #

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

  6. 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!

  7. Roberto September 18, 2009 at 19:46 #

    Hi.
    See WordPress in your language page.

  8. 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 :-)

  9. anuncios gratis March 11, 2010 at 19:50 #

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

  10. 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!

  11. 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!

  12. Sergio October 8, 2012 at 18:41 #

    Well… the way it worked for me is this.

    I installed the wordpress version using the spanish version, so my wp-config.php file my language was already defined this way define (‘WPLANG’, ‘es_ES’);

    When i went to wp-content/themes/thesis/lib/languages/ there was a thesis.pot file in there. This are the steps with the scenary i just described.

    1. Download Poedit.
    2. Download the thesis.pot file
    3. Change the thesis.pot file extension to .po
    4. Open the thesis.po file in poedit.
    5. Do your changes all or just the translations you needed.
    6. Save, this will create a .mo file
    7. Right now you will have a thesis.po and a thesis.mo file. Change the file names to: es_ES.po and es_ES.mo
    8. Move those files to your hosting. Refresh.

  13. Summer November 27, 2012 at 14:25 #

    Hi
    If you’re involved in software localization, I would warmly recommend this powerful, new, user-friendly 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.