added 2 languages, marked incomplete translations

Added Turkish and Welsh, marked languages with < 90% translation as
incomplete
This commit is contained in:
Štefan Baebler 2012-11-16 07:36:18 +01:00
parent db5c846170
commit a5a5946219
2 changed files with 11 additions and 7 deletions

View file

@ -700,6 +700,7 @@
<string name="system_locale">System</string> <string name="system_locale">System</string>
<string name="preferred_locale_descr">Select display language</string> <string name="preferred_locale_descr">Select display language</string>
<string name="preferred_locale">Display language</string> <string name="preferred_locale">Display language</string>
<string name="incomplete_locale">incomplete</string>
<string name="tip_map_switch">Map Source</string> <string name="tip_map_switch">Map Source</string>
<string name="tip_map_switch_t_v2">\tThe map source and layers displayed are changed via \'Menu\' -> \'Define view\' in map view. <string name="tip_map_switch_t_v2">\tThe map source and layers displayed are changed via \'Menu\' -> \'Define view\' in map view.
\n\tUnder \'Map source&#8230;\' you can choose using the pre-loaded offline vector maps, predefined (online) tile sources (activate the \'Online and tile maps\' plugin for this), or maps manually created using e.g. OsmAndMapCreator on a PC. \n\tUnder \'Map source&#8230;\' you can choose using the pre-loaded offline vector maps, predefined (online) tile sources (activate the \'Online and tile maps\' plugin for this), or maps manually created using e.g. OsmAndMapCreator on a PC.

View file

@ -314,6 +314,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
} }
registerListPreference(osmandSettings.METRIC_SYSTEM, screen, entries, mvls); registerListPreference(osmandSettings.METRIC_SYSTEM, screen, entries, mvls);
String incompleteSuffix = " (" + getString(R.string.incomplete_locale) + ")";
//getResources().getAssets().getLocales(); //getResources().getAssets().getLocales();
entrieValues = new String[] { "", entrieValues = new String[] { "",
"en", "af", "hy", "eu", "bs", "bg", "en", "af", "hy", "eu", "bs", "bg",
@ -321,14 +322,16 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
"de", "el", "he", "hi", "hu", "id", "de", "el", "he", "hi", "hu", "id",
"it", "ja", "ko", "lv", "lt", "mr", "it", "ja", "ko", "lv", "lt", "mr",
"no", "pl", "pt", "ro", "ru", "sk", "no", "pl", "pt", "ro", "ru", "sk",
"sl", "es", "sv", "uk", "vi" }; "sl", "es", "sv", "tr", "uk", "vi",
"cy" };
entries = new String[] { getString(R.string.system_locale), entries = new String[] { getString(R.string.system_locale),
"English", "Afrikaans", "Armenian", "Basque", "Bosnian", "Bulgarian", "English", "Afrikaans", "Armenian" + incompleteSuffix, "Basque" + incompleteSuffix, "Bosnian" + incompleteSuffix, "Bulgarian" + incompleteSuffix,
"Catalan", "Czech", "Dutch", "Finnish", "French", "Georgian", "Catalan", "Czech", "Dutch", "Finnish" + incompleteSuffix, "French", "Georgian",
"German", "Greek", "Hebrew", "Hindi", "Hungarian", "Indonesian", "German", "Greek", "Hebrew", "Hindi" + incompleteSuffix, "Hungarian", "Indonesian" + incompleteSuffix,
"Italian", "Japanese", "Korean", "Latvian", "Lithuanian", "Marathi", "Italian", "Japanese" + incompleteSuffix, "Korean" + incompleteSuffix, "Latvian", "Lithuanian", "Marathi",
"Norwegian", "Polish", "Portuguese", "Romanian", "Russian", "Slovak", "Norwegian" + incompleteSuffix, "Polish", "Portuguese", "Romanian", "Russian", "Slovak",
"Slovenian", "Spanish", "Swedish", "Ukrainian", "Vietnamese" }; "Slovenian" + incompleteSuffix, "Spanish", "Swedish" + incompleteSuffix, "Turkish" + incompleteSuffix, "Ukrainian" + incompleteSuffix, "Vietnamese"
"Welsh" + incompleteSuffix };
registerListPreference(osmandSettings.PREFERRED_LOCALE, screen, entries, entrieValues); registerListPreference(osmandSettings.PREFERRED_LOCALE, screen, entries, entrieValues);