mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user