How do i import language into Drupal 6?

cpelham - March 27, 2008 - 18:50

I am trying to add additional languages to a basic Drupal 6 install.
When I download a language and unzip the package I get a folder with a name like "fr-6.x-1.x-dev" which is the French translation. From what I can tell, I am supposed to upload that folder into my Drupal folder, which I did. Then I went to Site Configuration/Languages/Add language and I added French. However, after that when I go to Site Building/Translate interface it shows French as having 0/276 (0%) strings translated and when I switch to French interface, everything is still in English. So, I think the Add language command is not finding the folder and importing all the .po files.

So, how exactly do I accomplish the import/install without having to install each .po file individually?

This was as I recall routine in Drupal 5 so I don't know what I am missing in Drupal 6 (which for the most part makes everything easier)!

I need some help with this to

river1 - March 31, 2008 - 09:00

I just installed Drupal 6 default installation and would like you add Hebrew language. But, I don't see Site Configuration/Languages/Add language

What am I missing?

Thanks,

"I get by with a little help from my friends"

locale and i18n modules

lisa - March 31, 2008 - 23:40

Under admin->site building->modules did you enable the optional core module called Locale? If so, then go to admin->Site Configuration->Localization NOT Site Configuration/Languages/Add language. Localization is where you can add a language, import po files, etc. (At least that's the path in 5.7.)

Also, not sure how Drupal 6 works, but in Drupal 5.7 I downloaded the contributed module called Internationalization - also referred to as i18n - http://drupal.org/project/i18n - and enabled the following: i18n-blocks, i18n-menu, i18n-taxonomy, Internationalization, and Translation.

Important Notes (These were true for Drupal 4.x and 5.x and I imagine the same bugs may still be present when working with Drupal 6):

1. You must disable the core module called Menu BEFORE you enable the i18n modules. After you enable i18n, then you can go and re-enable the Menu module.

2. If you are using Tiny MCE, you must install it BEFORE you install i18n.

Trust me, do this and you'll save yourself a headache.

Hope this helps.

Things have changed

cpelham - April 2, 2008 - 01:55

Things have changed quite a bit from 5.7 to Drupal 6.x so if you are working in 6, you can disregard most of Lisa's well-intentioned advice, I believe.

Import .po manually

molino - April 4, 2008 - 00:47

I tried this in test website and I had to import every .po file for the french language manually and I got 99.98% of the strings tranlated. Enabled the Local module, enabled the user to select default language and created test user account with french as default and it did work the interface and menues are in french and now I need to work on a way to translate the content.

One more thing, some how after importing the french .po files I've lost the admin account, I am trying to figure this one out...

Installing Drupal with a translation (Lullabot video)

prunelle - April 16, 2008 - 10:35

This video : http://www.lullabot.com/videocast/installing-drupal-translation, of the great Lullabot team, should help!

You need to upload the

jiakomo - May 2, 2008 - 10:34

You need to upload the compressed file to your root drupal folder and then uncompress from there. This will NOT create a new folder, instead it will uncompress translation files to modules/profiles/themes folders.

AFTER that you go to admin/settings/language and add your language from there.

What happens if I added a

joseppc - May 4, 2008 - 16:31

What happens if I added a language before unpacking the translation? Is there no way to get the strings translated then?

it should not be a problem anytime

GN - May 4, 2008 - 16:38

Site building -> Translate interface -> Import
/admin/build/translate/import

One po file at a time?

joseppc - May 4, 2008 - 17:01

But is there a way to import a bunch of files, or a whole tar file in one go? Or will I have to imort one po file at a time?

Sorry, I didn't realize

GN - May 4, 2008 - 22:09

Sorry, I didn't realize there were so many separate .po files for this language.
Maybe this can be helpful:
http://drupal.org/node/12890

Worked

joseppc - May 5, 2008 - 06:39

this did the trick, thanks a lot!

Simply remove the language

jiakomo - May 4, 2008 - 21:07

Simply remove the language and add it again. I believe it will work.

Not with translated content

joseppc - May 5, 2008 - 06:46

I read in http://drupal.org/node/253709 that if you do that, then

unfortunately (and not at all surprisingly), all of the translated content, while still available, has lost its links to the original English pages. I think I'll need to delete it all and recreate it.

In my case I already have content translated that I don't want to lose, so the only solution seems to be to add all po files, if not one at a time, then with the commands explained in the link above, which makes it less tiresome :)

 
 

Drupal is a registered trademark of Dries Buytaert.