Hello Translators!
Eduin Yezid Carrillo Vega has added a .pot file for my contrib module called "onlinestatus". Thank You very much! (mucho Gracias). Now i had to fix some typos in my module, some t() strings have changed and i need to generate a new .pot file. I tried the extract.php file, but that gave me 3 .pot files general.pot, onlinestatus-module.pot and messengers-inc-php.pot. The Translator's guide suggest to have one modulename.pot file in the module/po folder.
I there a method to merge this 3 files to one .pot file? Can i do a simple "cat onlinestatus-module.pot global.pot messngers-inc-php.pot > po/onlinestatus.pot", or will this result in strange behaviour? Any suggestions?
Greetings
Christian Edelmann.
Hi Christian,
I suppose you can use msgcat (GNU gettext) : msgcat onlinestatus-module.pot global.pot messngers-inc-php.pot -o po/onlinestatus.pot
Kind regards, Hendrik.
Christian Edelmann wrote:
Hello Translators!
Eduin Yezid Carrillo Vega has added a .pot file for my contrib module called "onlinestatus". Thank You very much! (mucho Gracias). Now i had to fix some typos in my module, some t() strings have changed and i need to generate a new .pot file. I tried the extract.php file, but that gave me 3 .pot files general.pot, onlinestatus-module.pot and messengers-inc-php.pot. The Translator's guide suggest to have one modulename.pot file in the module/po folder.
I there a method to merge this 3 files to one .pot file? Can i do a simple "cat onlinestatus-module.pot global.pot messngers-inc-php.pot > po/onlinestatus.pot", or will this result in strange behaviour? Any suggestions?
Greetings
Christian Edelmann.
translations mailing list translations@drupal.org http://lists.drupal.org/mailman/listinfo/translations
I tried the extract.php file, but that gave me 3 .pot files general.pot, onlinestatus-module.pot and messengers-inc-php.pot. The Translator's guide suggest to have one modulename.pot file in the module/po folder.
AFAIK the strings in general.pot should not be included in your pot file as they are also in Drupal core. It's to avoid different translations of the same strings.
/Hannes (zoo33)
Hannes Lilljequist wrote:
I tried the extract.php file, but that gave me 3 .pot files general.pot, onlinestatus-module.pot and messengers-inc-php.pot. The Translator's guide suggest to have one modulename.pot file in the module/po folder.
AFAIK the strings in general.pot should not be included in your pot file as they are also in Drupal core. It's to avoid different translations of the same strings.
General.pot can be a general.pot of a contrib module. This file is generated anywhere, if strings are present in more then one file.
Gabor
Hello!
I merged the .pot files with msgcat *.pot > po/onlinestatus.pot and it worked great. Thank you!
The extract.php file is a little confusing. When i start it in the Drupal main tree, it dumps everything in the main folder, and ends with an big general.pot
When i start it in the contrib/module tree extract.php creats the .pot files for each module in the molules directory. I meant the general.pot im my module directory. By the Way: The general.pot included the 'Module Onlinestatus has installed sucesessful' Messages from onlinestatus.install not the "common shared messages".
Last but not least: When i start the extract.php in my module directory (contrib/module/onlinestatus), everything i got was an array_merge error.
with best regards
Christian
Am Montag, den 06.11.2006, 23:33 +0100 schrieb Hannes Lilljequist:
General.pot can be a general.pot of a contrib module. This file is generated anywhere, if strings are present in more then one file.
Right, thanks for clearing that out.
/Hannes
translations mailing list translations@drupal.org http://lists.drupal.org/mailman/listinfo/translations