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:
@@ -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;
|
||||
|
||||
@@ -104,8 +104,6 @@ void menuModelCurvesAll(event_t event)
|
||||
}
|
||||
}
|
||||
|
||||
static const char* _curve_types[] = {"Diff","Expo","Func","Cstm"};
|
||||
|
||||
void editCurveRef(coord_t x, coord_t y, CurveRef & curve, event_t event, LcdFlags flags)
|
||||
{
|
||||
coord_t x1 = x;
|
||||
@@ -127,7 +125,7 @@ void editCurveRef(coord_t x, coord_t y, CurveRef & curve, event_t event, LcdFlag
|
||||
flags1 = 0;
|
||||
}
|
||||
|
||||
lcdDrawTextAtIndex(x1, y, _curve_types, curve.type, flags1);
|
||||
lcdDrawTextAtIndex(x1, y, STR_VCURVETYPE, curve.type, flags1);
|
||||
|
||||
if (active && menuHorizontalPosition==0) {
|
||||
CHECK_INCDEC_MODELVAR_ZERO(event, curve.type, CURVE_REF_CUSTOM);
|
||||
|
||||
Reference in New Issue
Block a user