How to translate a Drupal site using .po (Portable Object) files

By Benjamin Melançon
on 21 Dec
0 comments

Description

[By Thiago Bennicchio]

Hi friends,
please read the whole email before starting the work.

Now we have offline text files to translate the interface. I'm sending Judith the Portuguese file. Mathias, Leo, please tell me in which languages are you going to translate so I can send you the proper files (please reply to all so we know who's doing what).

As we talked before, we need to be very careful when dealing with this files (not to erase commas, quotes and #).

The basic structure of the files is the following:

#: modules/nonon nonno ononon
msgid "nonon nonon nonon onono"
msgstr "non nono nonononon onono"

where "msgid" is the orginial expression in english and "msgstr" is the translated version.

So you'll only change the msgstr expression (be carefull not to erase the quotes).

Hints:

1) I suggest you do this work in a plain text like Notepad ++ (http://notepad-plus.sourceforge.net/uk/site.htm). Using this software, if you select any language in "Languages" menu, you can view the lines in different coloros. "Languages" menu are for software programming, but it also makes it easy to view the .po files.

2) Don't mind translating the whole content, focus on the main expressions and menus (the ones you already saw present on the website or the ones you think is related to user interface). We've tried to clean at maximum this files, leaving only the strings that're being used on the interface, but some trash

3) some text strings brings symbols like % or ! followed by words like "name" (as !name). There's also HTML tags (like "locale_subset]

 

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.