diff options
Diffstat (limited to 'textproc/intltool/patches/patch-aa')
-rw-r--r-- | textproc/intltool/patches/patch-aa | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/textproc/intltool/patches/patch-aa b/textproc/intltool/patches/patch-aa new file mode 100644 index 00000000000..031a348ef6b --- /dev/null +++ b/textproc/intltool/patches/patch-aa @@ -0,0 +1,30 @@ +$NetBSD: patch-aa,v 1.6 2006/08/29 14:03:39 joerg Exp $ + +--- intltool-merge.in.in.orig 2006-08-28 10:58:43.000000000 +0200 ++++ intltool-merge.in.in +@@ -415,7 +415,7 @@ sub create_translation_database + { + $nextfuzzy = 1 if /^#, fuzzy/; + +- if (/^msgid "((\\.|[^\\])*)"/ ) ++ if (/^msgid "((\\.|[^\\]+)*)"/ ) + { + $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr; + $msgid = ""; +@@ -431,14 +431,14 @@ sub create_translation_database + $nextfuzzy = 0; + } + +- if (/^msgstr "((\\.|[^\\])*)"/) ++ if (/^msgstr "((\\.|[^\\]+)*)"/) + { + $msgstr = unescape_po_string($1); + $inmsgstr = 1; + $inmsgid = 0; + } + +- if (/^"((\\.|[^\\])*)"/) ++ if (/^"((\\.|[^\\]+)*)"/) + { + $msgid .= unescape_po_string($1) if $inmsgid; + $msgstr .= unescape_po_string($1) if $inmsgstr; |