Commit 5a4ceb31 authored by Isaac (.ike) Levy's avatar Isaac (.ike) Levy

xgettext(1) generated, closer to Franco's spec

  # for i in `git grep --name-only gettext | grep -v pot$` ; do
  #   xgettext -j -F -L PHP --from-code=UTF-8 \
  #     -o ./src/share/locale/en/LC_MESSAGES/OPNsense.pot "${i}"
  # done

For accuracy and simplicicity, the canonical english .pot file should be tracking source changes in this fashion.

Also, generating the base .pot file in this manner has an advantage for developers- if you make proper gettext calls in the code, you simply re-generate the .pot file, (instead of finding and inserting your changes by hand)...

One problem with the line above: the '-L PHP' flag makes a *ton* of C related warnings go away, but not all files in core are actually PHP...  Once this raises itself as a problem, a script generating this .pot file can get more sophicstocated to accomodate.  For now however, most things look like PHP syntax.
Signed-off-by: 's avatarIsaac (.ike) Levy <ike@blackskyresearch.net>
parent d606c306
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment