WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Manual Translation of a Theme (16 posts)

  1. Salas
    Member
    Posted 6 years ago #

    I want to permanent translate the default theme's language so spanish speaking people can read it in their native language.
    I know I have to translate the themes files, but I don't know where to find them.
    I think I have to edit the default theme's *.mo file but I don't know where fo find it.
    I found this: http://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/
    but I don't understood how it works. :P
    I could translate the front end manually.

    Thanks

  2. moshu
    Member
    Posted 6 years ago #

    Before you start you should take a look at this:
    http://codex.wordpress.org/WordPress_in_Your_Language#Spanish_-_Espa.C3.B1ol

  3. Salas
    Member
    Posted 6 years ago #

    Thanks, I actually downloaded them, but those files are for translating only the Admin Panel, not the front end.
    I need my readers can read the blog in spanish
    So I need translate words like:
    Pages
    Archives
    Categories
    Uncategorized
    The Search Button
    and that stuff, all my readers will be spanish speakers, so they will write in spanish.

    Thanks!

  4. moshu
    Member
    Posted 6 years ago #

    Go back and read it again. I see 5-6 links to translated themes, among them a few for the default.

  5. Salas
    Member
    Posted 6 years ago #

    Thanks moshu You were right!
    I downloaded a theme they say it was in spanish, actually it is in english but comes with a couple of files named: es_ES.po and es_ES.mo. I think I should do something with them, I opened es_ES.po, it has several terms in english and their translations, but I don't know what to do next.
    What should I do with es_ES.po and es_ES.mo?
    Thanks

  6. moshu
    Member
    Posted 6 years ago #

    You only need es_ES.mo
    That's the file that can be read by the machines. It should be in the theme folder. However, I think it will work only if the whole WP is switched to Spanish.

  7. Salas
    Member
    Posted 6 years ago #

    Thanks again
    I did what you say but still doesn't work
    Now I'm working with the template Drunkey Love: http://www.el73.be/drunkey-love/downloads/
    They say this:
    "Localization files
    Thanks to Ralph Inselsbacher the Drunkey Love theme now supports easy localization. Download the right file and place it in the themes/drunkey-love/ folder"
    I downloaded the file: es_ES.mo and did as they say but doesn't work.
    In the drunkey-love folder I found a template page named: header.php with this code in the first line:

    <?php load_theme_textdomain('drunkey-love'); ?>

    According to this page http://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/
    I think I have to modify something, but honestly I didn't understand the whole thing.

    This is the address in the server:
    wp-content/templates/drunkey-love

    Should I modify load_theme_textdomain('drunkey-love');?
    Is ('drunkey-love') correct?

    Thanks in advance.

  8. moshu
    Member
    Posted 6 years ago #

    This is the address in the server:
    wp-content/templates/drunkey-love

    I hpe this is not correct. It should be:
    wp-content/themes/drunkey-love

    And I have to repeat my question: is your WP installation set to Spanish?

  9. Salas
    Member
    Posted 6 years ago #

    Thanks
    You're right, It was a misspelling from me
    is:
    wp-content/themes/drunkey-love

    And yes, my WP installation is set to spanish and is working well, but my frontend is not in spanish yet. :(
    Wait a second! I just notice there are a couple of words in spanish, there are under Meta: Administración (Administrarion) and Salir (Exit), I don't know if that is because the WP installatino is set to spanish or something working with the theme.
    This is the blog I'm working in

    http://www.republicatiquicia.com

    Thanks again!!!

  10. Salas
    Member
    Posted 6 years ago #

    Weird!
    I just realized if I enter my blog typing:
    http://republicatiquicia.com
    Under Meta
    there are two links:
    Administación and
    Salir (Log Out)

    If I enter the blog typing:
    http://www.republicatiquicia.com
    under Meta
    there is just one link that says:
    Identificarse (Login)

    :S

  11. moshu
    Member
    Posted 6 years ago #

    Well,
    example.com
    and
    www. example.com are NOT the same!

    What is in your admin > Options > General for the two URI values?

  12. Salas
    Member
    Posted 6 years ago #

    WordPress (URL)http://republicatiquicia.com
    Blog (URL) http://republicatiquicia.com

    Is that wrong? I didn't change them

    Thanks moshu, you're a very kind person

  13. moshu
    Member
    Posted 6 years ago #

    (No, I am the meanest mod, so they say :)

    That's correct what you have - and then you should use ONLY that version (without www). You can read about that if you search. There are even solution to force the site to always go the the version without www - many times it's done via htaccess. But that's another issue, so do NOT mix it in this topic!

    Is your Spanish theme working finally?
    Yes? - then set this topic to resolved.
    No? - then post about that!

  14. Salas
    Member
    Posted 6 years ago #

    No, it isn't.
    I'm driving crazy!

  15. Salas
    Member
    Posted 6 years ago #

    I just tried another theme (giraffe theme) and it did work.
    It did show up in spanish.
    I used the .mo-file that came with it

    But I want using the other theme (drunkey-love)
    Could it be that its .mo-file is damage?

    I have both .po-files. I opened them in poEdit and I saw that the drunkey-love po-file has the translations, but the other (giraffe theme)doesn't have any.

  16. Salas
    Member
    Posted 6 years ago #

    I think it is something wrong with that first theme I downloaded, I've downloaded 3 more and they all have worked.
    I really appreciate your help
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic