Community

Please clarify: Manual import of module po files needed?

I have seen various places where people have asked this:

The tip - which obviously works - is that the po files which contributed modules carry in their po/ subdirectories need to be manually imported.

What I am unsure of is whether the po file import is/should be automatic on module activation. Or is there some hidden way that I can point the locale module to the (server side) location of my contrib module's po/ subdirectory.

I have looked in includes/module.inc because I suspected the import of existing po files might be implemented alongsite the handling of the module install file during module activation but po files are not mentioned.

Can somebody please shed some light on the supposed way to import po files for contributed modules.
Is someone working to automate this?

--
Olav

Comments

importing po

you can import po in the localization ,yoou select the tab : manage language ->import and then you import the po file .
don't forget to activate the language you want to be your default language . He gives you the percentage of stuff that has been translate . Some modules don't have your language in po , than you'll have to translate mannualy each header,word you want to change .

good luck
o.

Importing automatically?

Olivier,

thank you for the reply. I am aware of the ways to manually import .po files but see, when you install a contributed module, the po files are located server side in a subdirectory po/ in the module directory alongsite the .install and .module files.

It seems plainly unatural that I am supposed to download the required .po files from there to my workstation just to feed them to localize.

I was wondering if there is a mechanism that imports the .po files for all my installed languages _automatically_ when the .install file is executed on module activation.

Cheers,
--
Dr. Olav Schettler
(Geschäftsführer)
contAire GmbH
___________________________________________
Arndtstr. 12 | D-50676 Köln | Germany
Office: +49 221 4204757
olav.schettler at - NO SPAM, please - contaire.de
_________________________________

--
Olav Schettler

Solution: autolocale module

Jakub Suchy pointed me to the autolocale module and install profile as an existing solution to this problem. There is a general issue with long lasting processes which is addressed in a separate thread.
--
Olav

--
Olav Schettler

supposed to be in Drupal 6

The autolocale functionality is supposed to get into Drupal 6. Indeed it is not logical that you now need to import those translations by hand, but noone stood up to solve the problem before. We are working on a solution.