mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-26 19:23:46 +08:00
fix(ebike): add guards to the ebike demo translations (#7319)
This commit is contained in:
parent
2d06699aa0
commit
9eb0ed1505
@ -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*/
|
||||
|
@ -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" */
|
||||
|
Loading…
Reference in New Issue
Block a user