Garland-Revisited 1.7 goes I18n!

1.7 sees a few bug fixes and now has a translation file in the lang/ folder.

16 Comments

  1. niska on 11th October 2009 at 7:03 pm

    Thanks!! Where can I download?

  2. pross on 11th October 2009 at 7:07 pm

    It will be available here as soon as the wordpress team moderate the new version, usually takes about 12-24 hours.
    http://wordpress.org/extend/themes/garland-revisited

  3. niska on 12th October 2009 at 6:27 pm

    I haven’t downloaded yet. But you indicated that translations are in the lang/ folder. A question about that: why not use the default texts that are already translated?

    Look in the default themes. They code looks like this:

    _e(‘Mail (will not be published)’);

  4. pross on 12th October 2009 at 8:36 pm

    yes there is a po file in the lang folder, you open that with poedit and translate it to your language…

  5. niska on 13th October 2009 at 10:01 am

    Ok, thanks!

    I’m just wondering why you’re not using the default translations that are distributed with WordPress…

    Look in the classic theme (included with WP). It has code that looks like this:

    _e(‘Enter your password to view comments.’);

    comments_number(__(‘No Comments’), __(‘1 Comment’), __(‘% Comments’));

    If you put the same code inside your theme, there will be no need to translate… (unless you have texts that are not available in the default themes).

    If you want to, I can change all this code and send you the files. Please let me know.

    / Kia

  6. pross on 13th October 2009 at 10:17 am

    If you want to take it on then be my guest!

  7. Sallie Goetsch (rhymes with 'sketch') on 16th October 2009 at 4:21 am

    I installed this theme and like it, but the color customization options don’t work if I publish WordPress to a directory other than the one it’s installed in. I’m guessing that there’s something I need to add to the code, but the question is–where?

    • pross on 20th October 2009 at 6:54 pm

      Sallie,
      I have a test blog setup here at home, with wordpress installed in a dir http://localhost/wordpress/ and the theme colours work with no problems, please tell e more about your problem….

  8. Molokasa on 19th October 2009 at 9:17 am

    Захватывающе. Зачет! и ниипет!

  9. niska on 20th October 2009 at 7:04 am

    I’m not sure which texts that are included in the default WP installation and which that are only used in your theme…

    • pross on 20th October 2009 at 6:55 pm

      The problem isnt the texts, its the linenumbers, they will be different.

      • niska on 21st October 2009 at 1:34 pm

        What linenumbers?

        • pross on 21st October 2009 at 6:21 pm

          in the translation file..for example:
          #: index.php:17 index.php:17
          msgid "No Comments »"
          msgstr ""

          It refers to index.php line 17, these linenumbers will not be the same as a default wordpress theme

  10. pross on 21st October 2009 at 10:05 pm

    The POT file is simply a text file containing all the marked pieces of text, but organized in a special format.

    When you have a POT file a translator can then add translations. This can be done by using a text editor, or by using a specialized localization tool. The role of the translator is to provide a translation for every marked string:
    Thats exactly what i did, the file in the lang folder is ready to be loaded into a text editor then translated, the resulting mo file, garland-ru_RU.mo is then put back in the lang folder, the theme loads the file at runtime and it uses it to translate the texts. Thats how it works. There is no automatic way using wordpress default files, I wont sit down and copy-paste 20 languages that i dont speak either, but by including the pot file anyone can translate it, there is only about 25 phrases anyway!
    If you do translate the file let me know and i will include it in the package of course with credit!
    POedit is a great tool for editing the po file.

  11. niska on 30th October 2009 at 10:39 am

    I’ve tried translating it using POedit. But some texts just wont update. “No comments”, “Comments are closed” , “Submit Comment”, “Name”, “Mail”, “Website”, “Logged in as” etc.

Leave a Comment