mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
a couple localization updates (#1690)
* a couple localization updates * fix merge conflicts * fix * fixes
This commit is contained in:
@@ -90,6 +90,6 @@ if ((_isowner select 0 )) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
} count _findNearestObjects;
|
} count _findNearestObjects;
|
||||||
cutText [format["Take Ownership: %1 objects ownership changed.",_changecount], "PLAIN DOWN"];
|
format[localize "STR_EPOCH_APLOTFORLIFE_TAKE_OWNERSHIP",_changecount] call dayz_rollingMessages;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ _playerUID = [player] call FNC_GetPlayerUID;
|
|||||||
_config = configFile >> "CfgMagazines" >> _item;
|
_config = configFile >> "CfgMagazines" >> _item;
|
||||||
_text = getText (_config >> "displayName");
|
_text = getText (_config >> "displayName");
|
||||||
|
|
||||||
if (!_hastentitem) exitWith {cutText [format[(localize "str_player_31"),_text,"pitch"] , "PLAIN DOWN"]};
|
if (!_hastentitem) exitWith format[localize "str_player_31",_text,"pitch"] call dayz_rollingMessages;
|
||||||
|
|
||||||
//blocked
|
//blocked
|
||||||
if (["concrete",dayz_surfaceType] call fnc_inString) then { _isOk = true; diag_log ("surface concrete"); };
|
if (["concrete",dayz_surfaceType] call fnc_inString) then { _isOk = true; diag_log ("surface concrete"); };
|
||||||
@@ -67,8 +67,8 @@ if (!_isOk) then {
|
|||||||
PVDZE_obj_Publish = [dayz_characterID,_object,[_dir,_location, _playerUID],_classname];
|
PVDZE_obj_Publish = [dayz_characterID,_object,[_dir,_location, _playerUID],_classname];
|
||||||
publicVariableServer "PVDZE_obj_Publish";
|
publicVariableServer "PVDZE_obj_Publish";
|
||||||
|
|
||||||
cutText [localize "str_success_tent_pitch", "PLAIN DOWN"];
|
localize "str_success_tent_pitch" call dayz_rollingMessages;
|
||||||
} else {
|
} else {
|
||||||
cutText [localize "str_fail_tent_pitch", "PLAIN DOWN"];
|
localize "str_fail_tent_pitch" call dayz_rollingMessages;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -217,14 +217,14 @@ if(_enoughMoney) then {
|
|||||||
if (_success) then {
|
if (_success) then {
|
||||||
systemChat format[localize "STR_EPOCH_TRADE_SUCCESS", _priceToBuy];
|
systemChat format[localize "STR_EPOCH_TRADE_SUCCESS", _priceToBuy];
|
||||||
} else {
|
} else {
|
||||||
systemchat localize "STR_EPOCH_TRADE_DEBUG";
|
systemChat localize "STR_EPOCH_TRADE_DEBUG";
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
_success = [player,_priceToBuy] call SC_fnc_removeCoins;
|
_success = [player,_priceToBuy] call SC_fnc_removeCoins;
|
||||||
if (_success) then {
|
if (_success) then {
|
||||||
systemChat format[localize "STR_EPOCH_TRADE_SUCCESS_COINS", _priceToBuy, CurrencyName];
|
systemChat format[localize "STR_EPOCH_TRADE_SUCCESS_COINS", _priceToBuy, CurrencyName];
|
||||||
} else {
|
} else {
|
||||||
systemchat localize "STR_EPOCH_TRADE_DEBUG";
|
systemChat localize "STR_EPOCH_TRADE_DEBUG";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -12,6 +12,6 @@ if(!isNull _vehicle)then{
|
|||||||
Z_vehicle = _vehicle;
|
Z_vehicle = _vehicle;
|
||||||
systemChat format[localize "STR_EPOCH_TRADE_SELECTED",typeOf Z_vehicle];
|
systemChat format[localize "STR_EPOCH_TRADE_SELECTED",typeOf Z_vehicle];
|
||||||
_result = true;
|
_result = true;
|
||||||
[format[localize "STR_EPOCH_BUYING_IN", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
[format[localize "STR_EPOCH_TRADE_BUYING_IN", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
||||||
};
|
};
|
||||||
_result
|
_result
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
private ["_missing","_missingQty","_proceed","_itemIn","_countIn","_qty","_num_removed","_uniqueID","_removed","_removed_total","_tobe_removed_total","_obj","_objectID","_objectUID","_classname","_location","_dir","_objectCharacterID","_object","_temp_removed_array","_textMissing","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_itemText","_option"];
|
private ["_missing","_missingQty","_proceed","_itemIn","_countIn","_qty","_num_removed","_uniqueID","_removed","_removed_total","_tobe_removed_total","_obj","_objectID","_objectUID","_classname","_location","_dir","_objectCharacterID","_object","_temp_removed_array","_textMissing","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_itemText","_option"];
|
||||||
disableSerialization;
|
disableSerialization;
|
||||||
|
|
||||||
if (DZE_ActionInProgress) exitWith { cutText [(localize "STR_EPOCH_ACTIONS_2") , "PLAIN DOWN"]; };
|
if (DZE_ActionInProgress) exitWith {localize "STR_EPOCH_ACTIONS_2" call dayz_rollingMessages;};
|
||||||
DZE_ActionInProgress = true;
|
DZE_ActionInProgress = true;
|
||||||
|
|
||||||
player removeAction s_player_maintain_area;
|
player removeAction s_player_maintain_area;
|
||||||
@@ -27,10 +27,10 @@ _count = count _objects;
|
|||||||
|
|
||||||
if (_count == 0) exitWith {
|
if (_count == 0) exitWith {
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
||||||
_result = format["Objects to maintain: %1" , _count];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_MAINTAIN_OBJECTS", _count];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
||||||
_result = format["No money needed.", " "];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_NO_MONEY_NEEDED", " "];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
DZE_ActionInProgress = false;
|
DZE_ActionInProgress = false;
|
||||||
s_player_maintain_area = -1;
|
s_player_maintain_area = -1;
|
||||||
@@ -98,28 +98,28 @@ switch _option do {
|
|||||||
|
|
||||||
// all required items removed from player gear
|
// all required items removed from player gear
|
||||||
if (_tobe_removed_total == _removed_total) then {
|
if (_tobe_removed_total == _removed_total) then {
|
||||||
cutText [format[(localize "STR_EPOCH_ACTIONS_4"), _count], "PLAIN DOWN", 5];
|
format[localize "STR_EPOCH_ACTIONS_4", _count] call dayz_rollingMessages;
|
||||||
PVDZE_maintainArea = [player,1,_target];
|
PVDZE_maintainArea = [player,1,_target];
|
||||||
publicVariableServer "PVDZE_maintainArea";
|
publicVariableServer "PVDZE_maintainArea";
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
||||||
_result = format["SUCCESS : Objects maintained: %1" , _count];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_OBJECTS_MAINTAINED_SUCCESS", _count];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
||||||
_result = format["SUCCESS : Price maintained: %1 %2 !" , (_requirements select 0) select 1, (_requirements select 0) select 0];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_PRICE_MAINTAINED_SUCCESS", (_requirements select 0) select 1, (_requirements select 0) select 0];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
} else {
|
} else {
|
||||||
{player addMagazine _x;} count _temp_removed_array;
|
{player addMagazine _x;} count _temp_removed_array;
|
||||||
cutText [format[(localize "STR_EPOCH_ACTIONS_5"),_removed_total,_tobe_removed_total], "PLAIN DOWN"];
|
format[localize "STR_EPOCH_ACTIONS_5",_removed_total,_tobe_removed_total] call dayz_rollingMessages;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
_textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName");
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
||||||
_result = format["FAILED : Objects maintained: 0" , _count];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_OBJECTS_MAINTAINED_FAILED", _count];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
||||||
_result = format["FAILED : Money needed: %1 %2 !" , (_requirements select 0) select 1, (_requirements select 0) select 0];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_MONEY_NEEDED_FAILED", (_requirements select 0) select 1, (_requirements select 0) select 0];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
cutText [format[(localize "STR_EPOCH_ACTIONS_6"), _missingQty, _textMissing], "PLAIN DOWN"];
|
format[localize "STR_EPOCH_ACTIONS_6", _missingQty, _textMissing] call dayz_rollingMessages;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
case "preview": {
|
case "preview": {
|
||||||
@@ -129,16 +129,16 @@ switch _option do {
|
|||||||
_countIn = _x select 1;
|
_countIn = _x select 1;
|
||||||
_itemText = getText(configFile >> "CfgMagazines" >> _itemIn >> "displayName");
|
_itemText = getText(configFile >> "CfgMagazines" >> _itemIn >> "displayName");
|
||||||
if (_cost != "") then {
|
if (_cost != "") then {
|
||||||
_cost = _cost + " and ";
|
_cost = _cost + " and "; //TODO: localize?
|
||||||
};
|
};
|
||||||
_cost = _cost + (str(_countIn) + " of " + _itemText);
|
_cost = _cost + (str(_countIn) + " of " + _itemText); //TODO: localize?
|
||||||
} count _requirements;
|
} count _requirements;
|
||||||
cutText [format[(localize "STR_EPOCH_ACTIONS_7"), _count, _cost], "PLAIN DOWN"];
|
format[localize "STR_EPOCH_ACTIONS_7", _count, _cost] call dayz_rollingMessages;
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7012);
|
||||||
_result = format["Objects to maintain: %1" , _count];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_MAINTAIN_OBJECTS", _count];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7013);
|
||||||
_result = format["Price to maintain: %1 %2" , (_requirements select 0) select 1, (_requirements select 0) select 0];
|
_result = format[localize "STR_EPOCH_PLOTMANAGEMENT_MAINTAIN_PRICE", (_requirements select 0) select 1, (_requirements select 0) select 0];
|
||||||
_ctrl ctrlSetText _result;
|
_ctrl ctrlSetText _result;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ _thePlot = _plots select 0;
|
|||||||
_friends = _thePlot getVariable ["plotfriends",[]];
|
_friends = _thePlot getVariable ["plotfriends",[]];
|
||||||
_inList = false;
|
_inList = false;
|
||||||
{ if ((_x select 0) == (_toAdd select 0)) exitWith { _inList = true; }; } count _friends;
|
{ if ((_x select 0) == (_toAdd select 0)) exitWith { _inList = true; }; } count _friends;
|
||||||
if (_inList) exitWith { cutText ["Already on the list", "PLAIN DOWN"]; };
|
if (_inList) exitWith {localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_ALREADYONTHELIST" call dayz_rollingMessages};
|
||||||
if ((count _friends) == DZE_MaxPlotFriends) exitWith { cutText [format["Only %1 friends allowed", DZE_MaxPlotFriends], "PLAIN DOWN"]; };
|
if ((count _friends) == DZE_MaxPlotFriends) exitWith { format[localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_FRIENDLIMIT", DZE_MaxPlotFriends] call dayz_rollingMessages;};
|
||||||
_friends set [(count _friends), [_toAdd]];;
|
_friends set [(count _friends), [_toAdd]];;
|
||||||
_thePlot setVariable ["plotfriends", _friends, true];
|
_thePlot setVariable ["plotfriends", _friends, true];
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user