+2005-05-21 Bruno Haible <bruno@clisp.org>
+
+ New undocumented option, used by glocale PO files.
+ * msgfmt.c (include_fuzzies): Renamed from include_all.
+ (include_untranslated): New variable.
+ (long_options): Add --use-untranslated.
+ (main): Handle --use-untranslated.
+ (msgfmt_frob_new_message): Test include_untranslated.
+ (msgfmt_comment_special): Update.
+
2005-07-26 Bruno Haible <bruno@clisp.org>
* user-email.sh.in (datarootdir): New variable.
static int exit_status;
/* If true include even fuzzy translations in output file. */
-static bool include_all = false;
+static bool include_fuzzies = false;
+
+/* If true include even untranslated messages in output file. */
+static bool include_untranslated = false;
/* Specifies name of the output file. */
static const char *output_file_name;
{ "stringtable-input", no_argument, NULL, CHAR_MAX + 8 },
{ "tcl", no_argument, NULL, CHAR_MAX + 7 },
{ "use-fuzzy", no_argument, NULL, 'f' },
+ { "use-untranslated", no_argument, NULL, CHAR_MAX + 12 },
{ "verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, 'V' },
{ NULL, 0, NULL, 0 }
dir_list_append (optarg);
break;
case 'f':
- include_all = true;
+ include_fuzzies = true;
break;
case 'h':
do_help = true;
case CHAR_MAX + 11: /* --csharp-resources */
csharp_resources_mode = true;
break;
+ case CHAR_MAX + 12: /* --use-untranslated (undocumented) */
+ include_untranslated = true;
+ break;
default:
usage (EXIT_FAILURE);
break;
/* Don't emit untranslated entries.
Also don't emit fuzzy entries, unless --use-fuzzy was specified.
But ignore fuzziness of the header entry. */
- if (mp->msgstr[0] == '\0'
- || (!include_all && mp->is_fuzzy && mp->msgid[0] != '\0'))
+ if ((!include_untranslated && mp->msgstr[0] == '\0')
+ || (!include_fuzzies && mp->is_fuzzy && mp->msgid[0] != '\0'))
{
if (check_compatibility)
{
{
static bool warned = false;
- if (!include_all && check_compatibility && !warned)
+ if (!include_fuzzies && check_compatibility && !warned)
{
warned = true;
error (0, 0, _("\