WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
79605
webkit-gtk does not respect LINGUAS
https://bugs.webkit.org/show_bug.cgi?id=79605
Summary
webkit-gtk does not respect LINGUAS
Alexandre Rostovtsev
Reported
2012-02-26 08:00:37 PST
Created
attachment 128916
[details]
patch to respect LINGUAS It is generally expected that modern linux packages honor the LINGUAS environment variable to limit the set of translations that get built. For example, if LINGUAS="en ru de", then at most only the Englush, Russian, and German translations of messages etc. would be built; an empty or undefined LINGUAS is typically interpreted as "all available translations". Packages that use a copy of intltool's Makefile.in.in get this capability for free (see
http://bazaar.launchpad.net/~intltool/intltool/trunk/view/head:/Makefile.in.in
). Since webkit-gtk uses a rather non-standard build system, a patch is needed. Note that in the attached patch, PO_LINGUAS, USER_LINGUAS, and USE_LINGUAS are added to the root GNUmakefile.am to ensure that they are defined before MOFILES in the root GNUmakefile due to the way that automake interprets "+=".
Attachments
patch to respect LINGUAS
(1.41 KB, patch)
2012-02-26 08:00 PST
,
Alexandre Rostovtsev
no flags
Details
Formatted Diff
Diff
patch to respect LINGUAS (with changelogs)
(2.80 KB, patch)
2012-02-27 22:05 PST
,
Alexandre Rostovtsev
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2012-02-27 15:04:41 PST
There's already an effort to make the library intltool compliant:
https://bugs.webkit.org/show_bug.cgi?id=45321
Would that fix the issue as well? I'm not opposed to this patch, but could you make it against the SVN checkout and include a changelog? See
http://www.webkit.org/coding/contributing.html
Alexandre Rostovtsev
Comment 2
2012-02-27 22:05:59 PST
Created
attachment 129187
[details]
patch to respect LINGUAS (with changelogs) (In reply to
comment #1
)
> There's already an effort to make the library intltool compliant:
https://bugs.webkit.org/show_bug.cgi?id=45321
> > Would that fix the issue as well?
Yes; if webkit-gtk used intltool's Makefile.in.in, then it would treat LINGUAS like all other intltool-using projects, and my patch would not be needed.
> I'm not opposed to this patch, but could you make it against the SVN checkout and include a changelog? See
http://www.webkit.org/coding/contributing.html
Sure, patch with changelogs attached.
WebKit Review Bot
Comment 3
2012-03-02 15:10:48 PST
Comment on
attachment 129187
[details]
patch to respect LINGUAS (with changelogs) Clearing flags on attachment: 129187 Committed
r109620
: <
http://trac.webkit.org/changeset/109620
>
WebKit Review Bot
Comment 4
2012-03-02 15:10:55 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug