[i18n] Changing en phrases

Aaron Paetznick aaronp at critd.com
Thu Feb 11 19:08:36 UTC 2016


Thanks for this, and also thanks to Jens and Jan. I decided that even 
though it could get overwritten with a future update, that I will 
continue to work with the *.po locale files and just create a procedure 
for re-changing the phrases if they get overwritten in the future. I 
feel like I'm getting closer, but it's still not working yet. Here's 
what I've done so far:

php --no-php-ini /usr/local/bin/horde-translation init --module="imp" 
--locale="en_US"
vi imp/en_US/LC_MESSAGES/imp.po
php --no-php-ini /usr/local/bin/horde-translation update --module="imp" 
--locale="en_US"


The new phrase is still not showing. Everything seems to run fine, 
except I get this error with both the init and update:

/usr/bin/msgmerge: error while opening 
"/pathname/lib/../locale/compendium.po" for reading: No such file or 
directory


Am I still missing a step? FYI I just confirmed that en_US is my default 
language in my config/nls.local.php file, and the user I'm testing with 
is set to use en_US.


--Aaron


On 2/10/2016 3:03 AM, Vilius Sumskas/LNK wrote:
>> I'm new to gettext and working with the Horde locale files, and I want
>> to change a couple of the English phrases in Horde. I want to work
>> within the system to do it, and I want to make sure that the custom
>> phrases won't be overwritten by a future Horde update. I've read the
>> online translations documentation
>> <http://www.horde.org/apps/horde/docs/TRANSLATIONS#extending-
>> existent-translations>,
>> but I haven't had much luck yet. I had originally submitted an
>> enhancement ticket <https://bugs.horde.org/ticket/14230> for this, but
>> was referred to this mailing list. Please let me know if this isn't the
>> proper forum to discuss this sort of request.
>>
>> So far I've tried running "horde-translation update -m horde -l en", and
>> it reported:
>>
>> ---------------------------
>> Horde translation generator
>> ---------------------------
>> Loading libraries...
>> [   OK   ] Console_Getopt found.
>> [   OK   ] Console_Table found.
>> [   OK   ] File_Find found.
>>
>> Searching gettext binaries...
>> [   OK   ] gettext found: /usr/bin/gettext
>> [   OK   ] msgattrib found: /usr/bin/msgattrib
>> [   OK   ] msgcat found: /usr/bin/msgcat
>> [   OK   ] msgcomm found: /usr/bin/msgcomm
>> [   OK   ] msgfmt found: /usr/bin/msgfmt
>> [   OK   ] msginit found: /usr/bin/msginit
>> [   OK   ] msgmerge found: /usr/bin/msgmerge
>> [   OK   ] xgettext found: /usr/bin/xgettext
>>
>> [   OK   ] gettext version: 0.17
>>
>> Searching Horde modules in /pathname/lib/..
>> Found modules: horde, nag, admin, timeobjects, kronolith, mnemo, imp,
>> turba, ingo
>>
>> Extracting from horde... not changed
>>
>> Cleaning up PO files for module horde...
>> /pathname/lib/../locale/en/LC_MESSAGES/horde.po
>> Skipped...
>>
>> Merging translation for module horde...
>> Skipped...
>>
>>
>> I would have expected this to create files for me to edit, but the
>> horde/locale/en directory is still empty (other than the help.xml file).
>> I've also tried a similar command for imp, with similar results.
>>
>> For the record, I've installed my horde and apps individually, i.e. I
>> did not install the groupware or groupware webmail editions. My
>> Horde/IMP is working just fine in every other way. Am I missing some of
>> the source translation files, or maybe they also need to be manually
>> pear-installed? Can anybody provide any pointers that might help me get
>> started?
> One more note to everything all others said, if you modify current
> translation files they would still be overwritten when updating Horde.
>
> This thread should help you with that
> http://lists.horde.org/archives/horde/Week-of-Mon-20150518/054229.html
>



More information about the i18n mailing list