diff --git a/SQF/dayz_code/actions/ammo.sqf b/SQF/dayz_code/actions/ammo.sqf index cdad0baa9..478ef4f5e 100644 --- a/SQF/dayz_code/actions/ammo.sqf +++ b/SQF/dayz_code/actions/ammo.sqf @@ -19,7 +19,7 @@ if (_ammo != "") then { _vehicle addMagazineTurret [_ammo,_turret]; player removeMagazine _ammo; - cutText [format["You have successfully loaded %1 ammunition.",_ammoType], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_127"),_ammoType], "PLAIN DOWN"]; } else { - cutText [format["You need %1 type of ammo to do this.",_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_128"),_text], "PLAIN DOWN"]; }; \ No newline at end of file diff --git a/SQF/dayz_code/actions/cook.sqf b/SQF/dayz_code/actions/cook.sqf index 7a36e3825..eb8ddb121 100644 --- a/SQF/dayz_code/actions/cook.sqf +++ b/SQF/dayz_code/actions/cook.sqf @@ -22,7 +22,7 @@ _cookedmeat = meatcooked; _qty = {_x == _meat} count magazines player; - cutText [format["Started cooking %1",_textraw], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_129"),_textraw], "PLAIN DOWN"]; player playActionNow "Medic"; @@ -71,7 +71,7 @@ _cookedmeat = meatcooked; player playActionNow "stop"; }; - cutText [format["Canceled cooking %1",_textraw], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_130"),_textraw], "PLAIN DOWN"]; }; }; } forEach _rawmeat; diff --git a/SQF/dayz_code/actions/fill_nearestVehicle.sqf b/SQF/dayz_code/actions/fill_nearestVehicle.sqf index 506717937..daef8314d 100644 --- a/SQF/dayz_code/actions/fill_nearestVehicle.sqf +++ b/SQF/dayz_code/actions/fill_nearestVehicle.sqf @@ -45,7 +45,7 @@ if(_IsNearVehicle >= 1) then { // qty to add per loop _canSize = (_capacity / 10); - cutText [format["Filling up %1, move to cancel.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_131"),_nameText], "PLAIN DOWN"]; // alert zombies [player,20,true,(getPosATL player)] spawn player_alertZombies; @@ -125,7 +125,7 @@ if(_IsNearVehicle >= 1) then { // Play sound [player,"refuel",0,false] call dayz_zombieSpeak; - cutText [format["%1 filled to %2 percent capacity.",_nameText,round(_newFuel*100)], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_132"),_nameText,round(_newFuel*100)], "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/jerry_fill.sqf b/SQF/dayz_code/actions/jerry_fill.sqf index 92777b7f3..97394c9b1 100644 --- a/SQF/dayz_code/actions/jerry_fill.sqf +++ b/SQF/dayz_code/actions/jerry_fill.sqf @@ -24,7 +24,7 @@ _qty = count _fuelCans; _fillCounter = _fillCounter + 1; - cutText [format["Preparing to siphon, stand still to fill %1.",_displayName], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_133"),_displayName], "PLAIN DOWN"]; // force animation player playActionNow "Medic"; @@ -75,7 +75,7 @@ _qty = count _fuelCans; } else { player addMagazine "ItemJerrycan"; }; - cutText [format["You have filled %1 with fuel.",_displayName], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_134"),_displayName], "PLAIN DOWN"]; } else { _abort = true; }; diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index 2c6071cb6..6c824ceb6 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -84,7 +84,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> if(_abort) exitWith { - cutText [format["\n\nThis building needs a %1 within %2 meters",_reason,_distance], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_135"),_reason,_distance], "PLAIN DOWN"]; TradeInprogress = false; }; @@ -173,7 +173,7 @@ if(_IsNearPlot == 0) then { }; // _message -if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format["Unable to build %1 nearby.",_needText,_distance] , "PLAIN DOWN"]; }; +if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "str_epoch_player_136"),_needText,_distance] , "PLAIN DOWN"]; }; _missing = ""; _hasrequireditem = true; @@ -185,7 +185,7 @@ _hasrequireditem = true; _hasbuilditem = _this in magazines player; if (!_hasbuilditem) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_31"),_text,"build"] , "PLAIN DOWN"]; }; -if (!_hasrequireditem) exitWith {TradeInprogress = false; cutText [format["Missing tool %1",_missing] , "PLAIN DOWN"]; }; +if (!_hasrequireditem) exitWith {TradeInprogress = false; cutText [format[(localize "str_epoch_player_137"),_missing] , "PLAIN DOWN"]; }; if (_hasrequireditem) then { _location = [0,0,0]; @@ -386,7 +386,7 @@ if (_hasrequireditem) then { _tmpbuilt setPosATL _location; - cutText [format["Placing %1, move to cancel.",_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_138"),_text], "PLAIN DOWN"]; _limit = 3; @@ -443,7 +443,7 @@ if (_hasrequireditem) then { _counter = _counter + 1; }; - cutText [format["Constructing %1 stage %2 of %3, move to cancel.",_text, _counter,_limit], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_139"),_text, _counter,_limit], "PLAIN DOWN"]; if(_counter == _limit) exitWith { _isOk = false; @@ -509,7 +509,7 @@ if (_hasrequireditem) then { PVDZE_obj_Publish = [_combination,_tmpbuilt,[_dir,_location],_classname]; publicVariableServer "PVDZE_obj_Publish"; - cutText [format["You have setup your %2. Combination is %1",_combinationDisplay,_text], "PLAIN DOWN", 5]; + cutText [format[(localize "str_epoch_player_140"),_combinationDisplay,_text], "PLAIN DOWN", 5]; } else { diff --git a/SQF/dayz_code/actions/player_buildingDowngrade.sqf b/SQF/dayz_code/actions/player_buildingDowngrade.sqf index 60be45048..e5b330815 100644 --- a/SQF/dayz_code/actions/player_buildingDowngrade.sqf +++ b/SQF/dayz_code/actions/player_buildingDowngrade.sqf @@ -52,7 +52,7 @@ if(_IsNearPlot == 0) then { }; // exit if not allowed due to plot pole -if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format["Unable to downgrade %1 nearby.",_needText,_distance] , "PLAIN DOWN"]; }; +if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "str_epoch_player_141"),_needText,_distance] , "PLAIN DOWN"]; }; // get cursortarget from addaction _obj = _this select 3; @@ -132,7 +132,7 @@ if ((count _upgrade) > 0) then { // Set location _object setPosATL _location; - cutText [format["You have downgraded %1.",_text], "PLAIN DOWN", 5]; + cutText [format[(localize "str_epoch_player_142"),_text], "PLAIN DOWN", 5]; PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,_objectID,_objectUID]; publicVariableServer "PVDZE_obj_Swap"; @@ -140,7 +140,7 @@ if ((count _upgrade) > 0) then { player reveal _object; } else { - cutText [format["\n\n%1 of %2 could not be added to your inventory. (not enough room?)", _i,(getText(configFile >> "CfgMagazines" >> _itemOut >> "displayName"))], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_143"), _i,(getText(configFile >> "CfgMagazines" >> _itemOut >> "displayName"))], "PLAIN DOWN"]; { [player,(_x select 0),(_x select 1)] call BIS_fnc_invRemove; } forEach _addedItems; diff --git a/SQF/dayz_code/actions/player_buildingMaint.sqf b/SQF/dayz_code/actions/player_buildingMaint.sqf index d9f9c7fb2..b51e37c69 100644 --- a/SQF/dayz_code/actions/player_buildingMaint.sqf +++ b/SQF/dayz_code/actions/player_buildingMaint.sqf @@ -101,19 +101,19 @@ if (_proceed) then { PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,_objectID,_objectUID]; publicVariableServer "PVDZE_obj_Swap"; - cutText [format["You have repaired %1.",_text], "PLAIN DOWN", 5]; + cutText [format[(localize "str_epoch_player_144"),_text], "PLAIN DOWN", 5]; player reveal _object; } else { {player addMagazine _x;} forEach _temp_removed_array; - cutText [format["Missing Parts after first check Item: %1 / %2",_removed_total,_tobe_removed_total], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_145"),_removed_total,_tobe_removed_total], "PLAIN DOWN"]; }; } else { _textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName"); - cutText [format["Missing %1 more of %2",_missingQty, _textMissing], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_146"),_missingQty, _textMissing], "PLAIN DOWN"]; }; diff --git a/SQF/dayz_code/actions/player_chopWood.sqf b/SQF/dayz_code/actions/player_chopWood.sqf index 80fc62279..1c065105e 100644 --- a/SQF/dayz_code/actions/player_chopWood.sqf +++ b/SQF/dayz_code/actions/player_chopWood.sqf @@ -90,7 +90,7 @@ if (count(_findNearestTree) >= 1) then { _counter = _counter + 1; }; - cutText [format["\n\nChopping down tree, walk away at anytime to cancel. (%1/%2)", _counter, _countOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_147"), _counter, _countOut], "PLAIN DOWN"]; if(_counter == _countOut) exitWith { _isOk = false; @@ -114,7 +114,7 @@ if (count(_findNearestTree) >= 1) then { }; //diag_log format["DEBUG TREE DAMAGE: %1", _tree]; - cutText [format["\n\n%1 piles of wood has been successfully added in front of you.", _countOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_148"), _countOut], "PLAIN DOWN"]; player action ["Gear", _item]; diff --git a/SQF/dayz_code/actions/player_copyKey.sqf b/SQF/dayz_code/actions/player_copyKey.sqf index e8cc33891..03e61db45 100644 --- a/SQF/dayz_code/actions/player_copyKey.sqf +++ b/SQF/dayz_code/actions/player_copyKey.sqf @@ -23,7 +23,7 @@ call gear_ui_init; // require one tin bar per key _hasTinBar = "ItemTinBar" in magazines player; -if(!_hasTinBar) exitWith {TradeInprogress = false; cutText ["\n\nKey crafting requires a 1 Tin Bar." , "PLAIN DOWN"]}; +if(!_hasTinBar) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_59") , "PLAIN DOWN"]}; player playActionNow "Medic"; @@ -63,9 +63,9 @@ if(_finished) then { _qty = 1; _box = unitBackpack player; _box addWeaponCargoGlobal [_create,_qty]; - cutText ["\n\nCopied key has been added to your backpack." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_60") , "PLAIN DOWN"]; } else { - cutText ["\n\nCanceled Key Crafting." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_61") , "PLAIN DOWN"]; }; } else { r_interrupt = false; @@ -73,6 +73,6 @@ if(_finished) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["\n\nCanceled Key Crafting." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_61") , "PLAIN DOWN"]; }; TradeInprogress = false; diff --git a/SQF/dayz_code/actions/player_craftItem.sqf b/SQF/dayz_code/actions/player_craftItem.sqf index 1bab3eb12..88b75f211 100644 --- a/SQF/dayz_code/actions/player_craftItem.sqf +++ b/SQF/dayz_code/actions/player_craftItem.sqf @@ -21,7 +21,7 @@ class ItemActions */ private ["_tradeComplete","_onLadder","_canDo","_selectedRecipeOutput","_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_itemOut","_countOut","_started","_finished","_animState","_isMedic","_removed","_tobe_removed_total","_textCreate","_textMissing","_selectedRecipeInput","_num_removed","_removed_total","_temp_removed_array","_abort","_reason","_isNear","_missingTools","_hastoolweapon","_selectedRecipeTools","_distance","_crafting","_needNear","_item","_baseClass","_num_removed_weapons","_outputWeapons","_inputWeapons","_randomOutput","_craft_doLoop","_selectedWeapon","_selectedMag","_sfx"]; -if(TradeInprogress) exitWith { cutText ["\n\nCrafting already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_63") , "PLAIN DOWN"]; }; TradeInprogress = true; // This is used to find correct recipe based what itemaction was click allows multiple recipes per item. @@ -112,7 +112,7 @@ if (_canDo) then { // If all parts proceed if (_proceed) then { - cutText ["\n\nCrafting started", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_62"), "PLAIN DOWN"]; player playActionNow "Medic"; @@ -222,7 +222,7 @@ if (_canDo) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["\n\nCanceled crafting.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_64"), "PLAIN DOWN"]; _craft_doLoop = false; }; @@ -238,6 +238,6 @@ if (_canDo) then { }; }; } else { - cutText ["\n\nCanceled crafting.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_64"), "PLAIN DOWN"]; }; TradeInprogress = false; \ No newline at end of file diff --git a/SQF/dayz_code/actions/player_goFishing.sqf b/SQF/dayz_code/actions/player_goFishing.sqf index 4bd1a46ef..fdc8f3f1f 100644 --- a/SQF/dayz_code/actions/player_goFishing.sqf +++ b/SQF/dayz_code/actions/player_goFishing.sqf @@ -5,19 +5,19 @@ */ private ["_itemOut","_position","_isOk","_counter","_rnd","_item","_itemtodrop","_vehicle","_inVehicle"]; -if(TradeInprogress) exitWith { cutText ["\n\nFishing already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_65") , "PLAIN DOWN"]; }; TradeInprogress = true; call gear_ui_init; // find position 5m in front of player _position = player modeltoworld [0,5,0]; -if(!(surfaceIsWater _position)) exitWith {TradeInprogress = false; cutText ["\n\nMust be near a shore or on a boat to fish." , "PLAIN DOWN"]; }; +if(!(surfaceIsWater _position)) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_66") , "PLAIN DOWN"]; }; -if((currentWeapon player) != "MeleeFishingPole") exitWith {TradeInprogress = false; cutText ["\n\nFishing pole needs to be in your hand to fish.", "PLAIN DOWN"]; }; +if((currentWeapon player) != "MeleeFishingPole") exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_67"), "PLAIN DOWN"]; }; if(dayz_isSwimming) exitWith {TradeInprogress = false; cutText [localize "str_player_26", "PLAIN DOWN"]; }; -if(player getVariable["combattimeout", 0] >= time) exitWith {TradeInprogress = false; cutText ["\n\nCanceled Fishing.", "PLAIN DOWN"];}; +if(player getVariable["combattimeout", 0] >= time) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_68"), "PLAIN DOWN"];}; _isOk = true; _counter = 0; @@ -33,7 +33,7 @@ while {_isOk} do { if (r_interrupt or (player getVariable["combattimeout", 0] >= time)) then { _isOk = false; - cutText ["\n\nCanceled Fishing.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_68"), "PLAIN DOWN"]; } else { sleep 2; @@ -68,15 +68,15 @@ while {_isOk} do { player addMagazine _itemOut; }; - cutText ["\n\nYou caught a fish.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_69"), "PLAIN DOWN"]; _isOk = false; } else { - cutText ["\n\nNibble... Nibble...", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_70"), "PLAIN DOWN"]; _counter = _counter + 1; if(_counter == 10) then { _isOk = false; sleep 2; - cutText ["\n\nYou didn't catch anything.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_71"), "PLAIN DOWN"]; }; }; }; diff --git a/SQF/dayz_code/actions/player_harvestPlant.sqf b/SQF/dayz_code/actions/player_harvestPlant.sqf index 0b5fc2915..614c2b9aa 100644 --- a/SQF/dayz_code/actions/player_harvestPlant.sqf +++ b/SQF/dayz_code/actions/player_harvestPlant.sqf @@ -5,7 +5,7 @@ */ private ["_isOk","_i","_objName","_started","_finished","_animState","_isMedic","_proceed","_itemOut","_countOut","_tree","_trees","_findNearestTree","_index","_invResult","_treesOutput","_text"]; -if(TradeInprogress) exitWith { cutText ["\n\nHarvest already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_72") , "PLAIN DOWN"]; }; TradeInprogress = true; // allowed trees list move this later @@ -113,7 +113,7 @@ if (count(_findNearestTree) >= 1) then { cutText [format["\n\n%1 of %2 has been successfully added to your inventory.", _i,_text], "PLAIN DOWN"]; } else { - cutText [format["\n\n%1 of %2 could not be added to your inventory. (not enough room?)", _i,_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_143"), _i,_text], "PLAIN DOWN"]; }; } else { r_interrupt = false; @@ -121,12 +121,12 @@ if (count(_findNearestTree) >= 1) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["\n\nCanceled Harvesting.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_73"), "PLAIN DOWN"]; }; } else { - cutText ["\n\nYou must be close to a plant to harvest.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_74"), "PLAIN DOWN"]; }; TradeInprogress = false; diff --git a/SQF/dayz_code/actions/player_loadCrate.sqf b/SQF/dayz_code/actions/player_loadCrate.sqf index ee77f2352..3c7283729 100644 --- a/SQF/dayz_code/actions/player_loadCrate.sqf +++ b/SQF/dayz_code/actions/player_loadCrate.sqf @@ -1,18 +1,18 @@ private ["_dir","_classname","_box","_location","_item","_config","_create_raw","_create","_qty","_type","_hasCrate","_hasTool"]; -if(TradeInprogress) exitWith { cutText ["\n\nOpen Crate already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_75") , "PLAIN DOWN"]; }; TradeInprogress = true; _hasTool = "ItemCrowbar" in items player; if(!_hasTool) exitWith { - cutText ["\n\nYou need a crowbar to open this.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_76"), "PLAIN DOWN"]; TradeInprogress = false; }; _item = _this; _hasCrate = _item in magazines player; if (!_hasCrate) exitWith { - cutText ["\n\nMissing supply crate.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_77"), "PLAIN DOWN"]; TradeInprogress = false; }; @@ -53,6 +53,6 @@ player reveal _box; player action ["Gear", _box]; -cutText ["\n\nOpened supply crate.", "PLAIN DOWN"]; +cutText [(localize "str_epoch_player_78"), "PLAIN DOWN"]; TradeInprogress = false; diff --git a/SQF/dayz_code/actions/player_mineOre.sqf b/SQF/dayz_code/actions/player_mineOre.sqf index f14147deb..c0642fb71 100644 --- a/SQF/dayz_code/actions/player_mineOre.sqf +++ b/SQF/dayz_code/actions/player_mineOre.sqf @@ -5,7 +5,7 @@ */ private ["_isOk","_objName","_started","_finished","_animState","_isMedic","_proceed","_counter","_itemOut","_countOut","_rock","_distance2d","_rockBox","_rocks","_findNearestRock","_item","_rnd"]; -if(TradeInprogress) exitWith { cutText ["\n\nOre Mining already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_79") , "PLAIN DOWN"]; }; TradeInprogress = true; // allowed rocks list move this later @@ -129,7 +129,7 @@ if (count(_findNearestRock) >= 1) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["\n\nCancelled Mining Ore.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_80"), "PLAIN DOWN"]; }; } else { diff --git a/SQF/dayz_code/actions/player_reloadMags.sqf b/SQF/dayz_code/actions/player_reloadMags.sqf index c6d5d5056..ccfe01743 100644 --- a/SQF/dayz_code/actions/player_reloadMags.sqf +++ b/SQF/dayz_code/actions/player_reloadMags.sqf @@ -92,7 +92,7 @@ _qtynew_consume_ammo_rest = _qtynew_consume_ammo - (_qtynew_consume_mags_full*_c _qtynew_create_ammo_rest = _qtynew_create_ammo - (_qtynew_create_mags_full*_create_magsize); // abort if no complete mags or partial mag is less than 15% full -if(_qtynew_create_ammo_rest > 0 and _qtynew_create_ammo_rest < (_create_magsize*0.85)) exitWith { cutText ["\n\nCombine ammo failed you need at least 85% capacity to fill a mag", "PLAIN DOWN"]; }; +if(_qtynew_create_ammo_rest > 0 and _qtynew_create_ammo_rest < (_create_magsize*0.85)) exitWith { cutText [(localize "str_epoch_player_81"), "PLAIN DOWN"]; }; //remove all _consume and _create mags (we already have total ammo count) player removeMagazines _consume; diff --git a/SQF/dayz_code/actions/player_upgrade.sqf b/SQF/dayz_code/actions/player_upgrade.sqf index 4d23a26d0..fcbc7312f 100644 --- a/SQF/dayz_code/actions/player_upgrade.sqf +++ b/SQF/dayz_code/actions/player_upgrade.sqf @@ -172,16 +172,16 @@ if ((count _upgrade) > 0) then { } else { {player addMagazine _x;} forEach _temp_removed_array; - cutText [format["Missing Parts after first check Item: %1 / %2",_removed_total,_tobe_removed_total], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_145"),_removed_total,_tobe_removed_total], "PLAIN DOWN"]; }; } else { _textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName"); - cutText [format["Missing %1 more of %2",_missingQty, _textMissing], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_146"),_missingQty, _textMissing], "PLAIN DOWN"]; }; } else { - cutText ["No upgrades available", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_82"), "PLAIN DOWN"]; }; TradeInprogress = false; diff --git a/SQF/dayz_code/actions/player_wearClothes.sqf b/SQF/dayz_code/actions/player_wearClothes.sqf index 78e04efdc..147261278 100644 --- a/SQF/dayz_code/actions/player_wearClothes.sqf +++ b/SQF/dayz_code/actions/player_wearClothes.sqf @@ -4,12 +4,12 @@ Added Female skin changes - DayZ Epoch - vbawol */ private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"]; -if(TradeInprogress) exitWith { cutText ["\n\nChanging clothes already in progress." , "PLAIN DOWN"] }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_83") , "PLAIN DOWN"] }; TradeInprogress = true; // cannot change clothes when another player is nearby _playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1; -if(_playerNear) exitWith { TradeInprogress = false; cutText ["\n\nCannot change clothes when another player is nearby." , "PLAIN DOWN"]; }; +if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_84") , "PLAIN DOWN"]; }; _item = _this; call gear_ui_init; @@ -23,7 +23,7 @@ _text = getText (_config >> _item >> "displayName"); if (!_hasclothesitem) exitWith {TradeInprogress = false; cutText [format[(localize "str_player_31"),_text,"wear"] , "PLAIN DOWN"]}; -if (vehicle player != player) exitWith {TradeInprogress = false; cutText ["\n\nYou may not change clothes while in a vehicle", "PLAIN DOWN"]}; +if (vehicle player != player) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_85"), "PLAIN DOWN"]}; _myModel = (typeOf player); _itemNew = "Skin_" + _myModel; @@ -50,7 +50,7 @@ if ( (isClass(_config >> _itemNew)) ) then { }; } else { - cutText ["\n\nYou cannot wear a skin of the opposite sex.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_86"), "PLAIN DOWN"]; }; }; }; diff --git a/SQF/dayz_code/actions/refuel.sqf b/SQF/dayz_code/actions/refuel.sqf index d5a810a82..690214999 100644 --- a/SQF/dayz_code/actions/refuel.sqf +++ b/SQF/dayz_code/actions/refuel.sqf @@ -128,7 +128,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"]; }; } else { - cutText ["Canceled refuel." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_87") , "PLAIN DOWN"]; _abort = true; }; diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index 1f145a482..9fbb615d4 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -4,7 +4,7 @@ parameters: _obj */ private ["_activatingPlayer","_obj","_objectID","_objectUID","_started","_finished","_animState","_isMedic","_isOk","_proceed","_counter","_limit","_objType","_sfx","_dis","_itemOut","_countOut","_selectedRemoveOutput","_friendlies","_nearestPole","_ownerID","_refundpart","_isWreck","_findNearestPoles","_findNearestPole","_IsNearPlot","_brokenTool","_removeTool","_isDestructable","_isRemovable","_objOwnerID","_isOwnerOfObj","_preventRefund","_ipos","_item","_radius","_isWreckBuilding","_nameVehicle"]; -if(TradeInprogress) exitWith { cutText ["Remove already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_88") , "PLAIN DOWN"]; }; TradeInprogress = true; player removeAction s_player_deleteBuild; @@ -17,7 +17,7 @@ _activatingPlayer = player; _objOwnerID = _obj getVariable["CharacterID","0"]; _isOwnerOfObj = (_objOwnerID == dayz_characterID); -if(_obj getVariable ["GeneratorRunning", false]) exitWith {TradeInprogress = false; cutText ["Cannot remove running generator.", "PLAIN DOWN"];}; +if(_obj getVariable ["GeneratorRunning", false]) exitWith {TradeInprogress = false; cutText [(localize "str_epoch_player_89"), "PLAIN DOWN"];}; _objectID = _obj getVariable ["ObjectID","0"]; _objectUID = _obj getVariable ["ObjectUID","0"]; @@ -186,7 +186,7 @@ if (_proceed) then { }; if((count _selectedRemoveOutput) <= 0) then { - cutText ["No parts found.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_90"), "PLAIN DOWN"]; }; if (_ipos select 2 < 0) then { @@ -214,7 +214,7 @@ if (_proceed) then { player action ["Gear", _item]; }; } else { - cutText ["Failed object not longer exists.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_91"), "PLAIN DOWN"]; }; } else { diff --git a/SQF/dayz_code/actions/repair.sqf b/SQF/dayz_code/actions/repair.sqf index 52685b97b..258153188 100644 --- a/SQF/dayz_code/actions/repair.sqf +++ b/SQF/dayz_code/actions/repair.sqf @@ -1,6 +1,6 @@ private ["_vehicle","_part","_hitpoint","_type","_selection","_array","_started","_finished","_animState","_isMedic","_num_removed","_damage","_dis","_sfx","_allFixed","_id","_hasToolbox","_section","_nameType","_namePart","_hitpoints"]; -if(TradeInprogress) exitWith { cutText ["Repair already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_92") , "PLAIN DOWN"]; }; TradeInprogress = true; _id = _this select 2; @@ -91,7 +91,7 @@ if (_section and _hasToolbox) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Repair.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_93"), "PLAIN DOWN"]; }; } else { diff --git a/SQF/dayz_code/actions/salvage.sqf b/SQF/dayz_code/actions/salvage.sqf index d1bf9879b..41947a611 100644 --- a/SQF/dayz_code/actions/salvage.sqf +++ b/SQF/dayz_code/actions/salvage.sqf @@ -1,6 +1,6 @@ private ["_vehicle","_part","_hitpoint","_type","_selection","_array","_started","_finished","_animState","_isMedic","_isOK","_brokenPart","_findPercent","_damage","_hasToolbox","_nameType","_namePart"]; -if(TradeInprogress) exitWith { cutText ["Salvage already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_94") , "PLAIN DOWN"]; }; TradeInprogress = true; //_id = _this select 2; @@ -107,7 +107,7 @@ if (_hasToolbox) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Salvage.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_95"), "PLAIN DOWN"]; }; } else { diff --git a/SQF/dayz_code/actions/sell_db.sqf b/SQF/dayz_code/actions/sell_db.sqf index 4a5338301..061a9d91d 100644 --- a/SQF/dayz_code/actions/sell_db.sqf +++ b/SQF/dayz_code/actions/sell_db.sqf @@ -1,6 +1,6 @@ private ["_activatingPlayer","_trader_id","_type","_name","_sell","_order","_tid","_in","_part","_cancel","_Display","_File","_textCurrency","_textPart","_count","_btype","_stype","_bag","_bagclass","_header","_item","_buy","_sqty","_sname","_afile"]; -if(TradeInprogress) exitWith { cutText ["already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"]; }; TradeInprogress = true; {player removeAction _x} forEach s_player_parts;s_player_parts = []; diff --git a/SQF/dayz_code/actions/show_dialog.sqf b/SQF/dayz_code/actions/show_dialog.sqf index 40836f37a..815ed3499 100644 --- a/SQF/dayz_code/actions/show_dialog.sqf +++ b/SQF/dayz_code/actions/show_dialog.sqf @@ -1,7 +1,7 @@ private ["_trader_data", "_dialog"]; if (TradeInprogress) exitWith { - cutText ["Trading already in progress." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_97") , "PLAIN DOWN"]; }; _trader_data = (_this select 3); diff --git a/SQF/dayz_code/actions/siphonFuel.sqf b/SQF/dayz_code/actions/siphonFuel.sqf index 762fa5a07..e46b6e97a 100644 --- a/SQF/dayz_code/actions/siphonFuel.sqf +++ b/SQF/dayz_code/actions/siphonFuel.sqf @@ -1,6 +1,6 @@ private ["_vehicle","_curFuel","_newFuel","_started","_finished","_animState","_isMedic","_location1","_location2","_abort","_canNameEmpty","_canSizeEmpty","_canTypeEmpty","_canName","_canSize","_configCanEmpty","_configVeh","_capacity","_nameText","_availableCansEmpty"]; -if(TradeInprogress) exitWith { cutText ["Siphon already in progress." , "PLAIN DOWN"] }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_98") , "PLAIN DOWN"] }; TradeInprogress = true; // Use target from addaction @@ -46,7 +46,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"]; if (_newFuel > 0) then { - cutText [format["Preparing to siphon, stand still to fill %1.",_canTypeEmpty], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_133"),_canTypeEmpty], "PLAIN DOWN"]; // alert zombies [player,20,true,(getPosATL player)] spawn player_alertZombies; diff --git a/SQF/dayz_code/actions/stopGenerator.sqf b/SQF/dayz_code/actions/stopGenerator.sqf index 55b5cad06..3e75242e3 100644 --- a/SQF/dayz_code/actions/stopGenerator.sqf +++ b/SQF/dayz_code/actions/stopGenerator.sqf @@ -1,6 +1,6 @@ private ["_vehicle","_started","_finished","_animState","_isMedic","_soundObject"]; -if(TradeInprogress) exitWith { cutText ["Stop already in progress." , "PLAIN DOWN"] }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_99") , "PLAIN DOWN"] }; TradeInprogress = true; player removeAction s_player_fillgen; @@ -18,7 +18,7 @@ r_doLoop = true; _started = false; _finished = false; -cutText ["Preparing stop generator, move to cancel.", "PLAIN DOWN"]; +cutText [(localize "str_epoch_player_100"), "PLAIN DOWN"]; [player,50,true,(getPosATL player)] spawn player_alertZombies; @@ -58,7 +58,7 @@ if (_finished) then { // Stop generator _vehicle setVariable ["GeneratorRunning", false,true]; - cutText ["Generator has been stopped.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_101"), "PLAIN DOWN"]; }; diff --git a/SQF/dayz_code/actions/tow_AttachStraps.sqf b/SQF/dayz_code/actions/tow_AttachStraps.sqf index 07dced459..0a212285f 100644 --- a/SQF/dayz_code/actions/tow_AttachStraps.sqf +++ b/SQF/dayz_code/actions/tow_AttachStraps.sqf @@ -1,6 +1,6 @@ private ["_vehicle","_started","_finished","_animState","_isMedic","_abort","_configVeh","_nameText","_findNearestVehicles","_findNearestVehicle","_IsNearVehicle","_towTruck","_towTruckSize","_allowedSize"]; -if(TradeInprogress) exitWith { cutText ["Already in progress." , "PLAIN DOWN"] }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] }; TradeInprogress = true; player removeAction s_player_towing; diff --git a/SQF/dayz_code/actions/tow_DetachStraps.sqf b/SQF/dayz_code/actions/tow_DetachStraps.sqf index 5f6a2ebed..2e050ffd6 100644 --- a/SQF/dayz_code/actions/tow_DetachStraps.sqf +++ b/SQF/dayz_code/actions/tow_DetachStraps.sqf @@ -1,6 +1,6 @@ private ["_vehicle","_started","_finished","_animState","_isMedic","_configVeh","_nameText","_towTruck","_inTow"]; -if(TradeInprogress) exitWith { cutText ["Already in progress." , "PLAIN DOWN"] }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_96") , "PLAIN DOWN"] }; TradeInprogress = true; player removeAction s_player_towing; @@ -76,7 +76,7 @@ if(_inTow) then { _towTruck setVariable ["DZEvehicleInTow", objNull, true]; }; } else { - cutText ["No Vehicles In Tow.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_102"), "PLAIN DOWN"]; }; TradeInprogress = false; s_player_towing = -1; \ No newline at end of file diff --git a/SQF/dayz_code/actions/trade_any_bicycle.sqf b/SQF/dayz_code/actions/trade_any_bicycle.sqf index ea0a03df8..ca2b1e036 100644 --- a/SQF/dayz_code/actions/trade_any_bicycle.sqf +++ b/SQF/dayz_code/actions/trade_any_bicycle.sqf @@ -1,11 +1,11 @@ private ["_veh","_location","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; // Test cannot lock while another player is nearby _playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1; -if(_playerNear) exitWith { TradeInprogress = false; cutText ["Cannot trade while another player is nearby." , "PLAIN DOWN"]; }; +if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; }; // [part_out,part_in, qty_out, qty_in, loc]; @@ -31,7 +31,7 @@ if(_buy_o_sell == "buy") then { if (_qty >= _qty_in) then { - cutText ["Starting trade, stand still to complete trade.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"]; // force animation player playActionNow "Medic"; @@ -65,7 +65,7 @@ if (_qty >= _qty_in) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; if (_finished) then { diff --git a/SQF/dayz_code/actions/trade_any_boat.sqf b/SQF/dayz_code/actions/trade_any_boat.sqf index bbef14224..774afcac0 100644 --- a/SQF/dayz_code/actions/trade_any_boat.sqf +++ b/SQF/dayz_code/actions/trade_any_boat.sqf @@ -1,11 +1,11 @@ private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_okToSell","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; // Test cannot lock while another player is nearby _playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1; -if(_playerNear) exitWith { TradeInprogress = false; cutText ["Cannot trade while another player is nearby." , "PLAIN DOWN"]; }; +if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; }; // [part_out,part_in, qty_out, qty_in, loc]; @@ -32,7 +32,7 @@ if(_buy_o_sell == "buy") then { if (_qty >= _qty_in) then { - cutText ["Starting trade, stand still to complete trade.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"]; // force animation player playActionNow "Medic"; @@ -66,7 +66,7 @@ if (_qty >= _qty_in) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; if (_finished) then { @@ -138,7 +138,7 @@ if (_qty >= _qty_in) then { player removeMagazine _keySelected; }; } else { - cutText ["You do not have enough room on your toolbelt.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_107"), "PLAIN DOWN"]; }; } else { diff --git a/SQF/dayz_code/actions/trade_any_vehicle.sqf b/SQF/dayz_code/actions/trade_any_vehicle.sqf index d3f8a298f..b54dee5d0 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle.sqf @@ -1,11 +1,11 @@ private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; // Test cannot lock while another player is nearby _playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1; -if(_playerNear) exitWith { TradeInprogress = false; cutText ["Cannot trade while another player is nearby." , "PLAIN DOWN"]; }; +if(_playerNear) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_104") , "PLAIN DOWN"]; }; // [part_out,part_in, qty_out, qty_in, loc]; @@ -31,7 +31,7 @@ if(_buy_o_sell == "buy") then { if (_qty >= _qty_in) then { - cutText ["Starting trade, stand still to complete trade.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"]; // force animation player playActionNow "Medic"; @@ -65,7 +65,7 @@ if (_qty >= _qty_in) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; if (_finished) then { @@ -137,7 +137,7 @@ if (_qty >= _qty_in) then { player removeMagazine _keySelected; }; } else { - cutText ["You do not have enough room on your toolbelt.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_107"), "PLAIN DOWN"]; }; } else { diff --git a/SQF/dayz_code/actions/trade_backpacks.sqf b/SQF/dayz_code/actions/trade_backpacks.sqf index 687c4fabe..3aeaa1042 100644 --- a/SQF/dayz_code/actions/trade_backpacks.sqf +++ b/SQF/dayz_code/actions/trade_backpacks.sqf @@ -1,7 +1,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_bos","_bag","_class","_started","_finished","_animState","_isMedic","_num_removed","_needed","_activatingPlayer","_buy_o_sell","_textPartIn","_textPartOut","_traderID"]; // [part_out,part_in, qty_out, qty_in,]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; _activatingPlayer = player; @@ -30,7 +30,7 @@ if(_buy_o_sell == "buy") then { if (_qty >= _qty_in) then { - cutText ["Starting trade, stand still to complete trade.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"]; // force animation player playActionNow "Medic"; @@ -64,7 +64,7 @@ if (_qty >= _qty_in) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; if (_finished) then { diff --git a/SQF/dayz_code/actions/trade_items.sqf b/SQF/dayz_code/actions/trade_items.sqf index 6a0af6361..57fa09c0b 100644 --- a/SQF/dayz_code/actions/trade_items.sqf +++ b/SQF/dayz_code/actions/trade_items.sqf @@ -1,7 +1,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_textPartIn","_textPartOut","_bos","_needed","_started","_finished","_animState","_isMedic","_total_parts_out","_abort","_removed","_tradeCounter","_next_highest_bar","_third_highest_bar","_next_highest_conv","_third_highest_conv","_third_parts_out_raw","_third_parts_out","_remainder","_next_parts_out_raw","_next_parts_out","_activatingPlayer","_traderID","_total_trades"]; // [part_out,part_in, qty_out, qty_in,]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"] }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"] }; TradeInprogress = true; _total_parts_out = 0; @@ -47,7 +47,7 @@ for "_x" from 1 to _total_trades do { // cutText ["Starting trade, stand still to complete.", "PLAIN DOWN"]; if(_total_trades == 1) then { - cutText [format[("Starting trade, stand still to complete trade."),_tradeCounter,_total_trades] , "PLAIN DOWN"]; + cutText [format[((localize "str_epoch_player_105")),_tradeCounter,_total_trades] , "PLAIN DOWN"]; } else { cutText [format[("Starting trade, stand still to complete trade %1 of %2."),_tradeCounter,_total_trades] , "PLAIN DOWN"]; }; @@ -87,7 +87,7 @@ for "_x" from 1 to _total_trades do { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; if (_finished) then { diff --git a/SQF/dayz_code/actions/trade_items_wo_db.sqf b/SQF/dayz_code/actions/trade_items_wo_db.sqf index 89656cf5a..8ab3c2978 100644 --- a/SQF/dayz_code/actions/trade_items_wo_db.sqf +++ b/SQF/dayz_code/actions/trade_items_wo_db.sqf @@ -1,7 +1,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_textPartIn","_textPartOut","_qty","_needed","_started","_finished","_animState","_isMedic","_abort","_removed","_tradeCounter","_total_trades","_humanityGain","_humanity"]; // [part_out,part_in, qty_out, qty_in,]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; //_activatingPlayer = player; @@ -37,7 +37,7 @@ for "_x" from 1 to _total_trades do { _tradeCounter = _tradeCounter + 1; if(_total_trades == 1) then { - cutText [format[("Starting trade, stand still to complete trade."),_tradeCounter,_total_trades] , "PLAIN DOWN"]; + cutText [format[((localize "str_epoch_player_105")),_tradeCounter,_total_trades] , "PLAIN DOWN"]; } else { cutText [format[("Starting trade, stand still to complete trade %1 of %2."),_tradeCounter,_total_trades] , "PLAIN DOWN"]; }; @@ -73,7 +73,7 @@ for "_x" from 1 to _total_trades do { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; _qty = {_x == _part_in} count magazines player; diff --git a/SQF/dayz_code/actions/trade_metals.sqf b/SQF/dayz_code/actions/trade_metals.sqf index fee2b56c6..1117484ea 100644 --- a/SQF/dayz_code/actions/trade_metals.sqf +++ b/SQF/dayz_code/actions/trade_metals.sqf @@ -1,6 +1,6 @@ private ["_buy","_metals_conversion","_cancel"]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; {player removeAction _x} forEach s_player_parts;s_player_parts = []; diff --git a/SQF/dayz_code/actions/trade_weapons.sqf b/SQF/dayz_code/actions/trade_weapons.sqf index a4a048cb8..99feb2b83 100644 --- a/SQF/dayz_code/actions/trade_weapons.sqf +++ b/SQF/dayz_code/actions/trade_weapons.sqf @@ -1,7 +1,7 @@ private ["_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_traderID","_bos","_needed","_activatingPlayer","_textPartIn","_textPartOut","_started","_finished","_animState","_isMedic","_removed"]; // [part_out,part_in, qty_out, qty_in,"buy"]; -if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_103") , "PLAIN DOWN"]; }; TradeInprogress = true; _activatingPlayer = player; @@ -26,7 +26,7 @@ if(_buy_o_sell == "buy") then { if (_qty >= _qty_in) then { - cutText ["Starting trade, stand still to complete trade.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_105"), "PLAIN DOWN"]; // force animation player playActionNow "Medic"; @@ -65,7 +65,7 @@ if (_qty >= _qty_in) then { [objNull, player, rSwitchMove,""] call RE; player playActionNow "stop"; }; - cutText ["Canceled Trade." , "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; if (_finished) then { diff --git a/SQF/dayz_code/actions/vault_pitch.sqf b/SQF/dayz_code/actions/vault_pitch.sqf index c6c714f2a..c9a2d6c1b 100644 --- a/SQF/dayz_code/actions/vault_pitch.sqf +++ b/SQF/dayz_code/actions/vault_pitch.sqf @@ -5,7 +5,7 @@ private ["_tent","_location","_isOk","_cancel","_location3","_location4","_location1","_location2","_counter","_pondPos","_isPond","_ppos","_hastentitem","_dir","_building","_isBuilding","_playerPos","_item","_offset_x","_offset_y","_offset_z","_offset_z_attach","_config","_text","_tmpvault","_vault_location","_objectsPond","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_removed"]; //check if can pitch here -if(TradeInprogress) exitWith { cutText ["Vault pitching already in progress." , "PLAIN DOWN"]; }; +if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_108") , "PLAIN DOWN"]; }; TradeInprogress = true; //disableSerialization; @@ -52,7 +52,7 @@ _counter = 0; while {_isOk} do { if(_counter == 0) then { - cutText ["Planning construction stand still 5 seconds to build.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_109"), "PLAIN DOWN"]; sleep 5; _location1 = getPosATL player; sleep 5; @@ -60,7 +60,7 @@ while {_isOk} do { if(_location1 distance _location2 < 0.1) exitWith { - cutText ["Started construction move within 5 seconds to cancel.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_109"), "PLAIN DOWN"]; _location3 = getPosATL player; sleep 5; _location4 = getPosATL player; @@ -167,11 +167,11 @@ if(!_cancel) then { }; } else { - cutText ["You cannot place a Safe here. The area must be flat, and free of other objects", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_110"), "PLAIN DOWN"]; }; } else { - cutText ["Canceled construction of Safe.", "PLAIN DOWN"]; + cutText [(localize "str_epoch_player_111"), "PLAIN DOWN"]; }; TradeInprogress = false; \ No newline at end of file diff --git a/SQF/dayz_code/compile/player_lockVault.sqf b/SQF/dayz_code/compile/player_lockVault.sqf index 0995ab021..997de6c1d 100644 --- a/SQF/dayz_code/compile/player_lockVault.sqf +++ b/SQF/dayz_code/compile/player_lockVault.sqf @@ -28,11 +28,11 @@ player playActionNow "Medic"; player removeAction s_player_lockvault; s_player_lockvault = 1; -if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith {TradeInprogress = false; s_player_lockvault = -1; cutText [format["You cannot lock this %1, you do not know the combination.",_text], "PLAIN DOWN"]; }; +if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith {TradeInprogress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_115"),_text], "PLAIN DOWN"]; }; _alreadyPacking = _obj getVariable["packing",0]; -if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_lockvault = -1; cutText [format["That %1 is already being locked.",_text], "PLAIN DOWN"]}; +if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_116"),_text], "PLAIN DOWN"]}; _obj setVariable["packing",1]; @@ -77,7 +77,7 @@ if(!isNull _obj) then { _holder setVariable ["BackpackCargo", _backpacks, true]; }; - cutText [format["Your %1 has been locked",_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_117"),_text], "PLAIN DOWN"]; s_player_lockvault = -1; }; diff --git a/SQF/dayz_code/compile/player_packVault.sqf b/SQF/dayz_code/compile/player_packVault.sqf index 76f574b0d..9fee4f12d 100644 --- a/SQF/dayz_code/compile/player_packVault.sqf +++ b/SQF/dayz_code/compile/player_packVault.sqf @@ -27,23 +27,23 @@ _objectUID = _obj getVariable["ObjectUID","0"]; player removeAction s_player_packvault; s_player_packvault = 1; -if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = false; s_player_packvault = -1; cutText [format["%1 not setup yet.",_text], "PLAIN DOWN"];}; +if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_118"),_text], "PLAIN DOWN"];}; -if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith { TradeInprogress = false; s_player_packvault = -1; cutText [format["You cannot pack this %1, you do not know the combination.",_text], "PLAIN DOWN"];}; +if((_ownerID != dayz_combination) and (_ownerID != dayz_playerUID)) exitWith { TradeInprogress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_119"),_text], "PLAIN DOWN"];}; _alreadyPacking = _obj getVariable["packing",0]; -if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_packvault = -1; cutText [format["That %1 is already being packed.",_text] , "PLAIN DOWN"]}; +if (_alreadyPacking == 1) exitWith {TradeInprogress = false; s_player_packvault = -1; cutText [format[(localize "str_epoch_player_120"),_text] , "PLAIN DOWN"]}; _obj setVariable["packing",1]; -cutText [format["Packing %1 move from this position to cancel within 5 seconds.",_text], "PLAIN DOWN"]; +cutText [format[(localize "str_epoch_player_121"),_text], "PLAIN DOWN"]; sleep 1; _location1 = getPosATL player; sleep 5; _location2 = getPosATL player; if(_location1 distance _location2 > 0.1) exitWith { - cutText [format["Packing %1 canceled.",_text] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_122"),_text] , "PLAIN DOWN"]; _obj setVariable["packing",0]; }; @@ -105,7 +105,7 @@ if(!isNull _obj and alive _obj) then { _countr = _countr + 1; } forEach _objWpnTypes; - cutText [format["Your %1 has been packed",_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_123"),_text], "PLAIN DOWN"]; player action ["Gear", _holder]; }; diff --git a/SQF/dayz_code/compile/player_unlockVault.sqf b/SQF/dayz_code/compile/player_unlockVault.sqf index 8f83e309b..eb161587f 100644 --- a/SQF/dayz_code/compile/player_unlockVault.sqf +++ b/SQF/dayz_code/compile/player_unlockVault.sqf @@ -28,7 +28,7 @@ if(isNull _obj or !(alive _obj)) exitWith { TradeInprogress = false; }; _ownerID = _obj getVariable["CharacterID","0"]; -if (_alreadyPacking == 1) exitWith {TradeInprogress = false; cutText [format["That %1 is already being unlocked.",_text], "PLAIN DOWN"]}; +if (_alreadyPacking == 1) exitWith {TradeInprogress = false; cutText [format[(localize "str_epoch_player_124"),_text], "PLAIN DOWN"]}; // Promt user for password if _ownerID != dayz_playerUID if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { @@ -111,7 +111,7 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { } forEach _objWpnTypes; }; - cutText [format["%1 has been unlocked.",_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_125"),_text], "PLAIN DOWN"]; }; } else { TradeInprogress = false; @@ -123,7 +123,7 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then { [player,"repair",0,false] call dayz_zombieSpeak; null = [player,25,true,(getPosATL player)] spawn player_alertZombies; sleep 5; - cutText [format["Combination incorrect, %1 is still locked.",_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"]; }; s_player_unlockvault = -1; TradeInprogress = false; \ No newline at end of file diff --git a/SQF/dayz_code/system/player_monitor.fsm b/SQF/dayz_code/system/player_monitor.fsm index 8acfd3a17..49ee9a754 100644 --- a/SQF/dayz_code/system/player_monitor.fsm +++ b/SQF/dayz_code/system/player_monitor.fsm @@ -623,7 +623,7 @@ class FSM "selectNoPlayer;" \n "" \n "_myTime = diag_tickTime;" \n - "1 cutText [""This server is running an incorrect version of the server side application. You cannot play on this server. If you are the server admin please contact DayZ Epoch staff."", ""PLAIN"",5];"/*%FSM*/; + "1 cutText [(localize ""str_epoch_player_112""), ""PLAIN"",5];"/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links { @@ -1440,7 +1440,7 @@ class FSM init = /*%FSM*/"endLoadingScreen;" \n "selectNoPlayer;" \n "_myTime = diag_tickTime;" \n - "1 cutText [""You have an outdated version of epoch please download the correct version"", ""PLAIN"",15];"/*%FSM*/; + "1 cutText [(localize ""str_epoch_player_113""), ""PLAIN"",15];"/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links { @@ -1575,7 +1575,7 @@ class FSM init = /*%FSM*/"endLoadingScreen;" \n "selectNoPlayer;" \n "_myTime = diag_tickTime;" \n - "1 cutText [""Could not retive date and time from server disconect and retry."", ""PLAIN"",5];"/*%FSM*/; + "1 cutText [(localize ""str_epoch_player_114""), ""PLAIN"",5];"/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links { diff --git a/SQF/dayz_epoch_b/stringtable.xml b/SQF/dayz_epoch_b/stringtable.xml index 86e44131b..89980dedc 100644 --- a/SQF/dayz_epoch_b/stringtable.xml +++ b/SQF/dayz_epoch_b/stringtable.xml @@ -3114,5 +3114,895 @@ + + \n\nCopied key has been added to your backpack. + \n\nCopied key has been added to your backpack. + + + + + + + + + \n\nCanceled Key Crafting. + \n\nCanceled Key Crafting. + + + + + + + + + \n\nCrafting started + \n\nCrafting started + + + + + + + + + \n\nCrafting already in progress. + \n\nCrafting already in progress. + + + + + + + + + \n\nCanceled crafting. + \n\nCanceled crafting. + + + + + + + + + \n\nFishing already in progress. + \n\nFishing already in progress. + + + + + + + + + \n\nMust be near a shore or on a boat to fish. + \n\nMust be near a shore or on a boat to fish. + + + + + + + + + \n\nFishing pole needs to be in your hand to fish. + \n\nFishing pole needs to be in your hand to fish. + + + + + + + + + \n\nCanceled Fishing. + \n\nCanceled Fishing. + + + + + + + + + \n\nYou caught a fish. + \n\nYou caught a fish. + + + + + + + + + \n\nNibble... Nibble... + \n\nNibble... Nibble... + + + + + + + + + \n\nYou didn't catch anything. + \n\nYou didn't catch anything. + + + + + + + + + \n\nHarvest already in progress. + \n\nHarvest already in progress. + + + + + + + + + \n\nCanceled Harvesting. + \n\nCanceled Harvesting. + + + + + + + + + \n\nYou must be close to a plant to harvest. + \n\nYou must be close to a plant to harvest. + + + + + + + + + \n\nOpen Crate already in progress. + \n\nOpen Crate already in progress. + + + + + + + + + \n\nYou need a crowbar to open this. + \n\nYou need a crowbar to open this. + + + + + + + + + \n\nMissing supply crate. + \n\nMissing supply crate. + + + + + + + + + \n\nOpened supply crate. + \n\nOpened supply crate. + + + + + + + + + \n\nOre Mining already in progress. + \n\nOre Mining already in progress. + + + + + + + + + \n\nCancelled Mining Ore. + \n\nCancelled Mining Ore. + + + + + + + + + \n\nCombine ammo failed you need at least 85% capacity to fill a mag + \n\nCombine ammo failed you need at least 85% capacity to fill a mag + + + + + + + + + No upgrades available + No upgrades available + + + + + + + + + \n\nChanging clothes already in progress. + \n\nChanging clothes already in progress. + + + + + + + + + \n\nCannot change clothes when another player is nearby. + \n\nCannot change clothes when another player is nearby. + + + + + + + + + \n\nYou may not change clothes while in a vehicle + \n\nYou may not change clothes while in a vehicle + + + + + + + + + \n\nYou cannot wear a skin of the opposite sex. + \n\nYou cannot wear a skin of the opposite sex. + + + + + + + + + Canceled refuel. + Canceled refuel. + + + + + + + + + Remove already in progress. + Remove already in progress. + + + + + + + + + Cannot remove running generator. + Cannot remove running generator. + + + + + + + + + No parts found. + No parts found. + + + + + + + + + Failed object not longer exists. + Failed object not longer exists. + + + + + + + + + Repair already in progress. + Repair already in progress. + + + + + + + + + Canceled Repair. + Canceled Repair. + + + + + + + + + Salvage already in progress. + Salvage already in progress. + + + + + + + + + Canceled Salvage. + Canceled Salvage. + + + + + + + + + already in progress. + already in progress. + + + + + + + + + Trading already in progress. + Trading already in progress. + + + + + + + + + Siphon already in progress. + Siphon already in progress. + + + + + + + + + Stop already in progress. + Stop already in progress. + + + + + + + + + Preparing stop generator, move to cancel. + Preparing stop generator, move to cancel. + + + + + + + + + Generator has been stopped. + Generator has been stopped. + + + + + + + + + No Vehicles In Tow. + No Vehicles In Tow. + + + + + + + + + Trade already in progress. + Trade already in progress. + + + + + + + + + Cannot trade while another player is nearby. + Cannot trade while another player is nearby. + + + + + + + + + Starting trade, stand still to complete trade. + Starting trade, stand still to complete trade. + + + + + + + + + Canceled Trade. + Canceled Trade. + + + + + + + + + You do not have enough room on your toolbelt. + You do not have enough room on your toolbelt. + + + + + + + + + Vault pitching already in progress. + Vault pitching already in progress. + + + + + + + + + Planning construction stand still 5 seconds to build. + Planning construction stand still 5 seconds to build. + + + + + + + + + You cannot place a Safe here. The area must be flat, and free of other objects + You cannot place a Safe here. The area must be flat, and free of other objects + + + + + + + + + Canceled construction of Safe. + Canceled construction of Safe. + + + + + + + + + This server is running an incorrect version of the server side application. You cannot play on this server. If you are the server admin please contact DayZ Epoch staff. + This server is running an incorrect version of the server side application. You cannot play on this server. If you are the server admin please contact DayZ Epoch staff. + + + + + + + + + You have an outdated version of epoch please download the correct version + You have an outdated version of epoch please download the correct version + + + + + + + + + Could not retive date and time from server disconect and retry. + Could not retive date and time from server disconect and retry. + + + + + + + + + You cannot lock this %1, you do not know the combination. + You cannot lock this %1, you do not know the combination. + + + + + + + + + That %1 is already being locked. + That %1 is already being locked. + + + + + + + + + Your %1 has been locked + Your %1 has been locked + + + + + + + + + %1 not setup yet. + %1 not setup yet. + + + + + + + + + You cannot pack this %1, you do not know the combination. + You cannot pack this %1, you do not know the combination. + + + + + + + + + That %1 is already being packed. + That %1 is already being packed. + + + + + + + + + Packing %1 move from this position to cancel within 5 seconds. + Packing %1 move from this position to cancel within 5 seconds. + + + + + + + + + Packing %1 canceled. + Packing %1 canceled. + + + + + + + + + Your %1 has been packed + Your %1 has been packed + + + + + + + + + That %1 is already being unlocked. + That %1 is already being unlocked. + + + + + + + + + %1 has been unlocked. + %1 has been unlocked. + + + + + + + + + Combination incorrect, %1 is still locked. + Combination incorrect, %1 is still locked. + + + + + + + + + You have successfully loaded %1 ammunition. + You have successfully loaded %1 ammunition. + + + + + + + + + You need %1 type of ammo to do this. + You need %1 type of ammo to do this. + + + + + + + + + Started cooking %1 + Started cooking %1 + + + + + + + + + Canceled cooking %1 + Canceled cooking %1 + + + + + + + + + Filling up %1, move to cancel. + Filling up %1, move to cancel. + + + + + + + + + %1 filled to %2 percent capacity. + %1 filled to %2 percent capacity. + + + + + + + + + Preparing to siphon, stand still to fill %1. + Preparing to siphon, stand still to fill %1. + + + + + + + + + You have filled %1 with fuel. + You have filled %1 with fuel. + + + + + + + + + \n\nThis building needs a %1 within %2 meters + \n\nThis building needs a %1 within %2 meters + + + + + + + + + Unable to build %1 nearby. + Unable to build %1 nearby. + + + + + + + + + Missing tool %1 + Missing tool %1 + + + + + + + + + Placing %1, move to cancel. + Placing %1, move to cancel. + + + + + + + + + Constructing %1 stage %2 of %3, move to cancel. + Constructing %1 stage %2 of %3, move to cancel. + + + + + + + + + You have setup your %2. Combination is %1 + You have setup your %2. Combination is %1 + + + + + + + + + Unable to downgrade %1 nearby. + Unable to downgrade %1 nearby. + + + + + + + + + You have downgraded %1. + You have downgraded %1. + + + + + + + + + \n\n%1 of %2 could not be added to your inventory. (not enough room?) + \n\n%1 of %2 could not be added to your inventory. (not enough room?) + + + + + + + + + You have repaired %1. + You have repaired %1. + + + + + + + + + Missing Parts after first check Item: %1 / %2 + Missing Parts after first check Item: %1 / %2 + + + + + + + + + Missing %1 more of %2 + Missing %1 more of %2 + + + + + + + + + \n\nChopping down tree, walk away at anytime to cancel. (%1/%2) + \n\nChopping down tree, walk away at anytime to cancel. (%1/%2) + + + + + + + + + \n\n%1 piles of wood has been successfully added in front of you. + \n\n%1 piles of wood has been successfully added in front of you. + + + + + + +