I uploaded and installed a localization package to Spanish for my portal. It installed ok, apparently, and it is now the default language. Still the site shows in English.
If I check the Translate Interface, it shows 0/960 (0%) translated strings. I downloaded a package with the Spanish .po files and all are in their proper /translations folder throughout the system.

Now, is there a way to make Drupal see them? The only option I see in the system is to manually import each .po file - I suspect it's not the most efficient way to do this? There's too many of them system-wide for it to be a manual task.

As far as I can tell I have all I need, I just need to make Drupal see and/or import the translation by itself... any pointers there?

Thank you!

Comments

dddave’s picture

Acoyauh’s picture

I did download and install the full package, but got that 0% translated status for the Spanish language.
So I looked for and installed all the .es.po files in their appropriate directories; now the problem is, from what I can see, I still need to import each individually? It just doesn't sound right... must be missing some step here...
Isn't there a way for Drupal to recognize the .es.po files it already has there? It still shows 0% translated...

Acoyauh’s picture

I still cannot figure this out... anybody, please?

jaypan’s picture

For translation files to be automatically imported, you need a folder called 'translations', and in that folder you need at least two files. You need a blank template file called MODULENAME.pot, and the one language file for each language you want - in your case es.po (I believe).

But, there are only two situations in which these files will be automatically imported. The first is when you install a language, and the other is when you install a module that has the translations in it. It will not happen automatically when enabling/disabling a module, or when enabling/disabling a language. It only happens during the installs.

There is one other way to do this as well - if you download the template translation extractor (www.drupal.org/project/potx) there is an option to re-import translation files, and it will do this as a batch process.

Contact me to contract me for D7 -> D10/11 migrations.

nnn’s picture

This module www.drupal.org/project/l10n_client allows you to re-import the packaged language translation.