chore: Translated curve types (#3319)

* Added translation of curve types

Added translation string STR_VCURVETYPE

* Added STR_VCURVETYPE

* Added translation of curve types

* Added translation of curve types

* Added translation of curve type

Added 
#define TR_VCURVETYPE  "Diff","Expo","Func","Cstm" 
for translations of curve types

* DA translated

* CN translated

* TW translated

* IT translated

* Update da.h

* DE translated

* FR translated

* CZ translated

* chore: Remove trailing whitespace
This commit is contained in:
ulfhedlund
2023-03-08 11:53:14 +10:00
committed by GitHub
parent 42fb0eccf7
commit a416548ecc
19 changed files with 58 additions and 58 deletions
+1 -3
View File
@@ -27,8 +27,6 @@
#define SET_DIRTY() storageDirty(EE_MODEL)
static const char* _curve_type[] = {"Diff", "Expo", "Func", "Cstm"};
void CurveParam::LongPressHandler(void* data)
{
int8_t* value = (int8_t*)data;
@@ -55,7 +53,7 @@ CurveParam::CurveParam(Window* parent, const rect_t& rect, CurveRef* ref,
lv_obj_set_style_flex_cross_place(lvobj, LV_FLEX_ALIGN_CENTER, 0);
lv_obj_set_size(lvobj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
new Choice(this, rect_t{}, _curve_type, 0, CURVE_REF_CUSTOM,
new Choice(this, rect_t{}, STR_VCURVETYPE, 0, CURVE_REF_CUSTOM,
GET_DEFAULT(ref->type), [=](int32_t newValue) {
ref->type = newValue;
ref->value = 0;