tcMenu
Loading...
Searching...
No Matches
language_select.h
Go to the documentation of this file.
1
6#ifndef TCLIBRARYDEV_LANGUAGE_SELECT_H
7#define TCLIBRARYDEV_LANGUAGE_SELECT_H
8
9//
10// The highest precedence is to add `project_locale.h` if your build chain supports it. English is the default
11//
12// PlatformIO/full build systems - for French ASCII as an example -DTC_LOCALE_FR -DTC_LOCAL_ASCII
13//
14// If you're using original Arduino IDE you can force a definition of TC_LOCALE here. Commented out example below.
15// For example if we wanted french with only ASCII (32..126)
16//
17// #define TC_LOCALE_FR
18// #define TC_LOCAL_ASCII
19//
20
21
22#if __has_include(<project_locale.h>)
23# include <project_locale.h>
24#elif defined(TC_LOCALE_FR) || defined(TC_LOCALE_FR_BE) \
25 || defined(TC_LOCALE_FR_CA) || defined(TC_LOCALE_FR_FR) \
26 || defined(TC_LOCALE_FR_LU) || defined(TC_LOCALE_FR_CH)
27#if defined(TC_LOCAL_ASCII)
28# include "language_fr_ascii.h"
29#else
30# include "language_fr.h"
31#endif // use ASCII
32#elif defined(TC_LOCALE_DE) || defined(TC_LOCALE_DE_AT) \
33 || defined(TC_LOCALE_DE_DE) || defined(TC_LOCALE_DE_LU) \
34 || defined(TC_LOCALE_DE_CH)
35#if defined(TC_LOCAL_ASCII)
36# include "language_de_ascii.h"
37#else
38# include "language_de.h"
39#endif // use ASCII
40#elif defined(TC_LOCALE_SK) || defined(TC_LOCALE_SK_SK)
41#if defined(TC_LOCAL_ASCII)
42# include "language_sk_ascii.h"
43#else
44# include "language_sk.h"
45#endif // use ASCII
46#elif defined(TC_LOCALE_CS) || defined(TC_LOCALE_CS_CZ)
47#if defined(TC_LOCAL_ASCII)
48# include "language_cs_ascii.h"
49#else
50# include "language_cs.h"
51#endif // use ASCII
52//add ukrainian language as uk
53#elif defined(TC_LOCALE_UK) || defined(TC_LOCALE_UK_UA)
54#if defined(TC_LOCAL_ASCII)
55# include "language_uk_ascii.h"
56#else
57# include "language_uk.h"
58#endif
59#else
60# include "language_en.h"
61#endif
62
63#endif //TCLIBRARYDEV_LANGUAGE_SELECT_H
Never include directly; contains the Czech language text for tcMenu text, controlled by TC_LOCALE.
Never include directly; contains the Czech language text for tcMenu text (ASCII only),...
Never include directly; contains the German language text for tcMenu text, controlled by TC_LOCALE.
Never include directly; contains the German language text for tcMenu text (ASCII only),...
Never include directly; contains the English language text for tcMenu text, controlled by TC_LOCALE,...
Never include directly; contains the French language text for tcMenu text, controlled by TC_LOCALE.
Never include directly; contains the Slovak language text for tcMenu text, controlled by TC_LOCALE.
Never include directly; contains the Slovak language text for tcMenu text (ASCII only),...
Ніколи не включайте безпосередньо; містить англійський текст для тексту tcMenu, керованого TC_LOCALE,...