• I have the languages folder that contains the pt_BR.mo file in WP installation in order to translate my Blog to Brazilian-Portuguese. WP_LANG was set to pt_BR and all works fine for the Admin Panel (it’s in portuguese language).
    But I can’t figure out on how to set up the MO file for translation the contents on the theme files marked up with _e($message) like Pages, Archives, Search etc…

    TIA

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you seen Translating_WordPress?

    Here is the best instructions I could find:
    http://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/

    It means you have to create a POT file from the theme > .po file to make the translation (e.g. with poEdit) and then save it as .mo: basically, a different .mo file for the theme only and have the changes in the code as described in Ryan’s article.

    Thread Starter maujor

    (@maujor)

    I did what Ryan’s article states using the pt_BR.mo file that I’m using for the main translation.
    Made a copy of that file hosted at language folder and put the copy on themes folder (and also on mytheme folder) and it didn’t works.
    The authors theme doesn’t provide a file.po for his theme.
    According Moshu I must generate a specific PO file for the theme.
    Can anyone point me a resource or tutorial explaining how to generate it. I’ve poEdit in my machine.

    The .mo file translate only the WP engine.
    Yes, you have to generate a new .po(t) file and then a .mo file. See if this helps:
    http://codex.wordpress.org/User:Skippy/Creating_POT_Files

    Thread Starter maujor

    (@maujor)

    Hi moshu,
    The link you pointed out explain in a clear way what to do.
    But I’m doing something wrong here and can´t figure out how to fix it.
    poEdit returns ‘Cannot find any file in the folder’ and so doesn’t populates the fields with english words to translate.
    The theme I want translate is located at: C:\Inetpub\wwwroot\blog\wp-content\themes\blue-elegance-10
    and this is the path I typed in poEdit Configurations.
    Thanks for your kindness and I suspect that is hard for you to find the solution. I’ll try to fix it for myself in a couple of days.

    Poedit have some problem on windows doing this. It works fine under linux.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘theme translation’ is closed to new replies.