This commit is contained in:
iceman1001 2024-03-16 19:56:27 +01:00
commit 59bc927698
4 changed files with 40 additions and 38 deletions

View file

@ -106,8 +106,8 @@ static void showBanner_logo(LogoMode mode) {
}
static uint8_t detect_current_lang(void) {
#ifndef _WIN32
const char* lang = setlocale(LC_ALL, "");
#ifndef _WIN32
const char *lang = setlocale(LC_ALL, "");
if (lang == NULL) {
return 1;
}
@ -117,11 +117,11 @@ static uint8_t detect_current_lang(void) {
if (memcmp(lang, "es", 2) == 0) {
return 3;
}
#endif
#endif
return 1;
}
static const char* get_quote(void) {
static const char *get_quote(void) {
const char *quotes_en[] = {
"Fund creativity, empower dreams",
@ -193,9 +193,11 @@ static const char* get_quote(void) {
int r = rand() % ARRAYLEN(quotes_en);
uint8_t lang = detect_current_lang();
switch(lang) {
case 2: return quotes_fr[r];
case 3: return quotes_es[r];
switch (lang) {
case 2:
return quotes_fr[r];
case 3:
return quotes_es[r];
case 1:
default:
return quotes_en[r];

View file

@ -12568,6 +12568,6 @@
"metadata": {
"commands_extracted": 725,
"extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2024-03-14T10:14:29"
"extracted_on": "2024-03-16T18:47:48"
}
}