nls: Use xgettext and msgmerge with --no-wrap.

Suggested by Benno Schulenberg <coordinator@translationproject.org>.

* po/guix/Makevars (XGETTEXT_OPTIONS): Add --no-wrap.
  (MSGMERGE_OPTIONS): New variable.
* po/packages/Makevars (XGETTEXT_OPTIONS): Add --no-wrap.
  (MSGMERGE_OPTIONS): New variable.
This commit is contained in:
Ludovic Courtès 2014-06-17 00:26:32 +02:00
parent 7f52946adf
commit 648453e8d6
2 changed files with 6 additions and 0 deletions

View File

@ -8,10 +8,13 @@ top_builddir = ../..
# These options get passed to xgettext. We want to catch standard # These options get passed to xgettext. We want to catch standard
# gettext uses, and SRFI-35 error condition messages. # gettext uses, and SRFI-35 error condition messages.
XGETTEXT_OPTIONS = \ XGETTEXT_OPTIONS = \
--no-wrap \
--language=Scheme --from-code=UTF-8 \ --language=Scheme --from-code=UTF-8 \
--keyword=_ --keyword=N_ \ --keyword=_ --keyword=N_ \
--keyword=message --keyword=message
MSGMERGE_OPTIONS = --no-wrap
COPYRIGHT_HOLDER = Ludovic Courtès COPYRIGHT_HOLDER = Ludovic Courtès
MSGID_BUGS_ADDRESS = ludo@gnu.org MSGID_BUGS_ADDRESS = ludo@gnu.org

View File

@ -9,9 +9,12 @@ top_builddir = ../..
# These options get passed to xgettext. We want to catch exclusively package # These options get passed to xgettext. We want to catch exclusively package
# synopses and descriptions. # synopses and descriptions.
XGETTEXT_OPTIONS = \ XGETTEXT_OPTIONS = \
--no-wrap \
--language=Scheme --from-code=UTF-8 \ --language=Scheme --from-code=UTF-8 \
--keyword=synopsis --keyword=description --keyword=synopsis --keyword=description
MSGMERGE_OPTIONS = --no-wrap
COPYRIGHT_HOLDER = Ludovic Courtès COPYRIGHT_HOLDER = Ludovic Courtès
MSGID_BUGS_ADDRESS = ludo@gnu.org MSGID_BUGS_ADDRESS = ludo@gnu.org