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
=== modified file 'intltool-update.in'
--- intltool-update.in 2009-04-21 01:58:31 +0000
+++ intltool-update.in 2009-07-12 18:46:16 +0000
@@ -494,6 +494,16 @@
494 }494 }
495 last;495 last;
496 }496 }
497
498 # Check for direct calls to the glib gettext wrappers
499 if (/g_d[np]?gettext[2]? *\(QUOTEDTEXT/)
500 {
501 if (defined isNotValidMissing (unpack("x3 A*", $file))) {
502 ## Remove the first 3 chars and add newline
503 push @buf_allfiles, unpack("x3 A*", $file) . "\n";
504 }
505 last;
506 }
497 }507 }
498 close FILE;508 close FILE;
499 }509 }
@@ -1175,7 +1185,7 @@
1175sub FindPOTKeywords1185sub FindPOTKeywords
1176{1186{
11771187
1178 my $keywords = "--keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=Q_";1188 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";
1179 my $varname = "XGETTEXT_OPTIONS";1189 my $varname = "XGETTEXT_OPTIONS";
1180 my $make_source; {1190 my $make_source; {
1181 local (*IN);1191 local (*IN);

Subscribers

People subscribed via source and target branches

to all changes: