diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/lib/librexgettext | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/librexgettext b/src/lib/librexgettext index c82b9ae..db575d6 100755 --- a/src/lib/librexgettext +++ b/src/lib/librexgettext @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (C) 2013-2014 Luke Shumaker <lukeshu@sbcglobal.net> +# Copyright (C) 2013-2016 Luke Shumaker <lukeshu@sbcglobal.net> # # License: GNU GPLv2+ # @@ -46,17 +46,25 @@ usage() { print 'Usage: %s [OPTIONS] FILES...' "${0##*/}" print 'Generates .pot files for programs using libremessages' echo + prose 'In librexgettext, there are 2 types of keywords:' + bullet 'simple: Simple keywords are just like normal xgettext' + bullet 'prose: Prose keywords are similar, but the text is + word-wrapped' prose 'The keyword format is the same as in GNU xgettext.' echo + prose 'The libremessages `flag` command is also handled + specially, and is not configurable as a keyword.' + echo prose 'The default simple keywords are: %s' "${default_simple[*]#--keyword=}" echo prose 'The default prose keywords are: %s' "${default_prose[*]#--keyword=}" echo print 'Options:' - flag '--simple=KEYWORD' 'Look for KEYWORD as an additional simple keyword' - flag '--prose=KEYWORD' 'Look for KEYWORD as an additional prose keyword' - flag '-k' 'Disable using the default keywords' - flag '-h, --help' 'Show this text' + flag \ + '--simple=KEYWORD' 'Look for KEYWORD as an additional simple keyword' \ + '--prose=KEYWORD' 'Look for KEYWORD as an additional prose keyword' \ + '-k' 'Disable using the default keywords' \ + '-h, --help' 'Show this text' } xgettext-sh() { |