I translated checkout module in italian, how to compile it?
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
I translated the .po file but, if I well understand, for compile it I need additional files not present on normal checkuot distribution; maybe only developers of checkout module have it. Someone help me please? Silvio. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
http://codex.gallery2.org/index.php/Gallery2:Localization If there is no "po" directory in checkout module simply make the directory and copy GNUmakefile from any other modules/*/po dir. |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
In the checkout po directory I found these files: $ make it.po I suppose that I must install a package, wich? |
|
Tim_j
![]()
Joined: 2002-08-15
Posts: 6818 |
![]() |
You can also use e.g. the tool poEdit from Sourceforge to complie .po into .mo. Jens |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
From the "Requirements" section in the docs I directed you to above: Quote:
You also need the current G2 files to create up-to-date translations. It is best to work from current SVN or a nightly snapshot. The developer version of the latest G2 release will also work, but some of the strings for translation may be out of date. |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
the checkout module I need to translate (http://codex.gallery2.org/index.php/Gallery2:Modules:checkout) is not included in the gallery2 package, why I download the nightly snapshot of g2? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
Quote:
GNUmakefile:4: ../../../lib/tools/po/GNUmakefile.inc: No such file or directory that is why^ |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
Ok, now I have te italian.po and italian.mo file of checkout module translated with poeditor, and the nightly snapshot of gallery... what's the next steps? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
assuming you have tested it out in G2 and it works, I guess send the po file to the maintainers of the checkout module. |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
Translation don't work; messages on my gallery site are only in english. After translated the message.po file with poeditor, and obtained the it.po and it.mo files, I created some folders under checkout module directory called "locale" -> "it" -> "LC_MESSAGES" and copied in the it.mo file (I copied the structure from other modules, cart, for example); then I reloaded my gallery2 site. I tried to reinstall entire checkout module and reconfigure, but italian language don't work. I'm stuck, help me please. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
it's really better to use the makefile as describe in the instructions, then everything goes in the right place. if you made your own it.mo then you need to name in modules_checkout.mo in the LC_MESSAGES dir. |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
The problem was the name of the .mo file; I rename how you suggest and now work; how do you know correct name for the .mo files? the make command name it in _.mo. Translation work, but not completely; some messages, although have a translation in po file, is displayed only in english, for example "add %s to cart"; how to resolve this issue? Besides some message don't present in the original po file, for example "Empty cart" button, how to translate this? I need to add to the original po files and translate in it.po file? I need to translate the module checkout by email too, but don't exist a source .po file... how to do this? create a new po file? Thanks for your great help! Silvio. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
for modules/modname the mo files is modules_modname.mo |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
I translate 100% of module adding, in the po file, omitted phrase. Now only "add album/photo to cart" show only in english. I'm contact developer, thanks for suggestion. |
|
SilvioTO
![]()
Joined: 2006-06-16
Posts: 16 |
![]() |
Small news: I'm discovered that the translation of phrase "add %s to cart" of checkout module is a bug, I see it on sourceforge, and I hope the developer fix it quickly. Another question: I tryed to translate module checkoutemail, that don't have original po file (messages.po). I created two .po files; one called messages.po (I copied it from checkout module and modified with words contained in string.raw file of the checkoutemail module); another file called it.po file with translation. The make command worked, and make install commant too, but in gallery translation don't work. I rename the _.mo file created by make command in modules_checkoutemail.mo. Do you have idea where I'm wrong? Thanks. |
|