diff options
Diffstat (limited to 'gettext-tools/src/msguniq.c')
-rw-r--r-- | gettext-tools/src/msguniq.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gettext-tools/src/msguniq.c b/gettext-tools/src/msguniq.c index e8dca96..6b27049 100644 --- a/gettext-tools/src/msguniq.c +++ b/gettext-tools/src/msguniq.c @@ -37,6 +37,9 @@ #include "basename.h" #include "message.h" #include "read-catalog.h" +#include "read-po.h" +#include "read-properties.h" +#include "read-stringtable.h" #include "write-catalog.h" #include "write-po.h" #include "write-properties.h" @@ -103,6 +106,7 @@ main (int argc, char **argv) const char *input_file; string_list_ty *file_list; msgdomain_list_ty *result; + catalog_input_format_ty input_syntax = &input_format_po; catalog_output_format_ty output_syntax = &output_format_po; bool sort_by_msgid = false; bool sort_by_filepos = false; @@ -182,7 +186,7 @@ main (int argc, char **argv) break; case 'P': - input_syntax = syntax_properties; + input_syntax = &input_format_properties; break; case 's': @@ -225,7 +229,7 @@ main (int argc, char **argv) break; case CHAR_MAX + 3: /* --stringtable-input */ - input_syntax = syntax_stringtable; + input_syntax = &input_format_stringtable; break; case CHAR_MAX + 4: /* --stringtable-output */ @@ -281,7 +285,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ /* Read input files, then filter, convert and merge messages. */ allow_duplicates = true; - result = catenate_msgdomain_list (file_list, to_code); + result = catenate_msgdomain_list (file_list, input_syntax, to_code); string_list_free (file_list); |