Do not use localize on server machine

These were resulting in sloppy mixed language sentences.

The server language never changes, so localize should not be used server
side, unless complete translations are added for all logs, which is not
worth the effort. Only admins see them, unlike client side strings which
are seen by everyone.
This commit is contained in:
ebayShopper
2017-11-05 15:05:59 -05:00
parent 5a5323bdd7
commit f2360a9cd8
5 changed files with 44 additions and 16 deletions

View File

@@ -126,9 +126,9 @@ _fnc_lockCode = {
_color = "";
_code = _code - 10000;
if (_code <= 99) then {_color = localize "STR_TEAM_RED";};
if (_code >= 100 && _code <= 199) then {_color = localize "STR_TEAM_GREEN"; _code = _code - 100;};
if (_code >= 200) then {_color = localize "STR_TEAM_BLUE"; _code = _code - 200;};
if (_code <= 99) then {_color = "Red";};
if (_code >= 100 && _code <= 199) then {_color = "Green"; _code = _code - 100;};
if (_code >= 200) then {_color = "Blue"; _code = _code - 200;};
if (_code <= 9) then {_code = format["0%1", _code];};
_code = format ["%1%2",_color,_code];