diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-01-30 12:32:21 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-01-30 12:32:21 -0500 |
commit | 2aaa95f609b5936f82f8281bf2f850a3e14eae2d (patch) | |
tree | a1b70e309e53245d9062057594694cc852c753a3 /intltool-extract.in | |
parent | f723f40a9513a1baa922d96ddd0ac038c09f205b (diff) | |
download | intltool-2aaa95f609b5936f82f8281bf2f850a3e14eae2d.tar.gz |
Bug #923841: support menus in glade files
Instead of hardcoding a list (property, atkproperty, col) of tags that
we support translatable="yes" on, support it on all tags. This lets us
pick up <attribute translatable="yes"> as is used within <menu> of a
GtkBuilder file.
Diffstat (limited to 'intltool-extract.in')
-rw-r--r-- | intltool-extract.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intltool-extract.in b/intltool-extract.in index c48a9ec..eb6956d 100644 --- a/intltool-extract.in +++ b/intltool-extract.in @@ -847,7 +847,7 @@ sub type_glade { } ## handle new glade files - while ($input =~ /<(property|atkproperty|col)\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)) { |