GNOME Bugzilla – Bug 438178
only merge translations for languages in LINGUAS
Last modified: 2007-08-27 19:58:41 UTC
(Not exactly the same as bug 309566, although mentioned in comment 25 there; so I'm opening a new bug.) Currently, intltool-merge merges strings from _all languages which have a po file in the given po dir_ into the target files, even for those po files whose language is omitted from LINGUAS (either po/LINGUAS or $LINGUAS env var). This is bad, e.g. when you're building a package that has many translations, but you only need some (e.g. when building a maemo deb from a GNOME package, the schemas and desktop files will be bloated by string from languages that you're _never_ going to see on the target device).
Created attachment 88128 [details] [review] proposed patch This patch makes intltool respect $LINGUAS and po/LINGUAS when merging translations. (I'm not a perl expert, so it can probably be improved massively.)
Please commit this.
* intltool-merge.in.in: Only merge translations for languages listed in LINGUAS. Bug #438178.