Can I choose just a set of languages when compiling from src

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
sylecn
Translator
Posts: 6
Joined: January 7th, 2008, 5:33 pm

Can I choose just a set of languages when compiling from src

Post by sylecn »

By default all translations are compiled .
Is there a param I can pass to ./configure or change some config files so just chosen languages will be compiled (or updated). Generally I won't need that many languages which makes compile slower.

I'm on linux and using svn versions. Thanks in advance.
User avatar
vonHalenbach
Translator
Posts: 398
Joined: May 3rd, 2006, 10:23 am
Location: united europe

Re: Can I choose just a set of languages when compiling from

Post by vonHalenbach »

sylecn wrote:By default all translations are compiled .
Is there a param I can pass to ./configure or change some config files so just chosen languages will be compiled (or updated). Generally I won't need that many languages which makes compile slower.

I'm on linux and using svn versions. Thanks in advance.
Yes, no problem. give me 2 hours to code it.

In the meantime you can buy windows and install it on your pc. Then you can download just the windows binary and play a bit Battle for Wesnoth. When i am ready, you can delete windows from your harddisk again.
User avatar
Viliam
Translator
Posts: 1341
Joined: January 30th, 2004, 11:07 am
Location: Bratislava, Slovakia
Contact:

Post by Viliam »

Maybe this fix would work -- delete the unnecessary languages before compiling...

(just guessing)
WildPenguin
Posts: 161
Joined: September 6th, 2005, 10:41 pm
Location: Australia

Post by WildPenguin »

The cleanest solution I've found is modifying m4/po.m4 which appears to handle which translations are compiled and installed. You can specify which translations you would like to build by modifying the ALL_LINGUAS_ variable (around line 125).

For example, I would change:

Code: Select all

ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
to

Code: Select all

ALL_LINGUAS_="en_GB"
to enable only British English. Additional translations should be separated by a space.

After modifying, run ./autogen.sh and use your usual build sequence.

Hope that helps.
sylecn
Translator
Posts: 6
Joined: January 7th, 2008, 5:33 pm

Post by sylecn »

WildPenguin wrote:The cleanest solution I've found is modifying m4/po.m4 which appears to handle which translations are compiled and installed. You can specify which translations you would like to build by modifying the ALL_LINGUAS_ variable (around line 125).
Thanks. That works.
Post Reply