From 73fa1967b241a0306b744026ea9223e1638b42d3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 9 Feb 2016 10:04:14 -0500 Subject: The libremessages man page still listed not having librexgettext as a bug. librexgettext exists now, so mention it. --- src/lib/libremessages.1.ronn | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/lib/libremessages.1.ronn b/src/lib/libremessages.1.ronn index a8a6d21..9a976a8 100644 --- a/src/lib/libremessages.1.ronn +++ b/src/lib/libremessages.1.ronn @@ -87,6 +87,12 @@ word-wrapped prose. For each of these, is fed through `gettext` automatically. +To generate gettext `.pot` files for programs using these routines, +plain `xgettext`(1) won't work because it doesn't know about +word-wrapping. Instead, you should use the `librexgettext`(1) program +which knows how do handle word-wrapping, and knows about each of these +routines by default. + * `prose` [...]: Takes a `printf`(1)-formatted string, collapses whitespace (HTML-style), and then word-wraps it. @@ -117,6 +123,11 @@ any arguments. Each of these print to stderr, not stdout. For each of these, is fed through `gettext` automatically. +To generate gettext `.pot` files for programs using these routines, +plain `xgettext`(1) will work if given correct flags, but you'll find +it easier to use `librexgettext`(1), which will handle each of these +without any extra flags. + * `plain` [...]: Prints a "plain" message in bold, indented with 4 spaces. @@ -212,19 +223,15 @@ These routines relate to `makepkg`(8). ## BUGS -Generating `.pot` files for the prose functions is a pain. The -libretools Makefiles have rules to do it, but it might make sense to -pull it into a separate program. - `term_title` currently only knows about the terminals screen, tmux, xterm and rxvt (and their various values; "rxvt-unicode-256color" is still rxvt). ## SEE ALSO -librelib(7), gettext(1), common.sh(3) +librexgettext(1), librelib(7), gettext(1), common.sh(3) Things that were mentioned: -bash(1), exit(1), isatty(3), libretools.conf(5), makepkg(8), -printf(1), signal(7) +bash(1), xgettext(1), exit(1), isatty(3), libretools.conf(5), +makepkg(8), printf(1), signal(7) -- cgit v1.2.3-54-g00ecf