Loading of translations is now done in a hierarchical manner. New translations are added to default; you can then specify the language and the locale, and you only need to override the differences.

This commit is contained in:
Wyatt Olson
2010-09-11 20:41:10 -06:00
parent 6505649fff
commit 815d8066cf
27 changed files with 70 additions and 1649 deletions

View File

@@ -384,8 +384,11 @@ Gtk::Widget* Preferences::getGeneralPanel () {
std::vector<Glib::ustring> langs;
parseDir (argv0 + "/languages", langs, "");
for (int i=0; i<langs.size(); i++)
languages->append_text (langs[i]);
for (int i=0; i<langs.size(); i++) {
if ("default" != langs[i]) {
languages->append_text (langs[i]);
}
}
Gtk::Label* langw = new Gtk::Label (Glib::ustring("(") + M("PREFERENCES_APPLNEXTSTARTUP") + ")");
hblang->pack_start (*langlab, Gtk::PACK_SHRINK, 4);