Merge lp:~dobey/intltool/gdngettext-support into lp:intltool

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 696
Merged at revision: not available
Proposed branch: lp:~dobey/intltool/gdngettext-support
Merge into: lp:intltool
Diff against target: None lines
To merge this branch: bzr merge lp:~dobey/intltool/gdngettext-support
Reviewer Review Type Date Requested Status
intltool Developers Pending
Review via email: mp+8646@code.launchpad.net

Commit message

Handle g_dngettext and calling the glib gettext wrappers directly

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'intltool-update.in'
2--- intltool-update.in 2009-04-21 01:58:31 +0000
3+++ intltool-update.in 2009-07-12 18:46:16 +0000
4@@ -494,6 +494,16 @@
5 }
6 last;
7 }
8+
9+ # Check for direct calls to the glib gettext wrappers
10+ if (/g_d[np]?gettext[2]? *\(QUOTEDTEXT/)
11+ {
12+ if (defined isNotValidMissing (unpack("x3 A*", $file))) {
13+ ## Remove the first 3 chars and add newline
14+ push @buf_allfiles, unpack("x3 A*", $file) . "\n";
15+ }
16+ last;
17+ }
18 }
19 close FILE;
20 }
21@@ -1175,7 +1185,7 @@
22 sub FindPOTKeywords
23 {
24
25- my $keywords = "--keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=Q_";
26+ 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";
27 my $varname = "XGETTEXT_OPTIONS";
28 my $make_source; {
29 local (*IN);

Subscribers

People subscribed via source and target branches

to all changes: