site  contact  subhomenews

MoManager: multiple scripts one TEXTDOMAIN

July 31, 2012 — BarryK
This is great news, I have unleashed MoManager. Now, you can have one TEXTDOMAIN for multiple script. Also, a pre-existing .pot file will be automatically used.

If multiple scripts have the same TEXTDOMAIN, for example:
export TEXTDOMAIN=myapp
then just one myapp.pot file and hence file will be created for all of those scripts.
Some people prefer this, as it is more efficient than having one .pot file for each script.

Note that these multiple scripts with same TEXTDOMAIN can be located anywhere. They do not have to be in the same directory.

Pre-existing .pot
A pre-existing .pot, for example /usr/share/doc/nls/myapp/myapp.pot, will automatically be used, instead of generating it from the script(s).
I could not see any reason why this should not be automatic.

Check out the changes in /usr/sbin/momanager, Woof commit:

A note about entering the TEXTDOMAIN into scripts:
export TEXTDOMAIN=myapp not put quotes, do not append any comment, do not indent! Any of those might break MoManager.


Username: BarryK, no, appending comments should be ok.

MoManager enhanced is great
Username: L18L
"Thank you Barry My 1st working example, pfilesearch-1.31:

Tags: woof