localization

This commit is contained in:
commy2 2015-03-22 14:42:47 +01:00
parent f734aeee95
commit 4607fd8605
4 changed files with 29 additions and 10 deletions

View File

@ -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 = "";

View File

@ -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);

View File

@ -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);

View 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>