Can I choose just a set of languages when compiling from src
Moderator: Forum Moderators
Can I choose just a set of languages when compiling from src
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.
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.
- 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
Yes, no problem. give me 2 hours to code it.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.
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.
http://brilliantanyway.blogspot.com/ Brilliant Anyway
-
- Posts: 161
- Joined: September 6th, 2005, 10:41 pm
- Location: Australia
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: to 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.
For example, I would change:
Code: Select all
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
Code: Select all
ALL_LINGUAS_="en_GB"
After modifying, run ./autogen.sh and use your usual build sequence.
Hope that helps.