From ec21b3e55c93842f8eadbbf10ac157fda9f41627 Mon Sep 17 00:00:00 2001 From: theokeist Date: Mon, 22 Feb 2016 21:32:42 +0100 Subject: [PATCH] add czech language support ; needs to complete --- src/dlangide/ui/settings.d | 3 +- src/dlangide/workspace/idesettings.d | 2 +- views/res/i18n/cs.ini | 98 ++++++++++++++++++++++++++++ views/res/i18n/en.ini | 2 + views/res/i18n/es.ini | 1 + views/res/i18n/ru.ini | 2 + views/resources.list | 1 + 7 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 views/res/i18n/cs.ini diff --git a/src/dlangide/ui/settings.d b/src/dlangide/ui/settings.d index 70f1dd9..08bf2cd 100644 --- a/src/dlangide/ui/settings.d +++ b/src/dlangide/ui/settings.d @@ -21,7 +21,8 @@ SettingsPage createSettingsPages() { ui.addStringComboBox("interface/language", UIString("Language"d), [ StringListValue("en", "English"d), StringListValue("ru", "Russian"d), - StringListValue("es", "Spanish"d)]); + StringListValue("es", "Spanish"d), + StringListValue("cs", "Čeština"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), diff --git a/src/dlangide/workspace/idesettings.d b/src/dlangide/workspace/idesettings.d index 9a5f826..fcac638 100644 --- a/src/dlangide/workspace/idesettings.d +++ b/src/dlangide/workspace/idesettings.d @@ -5,7 +5,7 @@ import dlangui.core.i18n; import dlangui.graphics.fonts; const AVAILABLE_THEMES = ["ide_theme_default", "ide_theme_dark"]; -const AVAILABLE_LANGUAGES = ["en", "ru", "es"]; +const AVAILABLE_LANGUAGES = ["en", "ru", "es", "cs"]; class IDESettings : SettingsFile { diff --git a/views/res/i18n/cs.ini b/views/res/i18n/cs.ini new file mode 100644 index 0000000..cf6fb65 --- /dev/null +++ b/views/res/i18n/cs.ini @@ -0,0 +1,98 @@ +EXIT=Zavřít +MENU_FILE=&Soubor +MENU_FILE_NEW=&Vytvořit +MENU_FILE_NEW_SOURCE_FILE=Nový soubor +MENU_FILE_NEW_PROJECT=Nový projekt +MENU_FILE_NEW_WORKSPACE=Nové pracovní prostředí +MENU_FILE_OPEN=&Otevřít soubor... +MENU_FILE_OPEN_WORKSPACE=Otevřít projekt nebo pracovní prostřeí... +MENU_FILE_OPEN_RECENT=Open recent +MENU_FILE_SAVE=&Uložit soubor +MENU_FILE_SAVE_AS=&Uložit soubor jako... +MENU_FILE_SAVE_ALL=&Uložit vše +MENU_FILE_WORKSPACE_CLOSE=Zavřít pracovní prostředí +MENU_FILE_EXIT=E&xit + +MENU_EDIT=&Edit +MENU_EDIT_COPY=&Kopírovat +MENU_EDIT_PASTE=&Vložit +MENU_EDIT_CUT=Cu&t +MENU_EDIT_UNDO=&Undo +MENU_EDIT_REDO=&Redo +MENU_EDIT_INDENT=Odsadit blok +MENU_EDIT_UNINDENT=Unindent block +MENU_EDIT_TOGGLE_LINE_COMMENT=Toggle line comment +MENU_EDIT_TOGGLE_BLOCK_COMMENT=Toggle block comment +MENU_EDIT_ADVANCED=Pokročilé... +MENU_EDIT_PREFERENCES=&Nastavení + +MENU_PROJECT=&Projekt +MENU_PROJECT_CONFIGURATIONS=Konfigurace projektu +MENU_PROJECT_SET_AS_STARTUP=Set as startup project +MENU_PROJECT_SETTINGS=Nastavení projektu +MENU_PROJECT_REFRESH=Obnovit položku pracovního prostředí +MENU_PROJECT_UPDATE_DEPENDENCIES=Upgradovat závislosti + +MENU_NAVIGATE=&Navigovat +GO_TO_DEFINITION=Přejít na definici +SHOW_COMPLETIONS=Get autocompletions +SHOW_DOC_COMMENTS=Ukázat dokumentaci +SHOW_PAREN_COMPLETION=Call hints + +FIND_IN_FILES=Najít v souborech... + +MENU_BUILD_CONFIGURATIONS=Sestavit konfiguraci +MENU_BUILD=&Sestavit +MENU_BUILD_WORKSPACE_BUILD=Sestavit pracovní prostředí +MENU_BUILD_WORKSPACE_REBUILD=Přestavět pracovní prostředí +MENU_BUILD_WORKSPACE_CLEAN=Vyčistit pracovní prostředí +MENU_BUILD_PROJECT_BUILD=Sestavit projekt +MENU_BUILD_PROJECT_REBUILD=Přestavět projekt +MENU_BUILD_PROJECT_CLEAN=Vyčistit projekt +MENU_BUILD_RUN_WITH_RDMD=Spustit s rdmd + +MENU_DEBUG=&Debug +MENU_DEBUG_START_DEBUGGING=Začít ladění +MENU_DEBUG_START_NO_DEBUGGING=Začít bez ladění +MENU_DEBUG_CONTINUE=Pokračovat v ladění +MENU_DEBUG_STOP=Stop +MENU_DEBUG_PAUSE=Pauza +MENU_DEBUG_RESTART=Restart +MENU_DEBUG_STEP_INTO=Step into +MENU_DEBUG_STEP_OVER=Step over +MENU_DEBUG_STEP_OUT=Step out +MENU_DEBUG_BREAKPOINT_TOGGLE=Toggle breakpoint +MENU_DEBUG_BREAKPOINT_ENABLE=Enable breakpoint +MENU_DEBUG_BREAKPOINT_DISABLE=Disable breakpoint + +MENU_WINDOW=&Okno +MENU_WINDOW_PREFERENCES=&Nastavení +MENU_WINDOW_CLOSE_DOCUMENT=Zavřít dokument +MENU_WINDOW_CLOSE_ALL_DOCUMENTS=Zavřít všechny dokumenty + +MENU_HELP=&Pomoc +MENU_HELP_VIEW_HELP=&Zobrazit pomoc +MENU_HELP_ABOUT=&O projektu + +MENU_VIEW=&Zobrazit +MENU_VIEW_LANGUAGE=Rozhraní &Jazyk +MENU_VIEW_LANGUAGE_EN=English +MENU_VIEW_LANGUAGE_RU=Русский +MENU_VIEW_LANGUAGE_CS=Čeština +MENU_VIEW_LANGUAGE_ES=Spanish +MENU_VIEW_THEME=&Téma +MENU_VIEW_THEME_DEFAULT=&Default +MENU_VIEW_THEME_CUSTOM1=&Custom 1 + +TAB_LONG_LIST=Long list +TAB_BUTTONS=Tlačítka +TAB_ANIMATION=Animace +TAB_TABLE_LAYOUT=Table layout +TAB_EDITORS=Editor + +MENU_PROJECT_FOLDER_ADD_ITEM=Přidat... +MENU_PROJECT_FOLDER_OPEN_ITEM=Otevřít +MENU_PROJECT_FOLDER_REMOVE_ITEM=Odebrat +MENU_PROJECT_FOLDER_RENAME_ITEM=Přejmenovat... +MENU_PROJECT_FOLDER_REFRESH=Obnovit +MENU_PROJECT_REVEAL_IN_EXPLORER=Reveal in Explorer diff --git a/views/res/i18n/en.ini b/views/res/i18n/en.ini index 3cde058..03130fc 100644 --- a/views/res/i18n/en.ini +++ b/views/res/i18n/en.ini @@ -78,6 +78,8 @@ MENU_VIEW=&View MENU_VIEW_LANGUAGE=Interface &Language MENU_VIEW_LANGUAGE_EN=English MENU_VIEW_LANGUAGE_RU=Русский +MENU_VIEW_LANGUAGE_CS=Čeština +MENU_VIEW_LANGUAGE_ES=Spanish MENU_VIEW_THEME=&Theme MENU_VIEW_THEME_DEFAULT=&Default MENU_VIEW_THEME_CUSTOM1=&Custom 1 diff --git a/views/res/i18n/es.ini b/views/res/i18n/es.ini index 62045f4..c199ba1 100644 --- a/views/res/i18n/es.ini +++ b/views/res/i18n/es.ini @@ -48,6 +48,7 @@ MENU_VIEW_LANGUAGE=Lenguaje de &Interfaz MENU_VIEW_LANGUAGE_ES=Spanish MENU_VIEW_LANGUAGE_EN=English MENU_VIEW_LANGUAGE_RU=Русский +MENU_VIEW_LANGUAGE_CS=Čeština MENU_VIEW_THEME=&Tema MENU_VIEW_THEME_DEFAULT=&Por Defecto MENU_VIEW_THEME_CUSTOM1=&Personalizado 1 diff --git a/views/res/i18n/ru.ini b/views/res/i18n/ru.ini index 3b7f566..3c98e7b 100644 --- a/views/res/i18n/ru.ini +++ b/views/res/i18n/ru.ini @@ -60,8 +60,10 @@ MENU_HELP_ABOUT=&О программе MENU_VIEW=&Вид MENU_VIEW_LANGUAGE=&Язык интерфейса +MENU_VIEW_LANGUAGE_ES=Spanish MENU_VIEW_LANGUAGE_EN=English MENU_VIEW_LANGUAGE_RU=Русский +MENU_VIEW_LANGUAGE_CS=Čeština MENU_VIEW_THEME=&Тема MENU_VIEW_THEME_DEFAULT=Стандартная MENU_VIEW_THEME_CUSTOM1=Пример 1 diff --git a/views/resources.list b/views/resources.list index 17d4809..df01525 100644 --- a/views/resources.list +++ b/views/resources.list @@ -3,6 +3,7 @@ res/ide_theme_dark.xml res/i18n/en.ini res/i18n/ru.ini res/i18n/es.ini +res/i18n/cs.ini res/hdpi/hdpi_configure.png res/hdpi/hdpi_debug-run.png res/hdpi/hdpi_document-close.png