Community

How do i import language into Drupal 6?

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)!

Comments

I need some help with this to

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"

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

locale and i18n modules

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

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.

—————————

Christopher Pelham
Director
CRS (Center for Remembering & Sharing)
123 4th Ave, 2nd FL
New York, NY 10003
212-677-8621
www.crsny.org

I would also like to know

I would also like to know

Import .po manually

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)

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

You need to upload the

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

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

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

One po file at a time?

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

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

this did the trick, thanks a lot!

Simply remove the language

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

Not with translated content

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 :)

Remove & repeat

That's what I did, and it worked well.

Per André Rønsen | Front | Twitter: @perandre

how can you find out..

..what po files are missing? Is there anyway to find out?

French 3269/3272 (99.91%) is this right? I manually installed each single po file. I might have missed 1 or 2. I am not sure

Little problem

I've imported a language, and than I used the translate link to custom translate some missing strings.
Now I have a script pointing to a .js file created in my file system.
The problem is that in source code of my page it's shown the full path to the file "/var/root/mysite/myprivatefolder/language.js": isn't it a security bug?

Another screencast

Hya
I just put together a screencast showing how to install a new language on Drupal 6: http://www.youtube.com/watch?v=adCVYNvFy0k
The speech is in Swedish, but it is easy to follow what is happening on the screen. (And you can still listen to the music!)

I hope it may be of some help!
//Johan Falk, Sweden

Check out Skill Compass – an experiment for Drupal learning.

Thank you!

I was very helpful.

Thank you again.

Juan

It is helpful to understand that your language po information is stored in the database after you add a language. That is for speed when translating 1000s of strings. I thought the only way to load this into the database was to delete the language, then re-add it. However this sets all your content for that language to neutral and there is no easy way to change it back unless you edit one at a time or hack the database. So I was about to request a feature so that I don't have to delete the language file, when...

Eureka I found it!
1. Go to /admin/build/translate
2. Just under the Import tab there is now a link called "Reimport packages"
I must have looked at this 20 times, but didn't see it. Maybe it is new.

By the way, it seems that you could also extract your language package under /sites/all/ which I did by accident. But then it makes it hard to identify your custom modules. You could also try extracting into /sites/yourdomain.com/ I never got around to trying that.

http://2tell.org

@dps: "reimport packages" is

@dps: "reimport packages" is only an option when Localization client is installed (http://drupal.org/project/l10n_client).
Very useful, though.

Per André Rønsen | Front | Twitter: @perandre

Very useful

This should be in core. I had a hell of a time getting to do this after 5.x to 6.x upgrade.

tag

just wanted to tag this post

Does you mean to translate interface?

If so, just enable Locale module and go to admin/build/translate

Blessings!

--
Dear friend, I pray that you may enjoy good health and that all may go well with you, even as your soul is getting along well (3 John 1:2)

Can't add English US as Language

I am using Internationalization module for multilingual support. The English available language is English UK language and has England flag in drop down language (as i have also installed Language icons module). I have the requirement such that we will be able to add English US as language and show USA flag in the drop down language selector and i will be able to add relevant content for English US. The problem is that English US language is not available when i add language from admin/settings/language/add in Languages.

Can someone help me and tell me how can i add English US language?

Thanks in advance

Asad

nobody click here