mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
localization
This commit is contained in:
parent
54c9cadf38
commit
61583ef35f
@ -53,7 +53,7 @@ _wheelHitPointSelections = _wheelHitPointsWithSelections select 1;
|
||||
|
||||
// remove wheel action
|
||||
_name = format ["Remove_%1", _x];
|
||||
_text = "Remove Wheel"; //@todo localize
|
||||
_text = localize "STR_ACE_Repair_RemoveWheel";
|
||||
|
||||
_condition = {[_this select 1, _this select 0, _this select 2 select 0] call DFUNC(canRemoveWheel)};
|
||||
_statement = {[_this select 1, _this select 0, _this select 2 select 0] call DFUNC(removeWheel)};
|
||||
@ -64,7 +64,7 @@ _wheelHitPointSelections = _wheelHitPointsWithSelections select 1;
|
||||
|
||||
// replace wheel action
|
||||
_name = format ["Replace_%1", _x];
|
||||
_text = "Replace Wheel"; //@todo localize
|
||||
_text = localize "STR_ACE_Repair_ReplaceWheel";
|
||||
|
||||
_condition = {[_this select 1, _this select 0, _this select 2 select 0] call DFUNC(canReplaceWheel)};
|
||||
_statement = {[_this select 1, _this select 0, _this select 2 select 0] call DFUNC(replaceWheel)};
|
||||
@ -84,7 +84,15 @@ _wheelHitPointSelections = _wheelHitPointsWithSelections select 1;
|
||||
private ["_name", "_text", "_icon", "_selection", "_condition", "_statement"];
|
||||
|
||||
_name = format ["Repair_%1", _x];
|
||||
_text = format ["Repair %1", _x]; //@todo localize
|
||||
|
||||
_text = format ["STR_ACE_Repair_%1", _x];
|
||||
|
||||
if (isLocalized _text) then {
|
||||
_text = format [localize "STR_ACE_Repair_RepairHitpoint", localize _text];
|
||||
} else {
|
||||
_text = format [localize "STR_ACE_Repair_RepairHitpoint", _x];
|
||||
};
|
||||
|
||||
_icon = "";
|
||||
_selection = "";
|
||||
|
||||
|
@ -17,6 +17,7 @@ _unit = _this select 0;
|
||||
_vehicle = _this select 1;
|
||||
_hitPoint = _this select 2;
|
||||
|
||||
|
||||
// get current hitpoint damage
|
||||
private "_hitPointDamage";
|
||||
_hitPointDamage = _vehicle getHitPointDamage _hitPoint;
|
||||
@ -37,8 +38,5 @@ _wheel setdamage _damage;
|
||||
|
||||
// display text message if enabled
|
||||
if (GVAR(DisplayTextOnRepair)) then {
|
||||
private "_text";
|
||||
_text = "WHEEL REMOVED";
|
||||
|
||||
[_text] call EFUNC(common,displayTextStructured);
|
||||
[localize "STR_ACE_Repair_RemovedWheel"] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
@ -38,8 +38,5 @@ deleteVehicle _wheel;
|
||||
|
||||
// display text message if enabled
|
||||
if (GVAR(DisplayTextOnRepair)) then {
|
||||
private "_text";
|
||||
_text = "WHEEL REMPLACED";
|
||||
|
||||
[_text] call EFUNC(common,displayTextStructured);
|
||||
[localize "STR_ACE_Repair_ReplacedWheel"] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
@ -26,12 +26,8 @@ if !(_hitPoint in ([_vehicle] call EFUNC(common,getHitPoints))) exitWith {};
|
||||
private "_time";
|
||||
_time = 10;
|
||||
|
||||
// get string of the hitpoint
|
||||
private "_text";
|
||||
_text = "REMOVE WHEEL";
|
||||
|
||||
// open the loading bar
|
||||
[_time, [_unit, _vehicle, _hitPoint], {(_this select 0) call DFUNC(doRemoveWheel)}, {hint "abort"}, _text, {true}, []] call EFUNC(common,progressBar);
|
||||
[_time, [_unit, _vehicle, _hitPoint], {(_this select 0) call DFUNC(doRemoveWheel)}, {[localize "STR_ACE_Common_ActionAborted"] call EFUNC(common,displayTextStructured);}, localize "STR_ACE_Repair_RemovingWheel", {true}, []] call EFUNC(common,progressBar);
|
||||
|
||||
// do animation
|
||||
[_unit] call EFUNC(common,goKneeling);
|
||||
|
@ -40,12 +40,8 @@ if (isNull _wheel) exitWith {};
|
||||
private "_time";
|
||||
_time = 10;
|
||||
|
||||
// get string of the hitpoint
|
||||
private "_text";
|
||||
_text = "REPLACE WHEEL";
|
||||
|
||||
// open the loading bar
|
||||
[_time, [_unit, _vehicle, _hitPoint, _wheel], {(_this select 0) call DFUNC(doReplaceWheel)}, {[objNull, _this select 0 select 3] call DEFUNC(common,claim); hint "abort"}, _text, {true}, []] call EFUNC(common,progressBar);
|
||||
[_time, [_unit, _vehicle, _hitPoint, _wheel], {(_this select 0) call DFUNC(doReplaceWheel)}, {[objNull, _this select 0 select 3] call DEFUNC(common,claim); [localize "STR_ACE_Common_ActionAborted"] call EFUNC(common,displayTextStructured);}, localize "STR_ACE_Repair_ReplacingWheel", {true}, []] call EFUNC(common,progressBar);
|
||||
|
||||
// do animation
|
||||
[_unit] call EFUNC(common,goKneeling);
|
||||
|
@ -27,6 +27,59 @@
|
||||
<Russian>Запасное колесо</Russian>
|
||||
</Key>
|
||||
|
||||
<Key ID="STR_ACE_Repair_ReplaceWheel">
|
||||
<English>Change Wheel</English>
|
||||
<German>Reifen wechseln</German>
|
||||
<Spanish>Cambiar rueda</Spanish>
|
||||
<French>Changer Roue</French>
|
||||
<Polish>Wymień koło</Polish>
|
||||
<Czech>Vyměňit kolo</Czech>
|
||||
<Portuguese>Trocar Roda</Portuguese>
|
||||
<Italian>Sostituisci la ruota</Italian>
|
||||
<Hungarian>Kerék cseréje</Hungarian>
|
||||
<Russian>Поменять колесо</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_ReplacingWheel">
|
||||
<English>Replacing Wheel ...</English>
|
||||
<German>Ersetze Reifen ...</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_ReplacedWheel">
|
||||
<English>Wheel replaced</English>
|
||||
<German>Reifen ersetzt</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_RemoveWheel">
|
||||
<English>Remove Wheel</English>
|
||||
<German>Reifen entfernen</German>
|
||||
<Spanish>Quitar rueda</Spanish>
|
||||
<French>Démonter Roue</French>
|
||||
<Polish>Zdejmij koło</Polish>
|
||||
<Czech>Odstranit Kolo</Czech>
|
||||
<Portuguese>Remover Roda</Portuguese>
|
||||
<Italian>Rimuovi la ruota</Italian>
|
||||
<Hungarian>Kerék leszerelése</Hungarian>
|
||||
<Russian>Снять колесо</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_RemovingWheel">
|
||||
<English>Removing Wheel ...</English>
|
||||
<German>Entferne Reifen ...</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_RemovedWheel">
|
||||
<English>Wheel removed</English>
|
||||
<German>Reifen entfernt</German>
|
||||
</Key>
|
||||
|
||||
<Key ID="STR_ACE_Repair_RepairHitpoint">
|
||||
<English>Repair %1</English>
|
||||
<German>Reparieren %1</German>
|
||||
<Spanish>Reparación %1</Spanish>
|
||||
<French>Réparer %1</French>
|
||||
<Polish>Napraw %1</Polish>
|
||||
<Czech>Opravit %1</Czech>
|
||||
<Portuguese>Reparar %1</Portuguese>
|
||||
<Italian>Ripara %1</Italian>
|
||||
<Hungarian>Szerelés %1</Hungarian>
|
||||
<Russian>Ремонт %1</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_Repair">
|
||||
<English>Repair >></English>
|
||||
<German>Reparieren >></German>
|
||||
|
Loading…
Reference in New Issue
Block a user