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/read-po-abstract.h | |
parent | b6d32da76eb3a2aebea75850c5696c0122cfa385 (diff) | |
download | gettext-cde7e9fa958cdb60d1762921d4704c6b1c3e2504.tar.gz |
Support Java .properties files as alternative syntax, like PO files.
Diffstat (limited to 'gettext-tools/src/read-po-abstract.h')
-rw-r--r-- | gettext-tools/src/read-po-abstract.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gettext-tools/src/read-po-abstract.h b/gettext-tools/src/read-po-abstract.h index 87590a672..4140fc873 100644 --- a/gettext-tools/src/read-po-abstract.h +++ b/gettext-tools/src/read-po-abstract.h @@ -73,7 +73,7 @@ struct abstract_po_reader_class_ty char *msgid_plural, char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - bool obsolete); + bool force_fuzzy, bool obsolete); /* What to do with a plain-vanilla comment - the expectation is that they will be accumulated, and added to the next message @@ -123,19 +123,20 @@ struct abstract_po_reader_ty extern abstract_po_reader_ty * po_reader_alloc (abstract_po_reader_class_ty *method_table); -/* Prepare for use of abstract_po_reader_class_ty methods. */ -extern void - po_scan_start (abstract_po_reader_ty *pop); - -/* Terminate the use of abstract_po_reader_class_ty methods. */ -extern void - po_scan_end (abstract_po_reader_ty *pop); +/* Kinds of PO file input syntaxes. */ +enum input_syntax_ty +{ + syntax_po, + syntax_properties +}; +typedef enum input_syntax_ty input_syntax_ty; /* Read a PO file from a stream, and dispatch to the various abstract_po_reader_class_ty methods. */ extern void po_scan (abstract_po_reader_ty *pop, FILE *fp, - const char *real_filename, const char *logical_filename); + const char *real_filename, const char *logical_filename, + input_syntax_ty syntax); /* Call the destructor and deallocate a abstract_po_reader_ty (or derived class) instance. */ @@ -150,7 +151,7 @@ extern void po_callback_message (char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - bool obsolete); + bool force_fuzzy, bool obsolete); extern void po_callback_comment (const char *s); extern void po_callback_comment_dot (const char *s); extern void po_callback_comment_filepos (const char *s, size_t line); |