mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
localization
This commit is contained in:
parent
f734aeee95
commit
4607fd8605
@ -4,7 +4,7 @@ class CfgVehicles {
|
||||
class CAManBase: Man {
|
||||
class ACE_Actions {
|
||||
class GVAR(ReloadLauncher) {
|
||||
displayName = "RELOAD LAUNCHERS";
|
||||
displayName = "$STR_ACE_ReloadLaunchers_LoadLauncher";
|
||||
selection = "launcher";
|
||||
distance = 4;
|
||||
condition = "";
|
||||
|
@ -29,13 +29,8 @@ _loadableMissiles = [_unit, _weapon] call FUNC(getLoadableMissiles);
|
||||
{
|
||||
private ["_name", "_displayName", "_statement", "_condition", "_action"];
|
||||
|
||||
/*
|
||||
getText (configFile >> "CfgWeapons" >> _weapon >> "displayName")
|
||||
getText (configFile >> "CfgMagazines" >> _x >> "displayName")
|
||||
*/
|
||||
|
||||
_name = format [QGVAR(Missile_%1), _x];
|
||||
_displayName = format ["RELOAD %1", _x];
|
||||
_displayName = format [localize "STR_ACE_ReloadLaunchers_LoadMagazine", getText (configFile >> "CfgMagazines" >> _x >> "displayName")];
|
||||
|
||||
_statement = {
|
||||
(_this select 2) call DFUNC(load);
|
||||
|
@ -34,15 +34,15 @@ _onSuccess = {
|
||||
(_this select 0 select 0) removeMagazine (_this select 0 select 3);
|
||||
["reloadLauncher", _this select 0 select 0, _this select 0] call DEFUNC(common,targetEvent);
|
||||
|
||||
["WEAPON RELOADED"] call DEFUNC(common,displayTextStructured);
|
||||
[localize "STR_ACE_ReloadLaunchers_LauncherLoaded"] call DEFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
_onFailure = {
|
||||
["WEAPON NOT RELOADED"] call DEFUNC(common,displayTextStructured);
|
||||
[localize "STR_ACE_Common_ActionAborted"] call DEFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
_condition = {
|
||||
(_this select 0) call DFUNC(canLoad) && {(_this select 0 select 0) distance (_this select 0 select 1) < 4}
|
||||
};
|
||||
|
||||
[_reloadTime, [_unit, _target, _weapon, _magazine], _onSuccess, _onFailure, "RELOADING WEAPON", _condition] call EFUNC(common,progressBar);
|
||||
[_reloadTime, [_unit, _target, _weapon, _magazine], _onSuccess, _onFailure, localize "STR_ACE_ReloadLaunchers_LoadingLauncher", _condition] call EFUNC(common,progressBar);
|
||||
|
24
addons/reloadlaunchers/stringtable.xml
Normal file
24
addons/reloadlaunchers/stringtable.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Edited with tabler - 2014-12-16 -->
|
||||
<Project name="ACE">
|
||||
<Package name="ReloadLaunchers">
|
||||
<Key ID="STR_ACE_ReloadLaunchers_LoadLauncher">
|
||||
<English>Load launcher</English>
|
||||
<German>Panzerabwehr laden</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_ReloadLaunchers_LoadingLauncher">
|
||||
<English>Loading launcher ...</English>
|
||||
<German>Panzerabwehr wird geladen ...</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_ReloadLaunchers_LauncherLoaded">
|
||||
<English>Launcher loaded</English>
|
||||
<German>Panzerabwehr geladen</German>
|
||||
</Key>
|
||||
|
||||
<Key ID="STR_ACE_ReloadLaunchers_LoadMagazine">
|
||||
<English>Load %1</English>
|
||||
<German>Lade %1</German>
|
||||
</Key>
|
||||
</Package>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user