From 9a601182bb4edac97dd47c8bcd96991aec989d5e Mon Sep 17 00:00:00 2001 From: Zac Surplice Date: Thu, 7 Nov 2013 02:05:05 +1100 Subject: [PATCH] localization #3 --- SQF/dayz_code/actions/player_craftItem.sqf | 10 +- SQF/dayz_code/actions/player_harvestPlant.sqf | 2 +- SQF/dayz_code/actions/player_mineOre.sqf | 4 +- SQF/dayz_code/actions/player_upgrade.sqf | 6 +- SQF/dayz_code/actions/refuel.sqf | 6 +- SQF/dayz_code/actions/remove.sqf | 8 +- SQF/dayz_code/actions/repair.sqf | 4 +- SQF/dayz_code/actions/salvage.sqf | 6 +- SQF/dayz_code/actions/siphonFuel.sqf | 6 +- SQF/dayz_code/actions/tame_dog.sqf | 4 +- SQF/dayz_code/actions/tow_AttachStraps.sqf | 6 +- SQF/dayz_code/actions/tow_DetachStraps.sqf | 2 +- SQF/dayz_code/actions/trade_any_bicycle.sqf | 12 +- SQF/dayz_code/actions/trade_any_boat.sqf | 8 +- SQF/dayz_code/actions/trade_any_vehicle.sqf | 10 +- SQF/dayz_code/actions/trade_backpacks.sqf | 6 +- SQF/dayz_code/actions/trade_items.sqf | 12 +- SQF/dayz_code/actions/trade_items_wo_db.sqf | 10 +- SQF/dayz_code/actions/trade_weapons.sqf | 6 +- SQF/dayz_code/actions/vault_pitch.sqf | 2 +- SQF/dayz_epoch_b/stringtable.xml | 390 ++++++++++++++++++ 21 files changed, 455 insertions(+), 65 deletions(-) diff --git a/SQF/dayz_code/actions/player_craftItem.sqf b/SQF/dayz_code/actions/player_craftItem.sqf index 88b75f211..90df1acad 100644 --- a/SQF/dayz_code/actions/player_craftItem.sqf +++ b/SQF/dayz_code/actions/player_craftItem.sqf @@ -56,7 +56,7 @@ if("workshop" in _needNear) then { }; }; if(_abort) exitWith { - cutText [format["\n\nCrafting needs a %1 within %2 meters",_reason,_distance], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_149"),_reason,_distance], "PLAIN DOWN"]; TradeInprogress = false; }; @@ -202,7 +202,7 @@ if (_canDo) then { _textCreate = getText(configFile >> "CfgMagazines" >> _itemOut >> "displayName"); // Add crafted item - cutText [format["\n\nCrafted Item: %1 x %2",_textCreate,_countOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_150"),_textCreate,_countOut], "PLAIN DOWN"]; // sleep here sleep 1; @@ -213,7 +213,7 @@ if (_canDo) then { // Refund parts since we failed {player addMagazine _x;} forEach _temp_removed_array; - cutText [format["\n\nMissing Parts after first check Item: %1 / %2",_removed_total,_tobe_removed_total], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_151"),_removed_total,_tobe_removed_total], "PLAIN DOWN"]; }; } else { @@ -228,12 +228,12 @@ if (_canDo) then { } else { _textMissing = getText(configFile >> "CfgMagazines" >> _missing >> "displayName"); - cutText [format["\n\n%3 complete, missing %1 more of %2",_missingQty, _textMissing,_tradeComplete], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_152"),_missingQty, _textMissing,_tradeComplete], "PLAIN DOWN"]; _craft_doLoop = false; }; } else { _textMissing = getText(configFile >> "CfgWeapons" >> _missing >> "displayName"); - cutText [format["\n\nMissing Tool: %1",_textMissing], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_153"),_textMissing], "PLAIN DOWN"]; _craft_doLoop = false; }; }; diff --git a/SQF/dayz_code/actions/player_harvestPlant.sqf b/SQF/dayz_code/actions/player_harvestPlant.sqf index 614c2b9aa..342048c7d 100644 --- a/SQF/dayz_code/actions/player_harvestPlant.sqf +++ b/SQF/dayz_code/actions/player_harvestPlant.sqf @@ -111,7 +111,7 @@ if (count(_findNearestTree) >= 1) then { }; //diag_log format["DEBUG TREE DAMAGE: %1", _tree]; - cutText [format["\n\n%1 of %2 has been successfully added to your inventory.", _i,_text], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_154"), _i,_text], "PLAIN DOWN"]; } else { cutText [format[(localize "str_epoch_player_143"), _i,_text], "PLAIN DOWN"]; }; diff --git a/SQF/dayz_code/actions/player_mineOre.sqf b/SQF/dayz_code/actions/player_mineOre.sqf index c0642fb71..52c0e6a7f 100644 --- a/SQF/dayz_code/actions/player_mineOre.sqf +++ b/SQF/dayz_code/actions/player_mineOre.sqf @@ -97,7 +97,7 @@ if (count(_findNearestRock) >= 1) then { _counter = _counter + 1; }; - cutText [format["\n\nMining Ore, walk away at any time to cancel. (%1/%2)", _counter, _countOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_155"), _counter, _countOut], "PLAIN DOWN"]; if(_counter == _countOut) exitWith { _isOk = false; @@ -121,7 +121,7 @@ if (count(_findNearestRock) >= 1) then { }; diag_log format["DEBUG TREE DAMAGE: %1", _rock]; */ - cutText [format["\n\n%1 piles of ore has been successfully added in front of you.", _countOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_156"), _countOut], "PLAIN DOWN"]; } else { r_interrupt = false; diff --git a/SQF/dayz_code/actions/player_upgrade.sqf b/SQF/dayz_code/actions/player_upgrade.sqf index fcbc7312f..a3625e8d4 100644 --- a/SQF/dayz_code/actions/player_upgrade.sqf +++ b/SQF/dayz_code/actions/player_upgrade.sqf @@ -53,7 +53,7 @@ if(_IsNearPlot == 0) then { }; // exit if not allowed due to plot pole -if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format["Unable to upgrade %1 nearby.",_needText,_distance] , "PLAIN DOWN"]; }; +if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "str_epoch_player_157"),_needText,_distance] , "PLAIN DOWN"]; }; // get cursortarget from addaction _obj = _this select 3; @@ -159,9 +159,9 @@ if ((count _upgrade) > 0) then { _objectCharacterID = _combination; - cutText [format["You have upgraded %2. Combination is %1",_combination,_text], "PLAIN DOWN", 5]; + cutText [format[(localize "str_epoch_player_158"),_combination,_text], "PLAIN DOWN", 5]; } else { - cutText [format["You have upgraded %1.",_text], "PLAIN DOWN", 5]; + cutText [format[(localize "str_epoch_player_159"),_text], "PLAIN DOWN", 5]; }; PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,_objectID,_objectUID]; diff --git a/SQF/dayz_code/actions/refuel.sqf b/SQF/dayz_code/actions/refuel.sqf index 690214999..d27c4b6b1 100644 --- a/SQF/dayz_code/actions/refuel.sqf +++ b/SQF/dayz_code/actions/refuel.sqf @@ -37,7 +37,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"]; //diag_log ("refuel check: " + str(_newFuel) + " / " + str(_capacity)); - cutText [format["Preparing to refuel, stand still to drain %1.",_canText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_160"),_canText], "PLAIN DOWN"]; // alert zombies [player,20,true,(getPosATL player)] spawn player_alertZombies; @@ -123,7 +123,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"]; }; } else { - cutText [format["%1 cannot hold that much fuel.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_161"),_nameText], "PLAIN DOWN"]; _abort = true; }; @@ -133,7 +133,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"]; }; } else { - cutText [format["%1 cannot hold that much fuel.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_161"),_nameText], "PLAIN DOWN"]; _abort = true; }; }; diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index 9fbb615d4..3cd2cc9e0 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -63,7 +63,7 @@ if(_IsNearPlot >= 1) then { _nameVehicle = getText(configFile >> "CfgVehicles" >> _objType >> "displayName"); -cutText [format["Starting de-construction of %1.",_nameVehicle], "PLAIN DOWN"]; +cutText [format[(localize "str_epoch_player_162"),_nameVehicle], "PLAIN DOWN"]; // Alert zombies once. [player,50,true,(getPosATL player)] spawn player_alertZombies; @@ -129,7 +129,7 @@ while {_isOk} do { _proceed = false; }; - cutText [format["De-constructing %1 stage %2 of %3 walk away at anytime to cancel.", _nameVehicle, _counter,_limit], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_163"), _nameVehicle, _counter,_limit], "PLAIN DOWN"]; if(_counter == _limit) exitWith { _isOk = false; @@ -147,7 +147,7 @@ if(_brokenTool) then { _removeTool = ["ItemCrowbar","ItemToolbox"] call BIS_fnc_selectRandom; }; if(([player,_removeTool,1] call BIS_fnc_invRemove) > 0) then { - cutText [format["%1 broke cannot remove %2.",getText(configFile >> "CfgWeapons" >> _removeTool >> "displayName"),_nameVehicle], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_164"),getText(configFile >> "CfgWeapons" >> _removeTool >> "displayName"),_nameVehicle], "PLAIN DOWN"]; }; }; @@ -166,7 +166,7 @@ if (_proceed) then { publicVariableServer "PVDZE_obj_Delete"; }; - cutText [format["De-constructing %1.",_nameVehicle], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_165"),_nameVehicle], "PLAIN DOWN"]; _preventRefund = false; diff --git a/SQF/dayz_code/actions/repair.sqf b/SQF/dayz_code/actions/repair.sqf index 258153188..80be289d6 100644 --- a/SQF/dayz_code/actions/repair.sqf +++ b/SQF/dayz_code/actions/repair.sqf @@ -79,7 +79,7 @@ if (_section and _hasToolbox) then { _vehicle setvelocity [0,0,1]; //Success! - cutText [format["You have successfully attached %1 to the %2",_namePart,_nameType], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_166"),_namePart,_nameType], "PLAIN DOWN"]; }; @@ -95,7 +95,7 @@ if (_section and _hasToolbox) then { }; } else { - cutText [format["You need %1 to repair this",_namePart], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_167"),_namePart], "PLAIN DOWN"]; }; {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = []; diff --git a/SQF/dayz_code/actions/salvage.sqf b/SQF/dayz_code/actions/salvage.sqf index 41947a611..4e509e51a 100644 --- a/SQF/dayz_code/actions/salvage.sqf +++ b/SQF/dayz_code/actions/salvage.sqf @@ -89,10 +89,10 @@ if (_hasToolbox) then { if(_brokenPart) then { //Failed! - cutText [format["You have destroyed %1 while attempting to remove from %2",_namePart,_nameType], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_168"),_namePart,_nameType], "PLAIN DOWN"]; } else { //Success! - cutText [format["You have successfully removed %1 from the %2",_namePart,_nameType], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_169"),_namePart,_nameType], "PLAIN DOWN"]; }; } else { @@ -111,7 +111,7 @@ if (_hasToolbox) then { }; } else { - cutText [format["You need %1 to remove this part.",_namePart], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_170"),_namePart], "PLAIN DOWN"]; }; dayz_myCursorTarget = objNull; diff --git a/SQF/dayz_code/actions/siphonFuel.sqf b/SQF/dayz_code/actions/siphonFuel.sqf index e46b6e97a..f43fac5f5 100644 --- a/SQF/dayz_code/actions/siphonFuel.sqf +++ b/SQF/dayz_code/actions/siphonFuel.sqf @@ -120,7 +120,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"]; // Play sound [player,"refuel",0,false] call dayz_zombieSpeak; player addMagazine _canName; - cutText [format["%1 has been drained for %2 litres of Fuel",_nameText,_canSize], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_171"),_nameText,_canSize], "PLAIN DOWN"]; call fnc_usec_medic_removeActions; r_action = false; @@ -131,7 +131,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"]; }; } else { - cutText [format["%1 does not have enough fuel to siphon.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_172"),_nameText], "PLAIN DOWN"]; _abort = true; }; @@ -141,7 +141,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"]; }; } else { - cutText [format["%1 does not have enough fuel to siphon.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_172"),_nameText], "PLAIN DOWN"]; _abort = true; }; }; diff --git a/SQF/dayz_code/actions/tame_dog.sqf b/SQF/dayz_code/actions/tame_dog.sqf index ee30ffe1f..38af0c45e 100644 --- a/SQF/dayz_code/actions/tame_dog.sqf +++ b/SQF/dayz_code/actions/tame_dog.sqf @@ -58,8 +58,8 @@ if(_removed == _countIn) then { _dog setVariable ["fsm_handle", _fsmid]; _dog setVariable ["CharacterID", dayz_characterID, true]; - cutText [format["Dog consumed %1, and is now tamed.",_textRemoved], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_173"),_textRemoved], "PLAIN DOWN"]; } else { - cutText [format["Dog consumed %1, yet remains untamed.",_textRemoved], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_174"),_textRemoved], "PLAIN DOWN"]; }; }; \ No newline at end of file diff --git a/SQF/dayz_code/actions/tow_AttachStraps.sqf b/SQF/dayz_code/actions/tow_AttachStraps.sqf index 0a212285f..bbea9d88f 100644 --- a/SQF/dayz_code/actions/tow_AttachStraps.sqf +++ b/SQF/dayz_code/actions/tow_AttachStraps.sqf @@ -82,14 +82,14 @@ if(_IsNearVehicle >= 1) then { _vehicle attachTo [_towTruck,[1.3,-2,2.3]]; _towTruck setVariable ["DZEinTow", true, true]; _towTruck setVariable ["DZEvehicleInTow", _vehicle, true]; - cutText [format["%1 has been attached to Tow Truck.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_175"),_nameText], "PLAIN DOWN"]; }; } else { - cutText [format["Failed to attach %1 to Tow Truck.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_176"),_nameText], "PLAIN DOWN"]; }; } else { - cutText [format["%1 too large and cannot be towed.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_177"),_nameText], "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/tow_DetachStraps.sqf b/SQF/dayz_code/actions/tow_DetachStraps.sqf index 2e050ffd6..25ce058d8 100644 --- a/SQF/dayz_code/actions/tow_DetachStraps.sqf +++ b/SQF/dayz_code/actions/tow_DetachStraps.sqf @@ -67,7 +67,7 @@ if(_inTow) then { detach _vehicle; _towTruck setVariable ["DZEinTow", false, true]; _towTruck setVariable ["DZEvehicleInTow", objNull, true]; - cutText [format["%1 has been detached from Tow Truck.",_nameText], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_178"),_nameText], "PLAIN DOWN"]; _vehicle setvelocity [0,0,1]; }; diff --git a/SQF/dayz_code/actions/trade_any_bicycle.sqf b/SQF/dayz_code/actions/trade_any_bicycle.sqf index ca2b1e036..439e588c0 100644 --- a/SQF/dayz_code/actions/trade_any_bicycle.sqf +++ b/SQF/dayz_code/actions/trade_any_bicycle.sqf @@ -116,7 +116,7 @@ if (_qty >= _qty_in) then { player reveal _veh; - cutText [format[("Bought %3 for %1 %2."),_qty_in,_textPartIn,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_180"),_qty_in,_textPartIn,_textPartOut], "PLAIN DOWN"]; }; } else { @@ -165,10 +165,10 @@ if (_qty >= _qty_in) then { deleteVehicle _obj; - cutText [format[("Sold %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_181"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; }; } else { - cutText [format[("Cannot sell %1, tires are too damaged."),_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"]; }; }; @@ -176,7 +176,7 @@ if (_qty >= _qty_in) then { s_player_parts_crtl = -1; } else { - cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"]; }; dayzTradeResult = nil; }; @@ -185,9 +185,9 @@ if (_qty >= _qty_in) then { } else { _needed = _qty_in - _qty; if(_buy_o_sell == "buy") then { - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; } else { - cutText [format[("No %1 found within 20 meters."),_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_textPartIn] , "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/trade_any_boat.sqf b/SQF/dayz_code/actions/trade_any_boat.sqf index 774afcac0..f22ac7865 100644 --- a/SQF/dayz_code/actions/trade_any_boat.sqf +++ b/SQF/dayz_code/actions/trade_any_boat.sqf @@ -159,7 +159,7 @@ if (_qty >= _qty_in) then { deleteVehicle _obj; - cutText [format[("Sold %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_181"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; }; }; @@ -167,7 +167,7 @@ if (_qty >= _qty_in) then { s_player_parts_crtl = -1; } else { - cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"]; }; dayzTradeResult = nil; }; @@ -176,9 +176,9 @@ if (_qty >= _qty_in) then { } else { _needed = _qty_in - _qty; if(_buy_o_sell == "buy") then { - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; } else { - cutText [format[("No %1 found within 20 meters."),_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_textPartIn] , "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/trade_any_vehicle.sqf b/SQF/dayz_code/actions/trade_any_vehicle.sqf index b54dee5d0..195429724 100644 --- a/SQF/dayz_code/actions/trade_any_vehicle.sqf +++ b/SQF/dayz_code/actions/trade_any_vehicle.sqf @@ -185,10 +185,10 @@ if (_qty >= _qty_in) then { deleteVehicle _obj; - cutText [format[("Sold %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_181"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; }; } else { - cutText [format[("Cannot sell %1, tires are too damaged."),_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"]; }; }; @@ -196,7 +196,7 @@ if (_qty >= _qty_in) then { s_player_parts_crtl = -1; } else { - cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"]; }; dayzTradeResult = nil; }; @@ -205,9 +205,9 @@ if (_qty >= _qty_in) then { } else { _needed = _qty_in - _qty; if(_buy_o_sell == "buy") then { - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; } else { - cutText [format[("No %1 found within 20 meters."),_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_textPartIn] , "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/trade_backpacks.sqf b/SQF/dayz_code/actions/trade_backpacks.sqf index 3aeaa1042..4e5114143 100644 --- a/SQF/dayz_code/actions/trade_backpacks.sqf +++ b/SQF/dayz_code/actions/trade_backpacks.sqf @@ -112,13 +112,13 @@ if (_qty >= _qty_in) then { }; }; - cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_186"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; {player removeAction _x} forEach s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; } else { - cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"]; }; dayzTradeResult = nil; }; @@ -126,7 +126,7 @@ if (_qty >= _qty_in) then { } else { _needed = _qty_in - _qty; - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; }; TradeInprogress = false; \ No newline at end of file diff --git a/SQF/dayz_code/actions/trade_items.sqf b/SQF/dayz_code/actions/trade_items.sqf index 57fa09c0b..654fa28a0 100644 --- a/SQF/dayz_code/actions/trade_items.sqf +++ b/SQF/dayz_code/actions/trade_items.sqf @@ -35,7 +35,7 @@ _abort = false; if(_total_trades < 1) exitWith { _needed = _qty_in - _qty; - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; TradeInprogress = false; }; @@ -47,9 +47,9 @@ for "_x" from 1 to _total_trades do { // cutText ["Starting trade, stand still to complete.", "PLAIN DOWN"]; if(_total_trades == 1) then { - cutText [format[((localize "str_epoch_player_105")),_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"]; + cutText [format[(localize "str_epoch_player_187"),_tradeCounter,_total_trades] , "PLAIN DOWN"]; }; player playActionNow "Medic"; @@ -109,10 +109,10 @@ for "_x" from 1 to _total_trades do { // total of all parts _total_parts_out = _total_parts_out + _qty_out; - cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_186"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; } else { - cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"]; _abort = true; // Return items taken @@ -135,7 +135,7 @@ for "_x" from 1 to _total_trades do { } else { _needed = _qty_in - _qty; - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/trade_items_wo_db.sqf b/SQF/dayz_code/actions/trade_items_wo_db.sqf index 8ab3c2978..388f16abe 100644 --- a/SQF/dayz_code/actions/trade_items_wo_db.sqf +++ b/SQF/dayz_code/actions/trade_items_wo_db.sqf @@ -22,7 +22,7 @@ _total_trades = floor (_qty / _qty_in); if(_total_trades < 1) exitWith { _needed = _qty_in - _qty; - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; TradeInprogress = false; }; @@ -37,9 +37,9 @@ for "_x" from 1 to _total_trades do { _tradeCounter = _tradeCounter + 1; if(_total_trades == 1) then { - cutText [format[((localize "str_epoch_player_105")),_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"]; + cutText [format[(localize "str_epoch_player_187"),_tradeCounter,_total_trades] , "PLAIN DOWN"]; }; player playActionNow "Medic"; @@ -97,7 +97,7 @@ for "_x" from 1 to _total_trades do { player setVariable["humanity",_humanity,true]; }; - cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_186"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; } else { @@ -110,7 +110,7 @@ for "_x" from 1 to _total_trades do { } else { _needed = _qty_in - _qty; - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; }; sleep 1; diff --git a/SQF/dayz_code/actions/trade_weapons.sqf b/SQF/dayz_code/actions/trade_weapons.sqf index 99feb2b83..80273f66a 100644 --- a/SQF/dayz_code/actions/trade_weapons.sqf +++ b/SQF/dayz_code/actions/trade_weapons.sqf @@ -99,7 +99,7 @@ if (_qty >= _qty_in) then { player addMagazine _part_out; }; }; - cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_186"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; }; @@ -108,7 +108,7 @@ if (_qty >= _qty_in) then { s_player_parts_crtl = -1; } else { - cutText [format[("Insufficient Stock %1"),_textPartOut] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"]; }; dayzTradeResult = nil; }; @@ -116,7 +116,7 @@ if (_qty >= _qty_in) then { } else { _needed = _qty_in - _qty; - cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"]; + cutText [format[(localize "str_epoch_player_185"),_needed,_textPartIn] , "PLAIN DOWN"]; }; TradeInprogress = false; \ No newline at end of file diff --git a/SQF/dayz_code/actions/vault_pitch.sqf b/SQF/dayz_code/actions/vault_pitch.sqf index c9a2d6c1b..418200da2 100644 --- a/SQF/dayz_code/actions/vault_pitch.sqf +++ b/SQF/dayz_code/actions/vault_pitch.sqf @@ -163,7 +163,7 @@ if(!_cancel) then { PVDZE_obj_Publish = [_combination,_tent,[_dir,_location],"VaultStorageLocked"]; publicVariableServer "PVDZE_obj_Publish"; - cutText [format["You have setup your Safe. Combination is %1",_combination], "PLAIN DOWN", 5]; + cutText [format[(localize "str_epoch_player_179"),_combination], "PLAIN DOWN", 5]; }; } else { diff --git a/SQF/dayz_epoch_b/stringtable.xml b/SQF/dayz_epoch_b/stringtable.xml index 89980dedc..5c30ab7b2 100644 --- a/SQF/dayz_epoch_b/stringtable.xml +++ b/SQF/dayz_epoch_b/stringtable.xml @@ -4004,5 +4004,395 @@ + + \n\nCrafting needs a %1 within %2 meters + \n\nCrafting needs a %1 within %2 meters + + + + + + + + + \n\nCrafted Item: %1 x %2 + \n\nCrafted Item: %1 x %2 + + + + + + + + + \n\nMissing Parts after first check Item: %1 / %2 + \n\nMissing Parts after first check Item: %1 / %2 + + + + + + + + + \n\n%3 complete, missing %1 more of %2 + \n\n%3 complete, missing %1 more of %2 + + + + + + + + + \n\n%3 complete, missing %1 more of %2 + \n\n%3 complete, missing %1 more of %2 + + + + + + + + + \n\n%1 of %2 has been successfully added to your inventory. + \n\n%1 of %2 has been successfully added to your inventory. + + + + + + + + + \n\nMining Ore, walk away at any time to cancel. (%1/%2) + \n\nMining Ore, walk away at any time to cancel. (%1/%2) + + + + + + + + + \n\n%1 piles of ore has been successfully added in front of you. + \n\n%1 piles of ore has been successfully added in front of you. + + + + + + + + + Unable to upgrade %1 nearby. + Unable to upgrade %1 nearby. + + + + + + + + + You have upgraded %2. Combination is %1 + You have upgraded %2. Combination is %1 + + + + + + + + + You have upgraded %1. + You have upgraded %1. + + + + + + + + + Preparing to refuel, stand still to drain %1. + Preparing to refuel, stand still to drain %1. + + + + + + + + + %1 cannot hold that much fuel. + %1 cannot hold that much fuel. + + + + + + + + + Starting de-construction of %1. + Starting de-construction of %1. + + + + + + + + + De-constructing %1 stage %2 of %3 walk away at anytime to cancel. + De-constructing %1 stage %2 of %3 walk away at anytime to cancel. + + + + + + + + + %1 broke cannot remove %2. + %1 broke cannot remove %2. + + + + + + + + + De-constructing %1. + De-constructing %1. + + + + + + + + + You have successfully attached %1 to the %2 + You have successfully attached %1 to the %2 + + + + + + + + + You need %1 to repair this + You need %1 to repair this + + + + + + + + + You have destroyed %1 while attempting to remove from %2 + You have destroyed %1 while attempting to remove from %2 + + + + + + + + + You have successfully removed %1 from the %2 + You have successfully removed %1 from the %2 + + + + + + + + + You need %1 to remove this part. + You need %1 to remove this part. + + + + + + + + + %1 has been drained for %2 litres of Fuel + %1 has been drained for %2 litres of Fuel + + + + + + + + + %1 does not have enough fuel to siphon. + %1 does not have enough fuel to siphon. + + + + + + + + + Dog consumed %1, and is now tamed. + Dog consumed %1, and is now tamed. + + + + + + + + + Dog consumed %1, yet remains untamed. + Dog consumed %1, yet remains untamed. + + + + + + + + + %1 has been attached to Tow Truck. + %1 has been attached to Tow Truck. + + + + + + + + + Failed to attach %1 to Tow Truck. + Failed to attach %1 to Tow Truck. + + + + + + + + + %1 too large and cannot be towed. + %1 too large and cannot be towed. + + + + + + + + + %1 has been detached from Tow Truck. + %1 has been detached from Tow Truck. + + + + + + + + + You have setup your Safe. Combination is %1 + You have setup your Safe. Combination is %1 + + + + + + + + + Bought %3 for %1 %2. + Bought %3 for %1 %2. + + + + + + + + + Sold %1 %2 for %3 %4 + Sold %1 %2 for %3 %4 + + + + + + + + + Cannot sell %1, tires are too damaged. + Cannot sell %1, tires are too damaged. + + + + + + + + + Insufficient Stock %1 + Insufficient Stock %1 + + + + + + + + + Need %1 More %2 + Need %1 More %2 + + + + + + + + + No %1 found within 20 meters. + No %1 found within 20 meters. + + + + + + + + + Traded %1 %2 for %3 %4 + Traded %1 %2 for %3 %4 + + + + + + + + + Starting trade, stand still to complete trade %1 of %2. + Starting trade, stand still to complete trade %1 of %2. + + + + + + +