xgettext has a new option --from-code that specifies the encoding of the
source files. The resulting POT files are UTF-8 encoded.
+* msgmerge has a new option -N/--no-fuzzy-matching that inhibits the fuzzy
+ search for untranslated messages.
+
* Compatibility with automake-1.7.
\f
Version 0.11.5 - August 2002
@opindex --multi-domain@r{, @code{msgmerge} option}
Apply @var{ref}.pot to each of the domains in @var{def}.po.
+@item -N
+@itemx --no-fuzzy-matching
+@opindex -N@r{, @code{msgmerge} option}
+@opindex --no-fuzzy-matching@r{, @code{msgmerge} option}
+Do not use fuzzy matching when an exact match is not found. This may speed
+up the operation considerably.
@end table
@subsection Output details
+2003-01-23 Bruno Haible <bruno@clisp.org>
+
+ * msgmerge.c (use_fuzzy_matching): New variable.
+ (long_options): Add option -N/--no-fuzzy-matching.
+ (main, match_domain): Implement it.
+ (usage): Document it.
+
2003-01-23 Bruno Haible <bruno@clisp.org>
* write-mo.c (write_table): Use xmalloc/free instead of alloca/freea
/* Apply the .pot file to each of the domains in the PO file. */
static bool multi_domain_mode = false;
+/* Determines whether to use fuzzy matching. */
+static bool use_fuzzy_matching = true;
+
/* List of user-specified compendiums. */
static message_list_list_ty *compendiums;
{ "indent", no_argument, NULL, 'i' },
{ "multi-domain", no_argument, NULL, 'm' },
{ "no-escape", no_argument, NULL, 'e' },
+ { "no-fuzzy-matching", no_argument, NULL, 'N' },
{ "no-location", no_argument, &line_comment, 0 },
{ "no-wrap", no_argument, NULL, CHAR_MAX + 4 },
{ "output-file", required_argument, NULL, 'o' },
multi_domain_mode = true;
break;
+ case 'N':
+ use_fuzzy_matching = false;
+ break;
+
case 'o':
output_file = optarg;
break;
printf (_("\
Operation modifiers:\n\
-m, --multi-domain apply ref.pot to each of the domains in def.po\n\
+ -N, --no-fuzzy-matching do not use fuzzy matching\n\
"));
printf ("\n");
/* xgettext: no-wrap */
/* If the message was not defined at all, try to find a very
similar message, it could be a typo, or the suggestion may
help. */
- defmsg = message_list_list_search_fuzzy (definitions, refmsg->msgid);
- if (defmsg)
+ if (use_fuzzy_matching
+ && ((defmsg =
+ message_list_list_search_fuzzy (definitions,
+ refmsg->msgid)) != NULL))
{
message_ty *mp;