From c508b32832bb8939f3bb274c7eb0af04a18ba5dd Mon Sep 17 00:00:00 2001 From: Robert Bruce Park Date: Tue, 7 Aug 2012 16:10:10 -0500 Subject: Support translatable='yes' in glade XML --- intltool-extract.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intltool-extract.in b/intltool-extract.in index 5afc292..60dea88 100644 --- a/intltool-extract.in +++ b/intltool-extract.in @@ -847,7 +847,7 @@ sub type_glade { } ## handle new glade files - while ($input =~ /<(\w+)\s+[^>]*translatable\s*=\s*"yes"(?:\s+[^>]*context\s*=\s*"([^"]*)")?(?:\s+[^>]*comments\s*=\s*"([^"]*)")?[^>]*>([^<]+)<\/\1>/sg) { + while ($input =~ /<(\w+)\s+[^>]*translatable\s*=\s*["']yes["'](?:\s+[^>]*context\s*=\s*"([^"]*)")?(?:\s+[^>]*comments\s*=\s*"([^"]*)")?[^>]*>([^<]+)<\/\1>/sg) { if (!($4 =~ /^(window|label)[0-9]+$/)) { my $message = entity_decode($4); if (defined($2)) { -- cgit v1.2.1