diff options
author | Bruno Haible <bruno@clisp.org> | 2003-10-22 10:49:08 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:11:05 +0200 |
commit | 71369e271602bb1fa9ce0d706202eaff8ff8867a (patch) | |
tree | d556d8e1a6825e55914bdf2ff38cb69076ab86e4 /gettext-tools/src/msgattrib.c | |
parent | 9ae78f58546dc8470e92ad1e8824afafff5e0da1 (diff) | |
download | external_gettext-71369e271602bb1fa9ce0d706202eaff8ff8867a.zip external_gettext-71369e271602bb1fa9ce0d706202eaff8ff8867a.tar.gz external_gettext-71369e271602bb1fa9ce0d706202eaff8ff8867a.tar.bz2 |
Support for GNUstep .strings format.
Diffstat (limited to 'gettext-tools/src/msgattrib.c')
-rw-r--r-- | gettext-tools/src/msgattrib.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gettext-tools/src/msgattrib.c b/gettext-tools/src/msgattrib.c index 0e78d9f..fede084 100644 --- a/gettext-tools/src/msgattrib.c +++ b/gettext-tools/src/msgattrib.c @@ -97,6 +97,8 @@ static const struct option long_options[] = { "set-obsolete", no_argument, NULL, CHAR_MAX + 9 }, { "sort-by-file", no_argument, NULL, 'F' }, { "sort-output", no_argument, NULL, 's' }, + { "stringtable-input", no_argument, NULL, CHAR_MAX + 16 }, + { "stringtable-output", no_argument, NULL, CHAR_MAX + 17 }, { "strict", no_argument, NULL, 'S' }, { "translated", no_argument, NULL, CHAR_MAX + 1 }, { "untranslated", no_argument, NULL, CHAR_MAX + 2 }, @@ -288,6 +290,14 @@ main (int argc, char **argv) ignore_file = optarg; break; + case CHAR_MAX + 16: /* --stringtable-input */ + input_syntax = syntax_stringtable; + break; + + case CHAR_MAX + 17: /* --stringtable-output */ + message_print_syntax_stringtable (); + break; + default: usage (EXIT_FAILURE); /* NOTREACHED */ @@ -430,6 +440,8 @@ Attribute manipulation:\n")); Input file syntax:\n")); printf (_("\ -P, --properties-input input file is in Java .properties syntax\n")); + printf (_("\ + --stringtable-input input file is in NeXTstep/GNUstep .strings syntax\n")); printf ("\n"); printf (_("\ Output details:\n")); @@ -450,6 +462,8 @@ Output details:\n")); printf (_("\ -p, --properties-output write out a Java .properties file\n")); printf (_("\ + --stringtable-output write out a NeXTstep/GNUstep .strings file\n")); + printf (_("\ -w, --width=NUMBER set output page width\n")); printf (_("\ --no-wrap do not break long message lines, longer than\n\ |