Could not create locale directory for

alexisb
alexisb's picture

Joined: 2005-11-24
Posts: 56
Posted: Sat, 2005-12-31 16:56

Hi, I'm following the instructions from:

http://codex.gallery2.org/index.php/Gallery2:Localization

to create translations for my modules, however I'm getting the error "Could not create locale directory for xx_XX", where xx_XX is the language and country code (de_DE, es_MX, etc)

I am running Fedora Core 3 and doing this:

1. cd to po directory for the module I want to create translations.
2. copy and rename a .po file from other module, for example de_DE.po from comment module to my module po directory, for example as es_MX.po.
3. edit the the .po file, I'm using vim as editor.
4. run make (I've also tried with make install=es_MX.po)

At this point I get the error. I have tried modifying .po files in any of the standard modules and make runs with no problem.

Any ideas what I'm missing, maybe some permission?, should I manually create some file or directory? I tried creating locale but kept ketting the error.

Your help will be much appreciated.

Regards!

Alexis Bellido - Ventanazul web solutions

 
alexisb
alexisb's picture

Joined: 2005-11-24
Posts: 56
Posted: Sun, 2006-01-01 02:09

Solved. I had to create the directory structure before running make, for example:

modules/mymodule/locale/es_MX/LC_MESSAGES

if I want to add es_MX to mymodule module.

I've included this detail in the Wiki, I hope it helps.

Alexis Bellido - Ventanazul web solutions