s = _("^1Intermediate 1 (+15.42)");
str_pos = pos + vec2(0.5 * (mySize.x - stringwidth(s, true, '1 1 0' * 0.2 * mySize.y)), 0.6 * mySize.y);
drawcolorcodedstring(str_pos, s, '1 1 0' * 0.2 * mySize.y, panel_fg_alpha, DRAWFLAG_NORMAL);
- s = sprintf(_("^1PENALTY: %.1f (%s)"), 2, "missing a checkpoint");
+ s = sprintf(_("^1PENALTY: %.1f (%s)"), 2, _("missing a checkpoint"));
str_pos = pos + vec2(0.5 * (mySize.x - stringwidth(s, true, '1 1 0' * 0.2 * mySize.y)), 0.8 * mySize.y);
drawcolorcodedstring(str_pos, s, '1 1 0' * 0.2 * mySize.y, panel_fg_alpha, DRAWFLAG_NORMAL);
}
case RACE_NET_PENALTY_QUALIFYING:
race_penaltyeventtime = time;
race_penaltytime = ReadShort();
- strcpy(race_penaltyreason, ReadString());
+ string reason = ReadString();
+ if (reason == "missing a checkpoint")
+ reason = _("missing a checkpoint");
+ strcpy(race_penaltyreason, reason);
if (b == RACE_NET_PENALTY_QUALIFYING)
race_penaltyaccumulator += race_penaltytime;
break;