mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 01:33:59 +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 "./lv_i18n.h"
|
||||||
#include "../../../src/stdlib/lv_string.h"
|
#include "../../../src/stdlib/lv_string.h"
|
||||||
|
|
||||||
|
#if LV_USE_DEMO_EBIKE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define plural operands
|
* Define plural operands
|
||||||
@ -298,3 +299,5 @@ const char * lv_i18n_get_current_locale(void)
|
|||||||
if(!current_lang) return NULL;
|
if(!current_lang) return NULL;
|
||||||
return current_lang->locale_name;
|
return current_lang->locale_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /*#if LV_USE_DEMO_EBIKE*/
|
||||||
|
@ -6,6 +6,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../../src/lv_conf_internal.h"
|
#include "../../../src/lv_conf_internal.h"
|
||||||
|
#if LV_USE_DEMO_EBIKE
|
||||||
|
|
||||||
#include LV_STDINT_INCLUDE
|
#include LV_STDINT_INCLUDE
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ void __lv_i18n_reset(void);
|
|||||||
#define _(text) lv_i18n_get_text(text)
|
#define _(text) lv_i18n_get_text(text)
|
||||||
#define _p(text, num) lv_i18n_get_text_plural(text, num)
|
#define _p(text, num) lv_i18n_get_text_plural(text, num)
|
||||||
|
|
||||||
|
#endif /*LV_USE_DEMO_EBIKE*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
Loading…
Reference in New Issue
Block a user