diff options
author | Bruno Haible <bruno@clisp.org> | 2003-04-29 10:12:15 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:24 +0200 |
commit | cde7e9fa958cdb60d1762921d4704c6b1c3e2504 (patch) | |
tree | d5003e47cbac8839b22dbf9ee20723b141a42472 /gettext-tools/src/msguniq.c | |
parent | b6d32da76eb3a2aebea75850c5696c0122cfa385 (diff) | |
download | external_gettext-cde7e9fa958cdb60d1762921d4704c6b1c3e2504.zip external_gettext-cde7e9fa958cdb60d1762921d4704c6b1c3e2504.tar.gz external_gettext-cde7e9fa958cdb60d1762921d4704c6b1c3e2504.tar.bz2 |
Support Java .properties files as alternative syntax, like PO files.
Diffstat (limited to 'gettext-tools/src/msguniq.c')
-rw-r--r-- | gettext-tools/src/msguniq.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gettext-tools/src/msguniq.c b/gettext-tools/src/msguniq.c index 31a2ba4..5222534 100644 --- a/gettext-tools/src/msguniq.c +++ b/gettext-tools/src/msguniq.c @@ -62,6 +62,8 @@ static const struct option long_options[] = { "no-location", no_argument, &line_comment, 0 }, { "no-wrap", no_argument, NULL, CHAR_MAX + 2 }, { "output-file", required_argument, NULL, 'o' }, + { "properties-input", no_argument, NULL, 'P' }, + { "properties-output", no_argument, NULL, 'p' }, { "repeated", no_argument, NULL, 'd' }, { "sort-by-file", no_argument, NULL, 'F' }, { "sort-output", no_argument, NULL, 's' }, @@ -118,7 +120,7 @@ main (int argc, char **argv) less_than = INT_MAX; use_first = false; - while ((optchar = getopt_long (argc, argv, "dD:eEFhino:st:uVw:", + while ((optchar = getopt_long (argc, argv, "dD:eEFhino:pPst:uVw:", long_options, NULL)) != EOF) switch (optchar) { @@ -162,6 +164,14 @@ main (int argc, char **argv) output_file = optarg; break; + case 'p': + message_print_syntax_properties (); + break; + + case 'P': + input_syntax = syntax_properties; + break; + case 's': sort_by_msgid = true; break; @@ -320,6 +330,11 @@ Message selection:\n")); -u, --unique print only unique messages, discard duplicates\n")); printf ("\n"); printf (_("\ +Input file syntax:\n")); + printf (_("\ + -P, --properties-input input file is in Java .properties syntax\n")); + printf ("\n"); + printf (_("\ Output details:\n")); printf (_("\ -t, --to-code=NAME encoding for output\n")); @@ -341,6 +356,8 @@ Output details:\n")); printf (_("\ --strict write out strict Uniforum conforming .po file\n")); printf (_("\ + -p, --properties-output write out a Java .properties file\n")); + printf (_("\ -w, --width=NUMBER set output page width\n")); printf (_("\ --no-wrap do not break long message lines, longer than\n\ |