diff options
author | Rodney Dawes <dobey@gnome.org> | 2009-07-12 17:50:28 -0400 |
---|---|---|
committer | Tarmac <> | 2009-07-12 17:50:28 -0400 |
commit | be3777f34183aa905602bf931424394b185207e3 (patch) | |
tree | dd766e6cccbd2240c990ca23dc427b66983e80e7 | |
parent | a13e0df6dd10cddcbd1bf17ed2bc661e0d225cc0 (diff) | |
parent | eaf3188107c5635b458010f4325499d23e0f52fb (diff) | |
download | intltool-be3777f34183aa905602bf931424394b185207e3.tar.gz |
Handle g_dngettext and calling the glib gettext wrappers directly
-rw-r--r-- | intltool-update.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/intltool-update.in b/intltool-update.in index 852dd1d..3cc7247 100644 --- a/intltool-update.in +++ b/intltool-update.in @@ -510,6 +510,16 @@ sub FindLeftoutFiles } last; } + + # Check for direct calls to the glib gettext wrappers + if (/g_d[np]?gettext[2]? *\(QUOTEDTEXT/) + { + if (defined isNotValidMissing (unpack("x3 A*", $file))) { + ## Remove the first 3 chars and add newline + push @buf_allfiles, unpack("x3 A*", $file) . "\n"; + } + last; + } } close FILE; } @@ -1202,7 +1212,7 @@ sub FindPackageName sub FindPOTKeywords { - my $keywords = "--keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=Q_"; + my $keywords = "--keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=Q_ --keyword=g_dgettext:2 --keyword=g_dngettext:2,3 --keyword=g_dpgettext:2 --keyword=g_dpgettext2=2c,3"; my $varname = "XGETTEXT_OPTIONS"; my $make_source; { local (*IN); |