Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions radio/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ if(ALL_LANGUAGES)
translations/sim/lang_pt.cpp
translations/sim/lang_ru.cpp
translations/sim/lang_se.cpp
translations/sim/lang_sk.cpp
translations/sim/lang_tw.cpp
translations/sim/lang_ua.cpp
)
Expand Down
46 changes: 46 additions & 0 deletions radio/src/cfn_sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,52 @@ Functions cfn_sorted[] = {
/* Vario */ FUNC_VARIO,
/* Volym */ FUNC_VOLUME,
/* Återställ */ FUNC_RESET,
#elif defined(TRANSLATIONS_SK)
#if defined(COLORLCD)
/* Deaktivácia dotyku */ FUNC_DISABLE_TOUCH,
#endif
#if defined(KEYS_LOCK_KEY1) && defined(KEYS_LOCK_KEY2)
/* Deaktivácia klávesov */ FUNC_DISABLE_KEYS,
#endif
/* Hlasitosť */ FUNC_VOLUME,
/* Hlásiť stav */ FUNC_PLAY_VALUE,
/* Hudba */ FUNC_BACKGND_MUSIC,
/* Hudba pauza */ FUNC_BACKGND_MUSIC_PAUSE,
#if OLED_SCREEN
/* Jas */ FUNC_BACKLIGHT,
#endif
/* Kontrola dosahu */ FUNC_RANGECHECK,
#if defined(VIDEO_SWITCH)
/* LCD na video */ FUNC_LCD_TO_VIDEO,
#endif
/* Loguj na SD */ FUNC_LOGS,
/* Lua Skript */ FUNC_PLAY_SCRIPT,
/* Nastav */ FUNC_ADJUST_GVAR,
/* Nastaviť failsafe */ FUNC_SET_FAILSAFE,
/* Okamžitý trim */ FUNC_INSTANT_TRIM,
/* Párovanie modulu */ FUNC_BIND,
#if !OLED_SCREEN
/* Podsvietenie */ FUNC_BACKLIGHT,
#endif
/* Prehrať wav */ FUNC_PLAY_TRACK,
/* Prehrať zvuk */ FUNC_PLAY_SOUND,
/* Pretekársky režim */ FUNC_RACING_MODE,
/* Reset */ FUNC_RESET,
/* RGB svetlo */ FUNC_RGB_LED,
/* Snímka LCD */ FUNC_SCREENSHOT,
#if defined(FUNCTION_SWITCHES)
/* Stlač CS */ FUNC_PUSH_CUST_SWITCH,
#endif
#if defined(DEBUG)
/* Test */ FUNC_TEST,
#endif
/* Tréner */ FUNC_TRAINER,
/* Vario */ FUNC_VARIO,
/* Vibrovať */ FUNC_HAPTIC,
/* Vybrať hlavnú obrazovku */ FUNC_SET_SCREEN,
/* Vypnutie zosilňovača zvuku */ FUNC_DISABLE_AUDIO_AMP,
/* Zámok */ FUNC_OVERRIDE_CHANNEL,
/* Zmena */ FUNC_SET_TIMER,
#elif defined(TRANSLATIONS_TW)
/* Lua腳本 */ FUNC_PLAY_SCRIPT,
#if defined(KEYS_LOCK_KEY1) && defined(KEYS_LOCK_KEY2)
Expand Down
33 changes: 33 additions & 0 deletions radio/src/tests/test_sk.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (C) EdgeTX
*
* Based on code named
* opentx - https://github.com/opentx/opentx
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/

// Test language translation file against English base

#include "edgetx.h"
#include "translations/translation_def.h"
#include "translations/i18n/sk.h"

// Static string
#define STR(x) const char TST_STR_##x[] = TR_##x;
// Static string array
#define STRARRAY(x) const char* const TST_STR_##x[] = { TR_##x };

#include "translations/string_list.h"
48 changes: 47 additions & 1 deletion radio/src/translations/bl_translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
#define TR_BL_CURRENT_FW "Aktualni firmware:"

#define TR_BL_SELECT_KEY BL_SELECT_KEY " pro vybrani souboru"
#define TR_BL_FLASH_KEY "Drzet dlouze " BL_SELECT_KEY " pro nahrani"
#define TR_BL_FLASH_KEY "Drzet dlouho " BL_SELECT_KEY " pro nahrani"
Comment thread
pfeerick marked this conversation as resolved.
#define TR_BL_ERASE_KEY "Hold " BL_SELECT_KEY " long to erase"
#define TR_BL_TOGGLE_KEY BL_SELECT_KEY " to toggle"
#define TR_BL_EXIT_KEY BL_EXIT_KEY " pro ukonceni"
Expand Down Expand Up @@ -378,6 +378,52 @@
#define TR_BL_COPY_UF2 "Kopiera firmware.uf2 till enhet EDGETX_UF2"
#define TR_BL_NO_VERSION "Ingen version"

#elif defined(TRANSLATIONS_SK)

// Poznamka: nutne pouzitie textu bez diakritiky - obmedzenie velkosti pameti bootloader!
#define TR_BL_USB_CONNECTED "USB pripojene"
#define TR_BL_USB_PLUGIN "alebo pripojte USB kabel"
#define TR_BL_USB_MASS_STORE "pre pouzitie uloziska"
#define TR_BL_WRITE_FW "Nahrat firmware"
#define TR_BL_FORK "Fork:"
#define TR_BL_VERSION "Verzia:"
#define TR_BL_RADIO "Radio:"
#define TR_BL_EXIT "Ukoncit"
#define TR_BL_DIR_MISSING "Adresar chyba"
#define TR_BL_DIR_EMPTY "Adresar je prazdny"
#define TR_BL_WRITING_FW "Nahravanie firmware ..."
#define TR_BL_WRITING_COMPL "Nahravanie dokoncene"
#define TR_BL_ENABLE "Povolene"
#define TR_BL_DISABLE "Zakazane"

#if !defined(COLORLCD)
#define TR_BL_HOLD_ENTER_TO_START TR("Drzat [ENT] pre zahajenie", "Drzat [ENT] pre zahajenie nahravania")
#endif
#define TR_BL_INVALID_FIRMWARE TR("Neplatny firmware!", "Neplatny subor s firmwerom")

// Bootloader Taranis specific - ASCII characters only
#define TR_BL_POWER_KEY "Stlacte tlacitko napajanie."
#define TR_BL_FLASH_EXIT "Ukoncit rezim nahravania."

// Bootloader Horus specific - ASCII characters only
#define TR_BL_ERASE_INT_FLASH "Vymazat internu pamat Flash"
#define TR_BL_ERASE_FLASH "Vymazat pamat Flash"
#define TR_BL_ERASE_FLASH_MSG "Moze to trvat az 200s"
#define TR_BL_RF_USB_ACCESS "RF USB access"
#define TR_BL_CURRENT_FW "Aktualny firmware:"

#define TR_BL_SELECT_KEY BL_SELECT_KEY " pre vybranie suboru"
#define TR_BL_FLASH_KEY "Drzat dlho " BL_SELECT_KEY " pre nahranie"
#define TR_BL_ERASE_KEY "Drzat " BL_SELECT_KEY " pre zmazanie"
#define TR_BL_TOGGLE_KEY BL_SELECT_KEY " prepnut"
#define TR_BL_EXIT_KEY BL_EXIT_KEY " pre ukoncenie"

// Bootloader UF2 specific - ASCII characters only
#define TR_BL_DFU_MODE "DFU rezim"
#define TR_BL_PLUG_USB "Pripojit USB kabel"
#define TR_BL_COPY_UF2 "Kopirovat firmware.uf2 na EDGETX_UF2 uloziste"
#define TR_BL_NO_VERSION "Zadna verzia"
Comment thread
pfeerick marked this conversation as resolved.

#else // EN

// ASCII characters only
Expand Down
Loading
Loading