Hi everyone!

I have installed drupal 6.8, wich is working fine.
Using cpanel I have uploaded two different translations paskages.
I have then added both languages using the administration interface.

I get this error on both: "An error ocurred: /lisboa/?id=&op=do" followed by what seems to be the html code of the home page.

I tried many times and the error persists.

Hints anyone?
Thanks!

Comments

mgifford’s picture

I don't use cpanel if I can avoid it. Not sure how you installed the language files using cpanel or what administration interface you're talking about.

However, it's useful to see the error message in full. The first bit isn't really much to go on.

Can you install it in English? Would be good to isolate the problem and ensure that it works in at least one language.

Mike
--
OpenConcept | CLF | Podcast

MashsaM’s picture

Cpanel seems fine to a newbie like me. I just used it to correctly extract the translation in the right directories.

The full message is just a long blurb wich is the html code of the homepage. Not very useful.

It does work in english beautifully...

rusoleal’s picture

Hi,

I have a similar error trying to add spanish and french languages to my drupal installation.

I Upload all translation files in the correct folders using filezilla and after add the language from Add Language feature, I get this error:

Importing interface translations

Error importing interface translations
Please continue to the error page
An HTTP error 500 occurred. /batch?id=7&op=do

Any idea??

Thanks for all...

Ruben

Aleksic’s picture

In your po file try to change code form this: "Plural-Forms: nplurals=2; plural=(n > 1);\n"
to this:
"Plural-Forms: nplurals=3; plural=((((n%10)==1)&&((n%100)!=11))?(0):(((((n%10)>=2)&&((n%10)<=4))&&(((n%100)<10)||((n%100)>=20)))?(1):2));\n"

I hope it will work:)

rusoleal’s picture

Sorry but I dont understand.

I uploaded a lot of po files, all from the spanish package. Do you mean that I must to modify all po files I uploaded?????

Regards,

Ruben

Aleksic’s picture

NO if you upload, but if you can not upload files then: Yes, if this PO file have old code. This is new Drupal code.

MashsaM’s picture

I contacted the portuguese translation team and they adviced me to do either one of the following:

- Re-install drupal with the portuguese version. (I had installed ebglish version originally).
- Check PHP memory configuration (http://drupal.org/node/40965).
- Generate a single .po file with the following command and then import this file (note this is for pt version):

curl -s http://ftp.drupal.org/files/projects/pt-pt-6.x-1.x-dev.tar.gz
| tar xzOf - --wildcards modules/* profiles/* themes/* > pt.po

Re-installing drupal was out of question for me, PHP configuration was fine, so the last was my choice and it worked.

Thanks for your reply Mike!