Simplify timetable leftover ticks string
This commit is contained in:
@@ -1620,7 +1620,7 @@ STR_TIMETABLE_MINUTES :{COMMA}{NBSP}mi
|
||||
STR_TIMETABLE_HOURS :{COMMA}{NBSP}hour{P "" s}
|
||||
STR_TIMETABLE_HOURS_MINUTES :{COMMA}{NBSP}hour{P "" s} and {COMMA}{NBSP}minute{P "" s}
|
||||
|
||||
STR_TIMETABLE_LEFTOVER_TICKS :{STRING1} + {COMMA} tick{P "" s}
|
||||
STR_TIMETABLE_LEFTOVER_TICKS : + {COMMA} tick{P "" s}
|
||||
|
||||
STR_TIMETABLE_MINUTES_LONG :{COMMA}{NBSP}minute{P "" s} ({STRING2})
|
||||
STR_TIMETABLE_AUTOMATE :{BLACK}Automate
|
||||
|
@@ -1576,7 +1576,7 @@ STR_TIMETABLE_MINUTES :{COMMA}{NBSP}mi
|
||||
STR_TIMETABLE_HOURS :{COMMA}{NBSP}hora{P "" s}
|
||||
STR_TIMETABLE_HOURS_MINUTES :{COMMA}{NBSP}hora{P "" s} e {COMMA}{NBSP}minuto{P "" s}
|
||||
|
||||
STR_TIMETABLE_LEFTOVER_TICKS :{STRING} + {COMMA} tick{P "" s}
|
||||
STR_TIMETABLE_LEFTOVER_TICKS : + {COMMA} tick{P "" s}
|
||||
|
||||
STR_TIMETABLE_MINUTES_LONG :{COMMA}{NBSP}minuto{P "" s} ({STRING})
|
||||
STR_TIMETABLE_AUTOMATE :{BLACK}Automatizar
|
||||
|
@@ -1469,7 +1469,7 @@ STR_TIMETABLE_MINUTES :{COMMA}{NBSP}Mi
|
||||
STR_TIMETABLE_HOURS :{COMMA}{NBSP}Stunde{P "" n}
|
||||
STR_TIMETABLE_HOURS_MINUTES :{COMMA}{NBSP}Stunde{P "" n} und {COMMA}{NBSP}Minute{P "" n}
|
||||
|
||||
STR_TIMETABLE_LEFTOVER_TICKS :{STRING} + {COMMA} Tick{P "" s}
|
||||
STR_TIMETABLE_LEFTOVER_TICKS : + {COMMA} Tick{P "" s}
|
||||
|
||||
STR_TIMETABLE_MINUTES_LONG :{COMMA}{NBSP}Minute{P "" n} ({STRING})
|
||||
STR_TIMETABLE_AUTOMATE :{BLACK}Automatisieren
|
||||
|
@@ -1581,7 +1581,7 @@ STR_TIMETABLE_MINUTES :{COMMA}분
|
||||
STR_TIMETABLE_HOURS :{COMMA}시간
|
||||
STR_TIMETABLE_HOURS_MINUTES :{COMMA}시간 {COMMA}분
|
||||
|
||||
STR_TIMETABLE_LEFTOVER_TICKS :{STRING} + {COMMA} 틱
|
||||
STR_TIMETABLE_LEFTOVER_TICKS : + {COMMA} 틱
|
||||
|
||||
STR_TIMETABLE_MINUTES_LONG :{COMMA}분 ({STRING})
|
||||
STR_TIMETABLE_AUTOMATE :{BLACK}자동
|
||||
|
@@ -1550,7 +1550,7 @@ STR_TIMETABLE_MINUTES :{COMMA}{NBSP}
|
||||
STR_TIMETABLE_HOURS :{COMMA}{NBSP}时
|
||||
STR_TIMETABLE_HOURS_MINUTES :{COMMA}{NBSP}时{COMMA}{NBSP}分
|
||||
|
||||
STR_TIMETABLE_LEFTOVER_TICKS :{STRING} + {COMMA} 刻
|
||||
STR_TIMETABLE_LEFTOVER_TICKS : + {COMMA} 刻
|
||||
|
||||
STR_TIMETABLE_MINUTES_LONG :{COMMA}{NBSP}分({STRING})
|
||||
STR_TIMETABLE_AUTOMATE :{BLACK}自动
|
||||
|
@@ -1596,18 +1596,16 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
||||
};
|
||||
StringParameters tmp_params(args_array);
|
||||
buff = FormatString(buff, GetStringPtr(STR_TIMETABLE_MINUTES_LONG), &tmp_params, last);
|
||||
if (leftover == 0) break;
|
||||
str = STR_EMPTY;
|
||||
}
|
||||
if (leftover != 0) {
|
||||
int64 args_array[3] = { str, units, leftover };
|
||||
StringParameters tmp_params(args_array);
|
||||
buff = FormatString(buff, GetStringPtr(STR_TIMETABLE_LEFTOVER_TICKS), &tmp_params, last);
|
||||
} else {
|
||||
int64 args_array[1] = { units };
|
||||
StringParameters tmp_params(args_array);
|
||||
buff = FormatString(buff, GetStringPtr(str), &tmp_params, last);
|
||||
}
|
||||
if (leftover != 0) {
|
||||
int64 args_array[1] = { leftover };
|
||||
StringParameters tmp_params(args_array);
|
||||
buff = FormatString(buff, GetStringPtr(STR_TIMETABLE_LEFTOVER_TICKS), &tmp_params, last);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user