Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Edit a Language File Module - Blank Strings
12-04-2017, 06:57 AM, (This post was last modified: 12-04-2017, 06:59 AM by phil.)
RE: Edit a Language File Module - Blank Strings
The .po files are created by a gettext utility - to get all the strings in the code encapsulated in the gettext function _() and then re-merged with the existing translation.
The script to create the merged/updated translation files is under build/

xgettext --no-wrap --from-code=utf-8 --language=PHP -o locale/en_GB.utf8/LC_MESSAGES/messages.pot *php includes/*.php includes/*.inc reportwriter/*.php reportwriter/*.inc reportwriter/forms/*.html reportwriter/admin/*.php reportwriter/admin/*.inc reportwriter/admin/forms/*.html api/*.php install/*.php ../webSHOP/*.php ../webSHOP/includes/*.php
msgmerge -U -N --backup=off locale/en_US.utf8/LC_MESSAGES/messages.po locale/en_GB.utf8/LC_MESSAGES/messages.pot

and this is run before each release so the .po files always have all the latest strings in them.
I guess we need to figure out the correct syntax of the msgmerge utility to avoid the empty msgid lines
Perhaps the no-wrap parameter to msgmerge might do it.
Phil Daintree
webERP Admin
Logic Works Ltd

Messages In This Thread
RE: Edit a Language File Module - Blank Strings - by phil - 12-04-2017, 06:57 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)