comparison Discovery/Src/text_multilanguage.c @ 506:998529b3e142

Added new top level menu for customization of views In the previous versions all menus were occupied by menu option. To indroduce the selection views for data visualization a new tab had to be added. The menu "Customize views" has been moded to the new tab but not yet removed from the previous one. In addition a view for selection of big font options has been added (including multilanguage strings and other infrastructure)
author Ideenmodellierer
date Sun, 30 Aug 2020 17:19:23 +0200
parents 0d2449e9d659
children 0a407cd48912
comparison
equal deleted inserted replaced
505:06b21f1e47a5 506:998529b3e142
1256 static uint8_t text_FR_ExtraDisplay[] = "Grand police"; 1256 static uint8_t text_FR_ExtraDisplay[] = "Grand police";
1257 static uint8_t text_IT_ExtraDisplay[] = "Caratteri grandi"; 1257 static uint8_t text_IT_ExtraDisplay[] = "Caratteri grandi";
1258 static uint8_t text_ES_ExtraDisplay[] = "Letras grandes"; 1258 static uint8_t text_ES_ExtraDisplay[] = "Letras grandes";
1259 1259
1260 // Menu SYS2 1260 // Menu SYS2
1261 #ifdef ENABLE_BIGFONT_VX
1262 static uint8_t text_EN_ExtraBigFont[] = "classic";
1263 static uint8_t text_DE_ExtraBigFont[] = "klassisch";
1264 static uint8_t text_FR_ExtraBigFont[] = "classic";
1265 static uint8_t text_IT_ExtraBigFont[] = "classic";
1266 static uint8_t text_ES_ExtraBigFont[] = "classic";
1267
1268 static uint8_t text_EN_ExtraBigFontV2[] = "V2";
1269 static uint8_t text_DE_ExtraBigFontV2[] = "V2";
1270 static uint8_t text_FR_ExtraBigFontV2[] = "V2";
1271 static uint8_t text_IT_ExtraBigFontV2[] = "V2";
1272 static uint8_t text_ES_ExtraBigFontV2[] = "V2";
1273
1274 #else
1275 static uint8_t text_EN_ExtraBigFont[] = "yes"; 1261 static uint8_t text_EN_ExtraBigFont[] = "yes";
1276 static uint8_t text_DE_ExtraBigFont[] = "ja"; 1262 static uint8_t text_DE_ExtraBigFont[] = "ja";
1277 static uint8_t text_FR_ExtraBigFont[] = "si"; 1263 static uint8_t text_FR_ExtraBigFont[] = "si";
1278 static uint8_t text_IT_ExtraBigFont[] = "si"; 1264 static uint8_t text_IT_ExtraBigFont[] = "si";
1279 static uint8_t text_ES_ExtraBigFont[] = "si"; 1265 static uint8_t text_ES_ExtraBigFont[] = "si";
1280 #endif
1281 1266
1282 // Menu SYS2 (future feature) 1267 // Menu SYS2 (future feature)
1283 static uint8_t text_EN_ExtraDecoGame[] = "Deco game"; 1268 static uint8_t text_EN_ExtraDecoGame[] = "Deco game";
1284 static uint8_t text_DE_ExtraDecoGame[] = "Deko-Spiel"; 1269 static uint8_t text_DE_ExtraDecoGame[] = "Deko-Spiel";
1285 static uint8_t text_FR_ExtraDecoGame[] = "Jeu déco"; 1270 static uint8_t text_FR_ExtraDecoGame[] = "Jeu déco";
1576 static uint8_t text_EN_FlipDisplay[] = "Flip display"; 1561 static uint8_t text_EN_FlipDisplay[] = "Flip display";
1577 static uint8_t text_DE_FlipDisplay[] = "Anzeige spiegeln"; 1562 static uint8_t text_DE_FlipDisplay[] = "Anzeige spiegeln";
1578 static uint8_t text_FR_FlipDisplay[] = ""; 1563 static uint8_t text_FR_FlipDisplay[] = "";
1579 static uint8_t text_IT_FlipDisplay[] = ""; 1564 static uint8_t text_IT_FlipDisplay[] = "";
1580 static uint8_t text_ES_FlipDisplay[] = ""; 1565 static uint8_t text_ES_FlipDisplay[] = "";
1566
1567 static uint8_t text_EN_SelectCustom[] = "Data views";
1568 static uint8_t text_DE_SelectCustom[] = "Auswahl Datenanzeige";
1569 static uint8_t text_FR_SelectCustom[] = "";
1570 static uint8_t text_IT_SelectCustom[] = "";
1571 static uint8_t text_ES_SelectCustom[] = "";
1572
1573 static uint8_t text_EN_SelectBigFont[] = "Bigfont data views";
1574 static uint8_t text_DE_SelectBigFont[] = "Grosschrift Daten";
1575 static uint8_t text_FR_SelectBigFont[] = "";
1576 static uint8_t text_IT_SelectBigFont[] = "";
1577 static uint8_t text_ES_SelectBigFont[] = "";
1578
1579 static uint8_t text_EN_ppo2Air[] = "PPO2 and active gas";
1580 static uint8_t text_DE_ppo2Air[] = "PPO2 und aktives Atemgas";
1581 static uint8_t text_FR_ppo2Air[] = "";
1582 static uint8_t text_IT_ppo2Air[] = "";
1583 static uint8_t text_ES_ppo2Air[] = "";
1584
1585 static uint8_t text_EN_Navigation[] = "Compass and stop watch";
1586 static uint8_t text_DE_Navigation[] = "Kompass und Stoppuhr";
1587 static uint8_t text_FR_Navigation[] = "";
1588 static uint8_t text_IT_Navigation[] = "";
1589 static uint8_t text_ES_Navigation[] = "";
1590
1591 static uint8_t text_EN_DepthData[] = "Average and max depth";
1592 static uint8_t text_DE_DepthData[] = "Mittlere und maximale Tiefe";
1593 static uint8_t text_FR_DepthData[] = "";
1594 static uint8_t text_IT_DepthData[] = "";
1595 static uint8_t text_ES_DepthData[] = "";
1581 1596
1582 /* Lookup Table -------------------------------------------------------------*/ 1597 /* Lookup Table -------------------------------------------------------------*/
1583 1598
1584 const tText text_array[] = 1599 const tText text_array[] =
1585 { 1600 {
1767 {(uint8_t)TXT2BYTE_DiveQuitQ, {text_EN_DiveQuitQ, text_DE_DiveQuitQ, text_FR_DiveQuitQ, text_IT_DiveQuitQ, text_ES_DiveQuitQ}}, 1782 {(uint8_t)TXT2BYTE_DiveQuitQ, {text_EN_DiveQuitQ, text_DE_DiveQuitQ, text_FR_DiveQuitQ, text_IT_DiveQuitQ, text_ES_DiveQuitQ}},
1768 {(uint8_t)TXT2BYTE_DiveBearingQ, {text_EN_DiveBearingQ, text_DE_DiveBearingQ, text_FR_DiveBearingQ, text_IT_DiveBearingQ, text_ES_DiveBearingQ}}, 1783 {(uint8_t)TXT2BYTE_DiveBearingQ, {text_EN_DiveBearingQ, text_DE_DiveBearingQ, text_FR_DiveBearingQ, text_IT_DiveBearingQ, text_ES_DiveBearingQ}},
1769 {(uint8_t)TXT2BYTE_DiveResetAvgQ, {text_EN_DiveResetAvgQ, text_DE_DiveResetAvgQ, text_FR_DiveResetAvgQ, text_IT_DiveResetAvgQ, text_ES_DiveResetAvgQ}}, 1784 {(uint8_t)TXT2BYTE_DiveResetAvgQ, {text_EN_DiveResetAvgQ, text_DE_DiveResetAvgQ, text_FR_DiveResetAvgQ, text_IT_DiveResetAvgQ, text_ES_DiveResetAvgQ}},
1770 {(uint8_t)TXT2BYTE_ExtraDisplay, {text_EN_ExtraDisplay, text_DE_ExtraDisplay, text_FR_ExtraDisplay, text_IT_ExtraDisplay, text_ES_ExtraDisplay}}, 1785 {(uint8_t)TXT2BYTE_ExtraDisplay, {text_EN_ExtraDisplay, text_DE_ExtraDisplay, text_FR_ExtraDisplay, text_IT_ExtraDisplay, text_ES_ExtraDisplay}},
1771 {(uint8_t)TXT2BYTE_ExtraBigFont, {text_EN_ExtraBigFont, text_DE_ExtraBigFont, text_FR_ExtraBigFont, text_IT_ExtraBigFont, text_ES_ExtraBigFont}}, 1786 {(uint8_t)TXT2BYTE_ExtraBigFont, {text_EN_ExtraBigFont, text_DE_ExtraBigFont, text_FR_ExtraBigFont, text_IT_ExtraBigFont, text_ES_ExtraBigFont}},
1772 #ifdef ENABLE_BIGFONT_VX
1773 {(uint8_t)TXT2BYTE_ExtraBigFontV2, {text_EN_ExtraBigFontV2, text_DE_ExtraBigFontV2, text_FR_ExtraBigFontV2, text_IT_ExtraBigFontV2, text_ES_ExtraBigFontV2}},
1774 #endif
1775 {(uint8_t)TXT2BYTE_ExtraDecoGame, {text_EN_ExtraDecoGame, text_DE_ExtraDecoGame, text_FR_ExtraDecoGame, text_IT_ExtraDecoGame, text_ES_ExtraDecoGame}}, 1787 {(uint8_t)TXT2BYTE_ExtraDecoGame, {text_EN_ExtraDecoGame, text_DE_ExtraDecoGame, text_FR_ExtraDecoGame, text_IT_ExtraDecoGame, text_ES_ExtraDecoGame}},
1776 {(uint8_t)TXT2BYTE_ExtraNone, {text_EN_ExtraNone, text_DE_ExtraNone, text_FR_ExtraNone, text_IT_ExtraNone, text_ES_ExtraNone}}, 1788 {(uint8_t)TXT2BYTE_ExtraNone, {text_EN_ExtraNone, text_DE_ExtraNone, text_FR_ExtraNone, text_IT_ExtraNone, text_ES_ExtraNone}},
1777 {(uint8_t)TXT2BYTE_MotionCtrl, {text_EN_MotionCtrl, text_DE_MotionCtrl, text_FR_MotionCtrl, text_IT_MotionCtrl, text_ES_MotionCtrl}}, 1789 {(uint8_t)TXT2BYTE_MotionCtrl, {text_EN_MotionCtrl, text_DE_MotionCtrl, text_FR_MotionCtrl, text_IT_MotionCtrl, text_ES_MotionCtrl}},
1778 {(uint8_t)TXT2BYTE_MoCtrlNone, {text_EN_MoCtrlNone, text_DE_MoCtrlNone, text_FR_MoCtrlNone, text_IT_MoCtrlNone, text_ES_MoCtrlNone}}, 1790 {(uint8_t)TXT2BYTE_MoCtrlNone, {text_EN_MoCtrlNone, text_DE_MoCtrlNone, text_FR_MoCtrlNone, text_IT_MoCtrlNone, text_ES_MoCtrlNone}},
1779 {(uint8_t)TXT2BYTE_MoCtrlPitch, {text_EN_MoCtrlPitch, text_DE_MoCtrlPitch, text_FR_MoCtrlPitch, text_IT_MoCtrlPitch, text_ES_MoCtrlPitch}}, 1791 {(uint8_t)TXT2BYTE_MoCtrlPitch, {text_EN_MoCtrlPitch, text_DE_MoCtrlPitch, text_FR_MoCtrlPitch, text_IT_MoCtrlPitch, text_ES_MoCtrlPitch}},
1800 {(uint8_t)TXT2BYTE_ApneaTotal, {text_EN_ApneaTotal, text_DE_ApneaTotal, text_FR_ApneaTotal, text_IT_ApneaTotal, text_ES_ApneaTotal}}, 1812 {(uint8_t)TXT2BYTE_ApneaTotal, {text_EN_ApneaTotal, text_DE_ApneaTotal, text_FR_ApneaTotal, text_IT_ApneaTotal, text_ES_ApneaTotal}},
1801 {(uint8_t)TXT2BYTE_ApneaSurface, {text_EN_ApneaSurface, text_DE_ApneaSurface, text_FR_ApneaSurface, text_IT_ApneaSurface, text_ES_ApneaSurface}}, 1813 {(uint8_t)TXT2BYTE_ApneaSurface, {text_EN_ApneaSurface, text_DE_ApneaSurface, text_FR_ApneaSurface, text_IT_ApneaSurface, text_ES_ApneaSurface}},
1802 1814
1803 {(uint8_t)TXT2BYTE_FLIPDISPLAY, {text_EN_FlipDisplay, text_DE_FlipDisplay, text_FR_FlipDisplay, text_IT_FlipDisplay, text_ES_FlipDisplay}}, 1815 {(uint8_t)TXT2BYTE_FLIPDISPLAY, {text_EN_FlipDisplay, text_DE_FlipDisplay, text_FR_FlipDisplay, text_IT_FlipDisplay, text_ES_FlipDisplay}},
1804 1816
1817 {(uint8_t)TXT2BYTE_SelectCustomviews,{text_EN_SelectCustom, text_DE_SelectCustom, text_FR_SelectCustom, text_IT_SelectCustom, text_ES_SelectCustom}},
1818 {(uint8_t)TXT2BYTE_SelectBigFont, {text_EN_SelectBigFont, text_DE_SelectBigFont, text_FR_SelectBigFont, text_IT_SelectBigFont, text_ES_SelectBigFont}},
1819 {(uint8_t)TXT2BYTE_MaxDepth, {text_EN_MaxDepth, text_DE_MaxDepth, text_FR_MaxDepth, text_IT_MaxDepth, text_ES_MaxDepth}},
1820 {(uint8_t)TXT2BYTE_Stopwatch, {text_EN_Stopwatch, text_DE_Stopwatch, text_FR_Stopwatch, text_IT_Stopwatch, text_ES_Stopwatch}},
1821 {(uint8_t)TXT2BYTE_TTS, {text_EN_TTS, text_DE_TTS, text_FR_TTS, text_IT_TTS, text_ES_TTS}},
1822 {(uint8_t)TXT2BYTE_ppoNair, {text_EN_ppo2Air, text_DE_ppo2Air, text_FR_ppo2Air, text_IT_ppo2Air, text_ES_ppo2Air}},
1823 {(uint8_t)TXT2BYTE_Navigation, {text_EN_Navigation, text_DE_Navigation, text_FR_Navigation, text_IT_Navigation, text_ES_Navigation}},
1824 {(uint8_t)TXT2BYTE_DepthData, {text_EN_DepthData, text_DE_DepthData, text_FR_DepthData, text_IT_DepthData, text_ES_DepthData}},
1825
1826
1805 }; 1827 };