fix(ebike): add guards to the ebike demo translations (#7319)

This commit is contained in:
Gabor Kiss-Vamosi 2024-11-18 12:21:17 +01:00 committed by GitHub
parent 2d06699aa0
commit 9eb0ed1505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#include "./lv_i18n.h"
#include "../../../src/stdlib/lv_string.h"
#if LV_USE_DEMO_EBIKE
/**
* Define plural operands
@ -298,3 +299,5 @@ const char * lv_i18n_get_current_locale(void)
if(!current_lang) return NULL;
return current_lang->locale_name;
}
#endif /*#if LV_USE_DEMO_EBIKE*/

View File

@ -6,6 +6,7 @@ extern "C" {
#endif
#include "../../../src/lv_conf_internal.h"
#if LV_USE_DEMO_EBIKE
#include LV_STDINT_INCLUDE
@ -78,6 +79,7 @@ void __lv_i18n_reset(void);
#define _(text) lv_i18n_get_text(text)
#define _p(text, num) lv_i18n_get_text_plural(text, num)
#endif /*LV_USE_DEMO_EBIKE*/
#ifdef __cplusplus
} /* extern "C" */