summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msgattrib.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-10-22 10:49:08 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:05 +0200
commit71369e271602bb1fa9ce0d706202eaff8ff8867a (patch)
treed556d8e1a6825e55914bdf2ff38cb69076ab86e4 /gettext-tools/src/msgattrib.c
parent9ae78f58546dc8470e92ad1e8824afafff5e0da1 (diff)
downloadexternal_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.c14
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\