add Spanish translation

This commit is contained in:
Vadim Lopatin 2015-11-16 08:48:41 +03:00
parent d22c68bdc3
commit 87f12a9435
2 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import dlangui.dialogs.settingsdialog;
const AVAILABLE_THEMES = ["ide_theme_default", "ide_theme_dark"];
const AVAILABLE_LANGUAGES = ["en", "ru"];
const AVAILABLE_LANGUAGES = ["en", "ru", "es"];
class IDESettings : SettingsFile {
@ -146,7 +146,10 @@ SettingsPage createSettingsPages() {
ui.addStringComboBox("interface/theme", UIString("Theme"d), [
StringListValue("ide_theme_default", "Default"d),
StringListValue("ide_theme_dark", "Dark"d)]);
ui.addStringComboBox("interface/language", UIString("Language"d), [StringListValue("en", "English"d), StringListValue("ru", "Russian"d)]);
ui.addStringComboBox("interface/language", UIString("Language"d), [
StringListValue("en", "English"d),
StringListValue("ru", "Russian"d),
StringListValue("es", "Spanish"d)]);
ui.addIntComboBox("interface/hintingMode", UIString("Font hinting mode"d), [StringListValue(0, "Normal"d), StringListValue(1, "Force Auto Hint"d),
StringListValue(2, "Disabled"d), StringListValue(3, "Light"d)]);
ui.addIntComboBox("interface/minAntialiasedFontSize", UIString("Minimum font size for antialiasing"d),

View File

@ -2,6 +2,7 @@ res/ide_theme_default.xml
res/ide_theme_dark.xml
res/i18n/en.ini
res/i18n/ru.ini
res/i18n/es.ini
res/hdpi/hdpi_configure.png
res/hdpi/hdpi_debug-run.png
res/hdpi/hdpi_document-close.png