I'm very sorry to post this in the wrong forum, but I think translation is a complicate subject that needs a specialized type of answer. I posted this in the "How do I" forum for a couple of days with no response.

I've searched for a while but everyone seems to have different problems than I. I have used the localization module of drupal 4.6 to import the 100% completed spanish es.po file into the spanish language. However it shows 0/590 translated 0%. To confirm this, I search the strings of those translated and not translated and get the same results.

I did confirm that gettext was enabled on the server. So is there some setting that needs to be made to my server? or do I need additional software or patches?

Thank you for your help.

Comments

killes@www.drop.org’s picture

Hmm, that's strange. can you have a look at the contents of your locale related tables? Are there any strings in there? Which database backend do you use? Which php version?
--
Drupal services
My Drupal services

zeedaam’s picture

Using php 4.3.10 and phpmyadmin 2.6.0 my locales_source table looks to be correct but my locales_target has all of the translation fields blank.

have erased the entire site and tried over a couple of times too, same result.

zeedaam’s picture

just an fyi,

I was never able to get it to work. however, I did manage to get it to work on another hosted site. so appearantly there are some settings that are different on the servers. I just wish I knew what that was.

SimonVlc’s picture

I had the same problem, and I solved it importing the po file at one test site, on my local pc, and then exporting the 3 locales table to the live site.

Hope that helps. Bye!

zeedaam’s picture

I didn't think about that, cool thanks.

ofan’s picture

I downloaded a po file,but it's 'too big',I don't know what about the others,but drupal can't import a file of 385K!
I upload the po file to my site by FTP,drupal can't import it either~~
It's NOT only strange~

Uwe Hermann’s picture

That's probably a limitation of your PHP install, i.e. a limitation set up by your hoster. You can split the file into multiple smaller files and upload them one after another. Or simply get the (correct) smaller files from CVS and import those.

HTH, Uwe.
--
hermann-uwe.de | crazy-hacks.org | unmaintained-free-software.org

goncalo.dumas’s picture

The same happened to me.

I was unable to import a *.po file using the ‘manage languages’ on the ‘localization’ module.

At first I thought it was the file’s size or some limitation of the host.

But in the end all I had to do was to empty the ‘locales_source’ table in the mysql database using phpMyAdmin.

I hope this helps.

rainhead@redlibre.ometepe.net’s picture

I had thie problem too, and noticed the out of memory error in the logs. Increasing the memory cap in php.ini solved the problem.

goncalo.dumas’s picture

it makes sense ;o)

vthirteen’s picture

thank you Uwe

if i split the files, i guess i'm supposed to import the new files checking "Existing strings are kept, only new strings are added" inthe locale import page, right?

the same with the CVS files, i guess...

CBScoop’s picture

I'm just now starting to look into adding translations to my site. First, I'm a novice to drupal generally, so please forgive me for any "stupid questions".

I tried to download translations but am getting an error message when I click on the link. One thing I've noticed is that the file say tar.gz (or something like that). That is an extension I am not familiar with. Is there a special program I need to dowload files with that extenstion? I've read that the translation files themselves have a .po extension. Is there anywhere I can go to download .po files directly?

If it matters, I'm running drupal on a hosted server and am using Windows ME (I know...).

Peace, respect and thanks...
Chad

Uwe Hermann’s picture

Winzip can extract tar.gz just fine.

Uwe.
--
hermann-uwe.de | crazy-hacks.org | unmaintained-free-software.org

CBScoop’s picture

That was simple after I knew what program I needed. Thanks, again, for the help.

Peace and respect...