Hello,

Could anyone summarize the steps involved in translating a contributed module?

WHat I did so far was:

1) cd to the directory of the module

2) run extractor.php on that dir (this generates the module pot file, e.g. cart-module.pot)

3) move and rename the pot file to po/nl.po

4) edit the po file with a text editor (vi in my case), e.g. for the cart submodule from ecommerce, I change the following

#: cart.module:13
msgid "Shopping Cart"
msgstr ""

into:

#: cart.module:13
msgid "Shopping Cart"
msgstr "Winkelkar"

5) save the file

When I reload the browser, the translated string does not show up in the appropriate place.

What am I doing wrong?

Q.

Comments

trantt’s picture

I'm not sure what a good way to translate a language but i was successfully used the following methods:

1. importing feature from admin/local

or

2. under locale/string/search, I searched for the string and replaced it with a new string

I was looking for vi.po as well but I guess we will have to do it ourself...

sin’s picture

You doing all right, just one more step...
6) Import translated po file using locale module import form (somewhere inside locale settings page search for "import")

drupaceous’s picture

thanks, after importing I can see the changes now. Although it makes sense to import this file, it would not have hurt to see this mentioned in the handbook pages.

Thanks again, I can start with the real work now :-)