summaryrefslogtreecommitdiff
path: root/intltool-update.in
diff options
context:
space:
mode:
authorDanilo Segan <danilo@canonical.com>2011-10-08 20:08:58 +0200
committerDanilo Segan <danilo@canonical.com>2011-10-08 20:08:58 +0200
commitc1b3fc2b64aaada233a5d98cf8aba8a00f11ebac (patch)
tree303030d20d0e4537b588c45804af406a51b57f77 /intltool-update.in
parentf52b713ee389b7335a414d9e2decf294d603379e (diff)
downloadintltool-c1b3fc2b64aaada233a5d98cf8aba8a00f11ebac.tar.gz
Apply patch from Ryan with a few fixes and a test case.
Diffstat (limited to 'intltool-update.in')
-rw-r--r--intltool-update.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/intltool-update.in b/intltool-update.in
index 58add1d..4bcf2c0 100644
--- a/intltool-update.in
+++ b/intltool-update.in
@@ -69,6 +69,7 @@ my $xml_support =
"server(?:\\.in)+|". # Bonobo specific
"sheet(?:\\.in)+|". # ?
"schemas(?:\\.in)+|". # GConf specific
+"gschema.xml|". # GLib schema (ie: GSettings) specific
"pong(?:\\.in)+|". # DEPRECATED: PONG is not used [by GNOME] any longer.
"kbd(?:\\.in)+|". # GOK specific.
"policy(?:\\.in)+"; # PolicyKit files
@@ -240,6 +241,10 @@ sub POFile_DetermineType ($)
{
$gettext_type=$1;
}
+ elsif ($type =~ /gschema.xml$/)
+ {
+ $gettext_type="gsettings";
+ }
elsif ($type =~ /schemas(\.in)+$/)
{
$gettext_type="schemas";