Skip to content

Commit

Permalink
Merge pull request #419 from 1kuemmel1/Add-Localization
Browse files Browse the repository at this point in the history
Add: Localization (Stringtable.xml)
  • Loading branch information
Vdauphin authored Nov 8, 2017
2 parents f7fe900 + 559fd19 commit 407903a
Show file tree
Hide file tree
Showing 54 changed files with 2,259 additions and 657 deletions.
240 changes: 120 additions & 120 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/def/param.hpp

Large diffs are not rendered by default.

175 changes: 38 additions & 137 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/doc.sqf
Original file line number Diff line number Diff line change
@@ -1,158 +1,59 @@
player createDiarySubject ["Documentation","Documentation"];
private _MainCategory = (localize "STR_BTC_HAM_DOC_TITLE");
player createDiarySubject [_MainCategory, _MainCategory];

player createDiaryRecord ["Documentation", ["Headless & Data base", "
<img image='\a3\ui_f\data\map\vehicleicons\iconvirtual_ca.paa' width='20' height='20'/> This mission automatically uses one Headless client when available.<br/><br/>
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\download_ca.paa' width='20' height='20'/> This mission has a data base system. Enemy units, towns, hideouts, cache, objects created by players or Zeus, vehicles, players markers (not lines) on global channel are saved. All admin can save mission progress at any time with his self interaction key.
"]
];
//Headless and Data base
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_HEADLESS_TITLE"),(localize "STR_BTC_HAM_DOC_HEADLESS_TEXT")]];

player createDiaryRecord ["Documentation", ["Wounds", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\interact_ca.paa' width='20' height='20'/> <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\heal_ca.paa' width='20' height='20'/> Use the interaction menu to treat your wounds.<br/>
Keep in mind that all the actions will be available, even if you do not need them. It is always recommended examine first.
"]
];
//Wounds
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_WOUNDS_TITLE"),(localize "STR_BTC_HAM_DOC_WOUNDS_TEXT")]];

player createDiaryRecord ["Documentation", ["Deafness", "
<img image='\z\ace\addons\hearing\UI\Icon_Module_Hearing_ca.paa' width='20' height='20'/> Use the earplugs to protect your ears to avoid combat deafness.<br/>
You can put them on with your self interaction key.<br/><br/>
"]
];
//Deafness
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_DEAFNESS_TITLE"),(localize "STR_BTC_HAM_DOC_DEAFNESS_TEXT")]];

player createDiaryRecord ["Documentation", ["Vehicles", "
<marker name='blufor_base'><img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\destroy_ca.paa' width='20' height='20' color='#FFBF00'/> Respawn:</marker><br/>
When a vehicle is destroyed it will not respawn in base, you need to tow or lift it back to base and repair it near the logistic point (Interact with the red box). Helicopter wrecks can only be lifted. <br/>
The Chinook is the only exception, it will respawn after 30 seconds. <br/><br/>
<marker name='blufor_base'> <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\rearm_ca.paa' width='20' height='20' color='#FFBF00'/> Rearm:</marker><br/>
You can also rearm them by spawning the corresponding caliber at logistic point (Interact with the red box, select the vehicle type and caliber). Carry the ammo created and interact with the vehicle to rearm. This only works if rearming is setting on entire magazine or amount based on caliber (not for entire vehicle setting).
"]
];
//Vehicles
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_VEHICLES_TITLE"),(localize "STR_BTC_HAM_DOC_VEHICLES_TEXT")]];

player createDiaryRecord ["Documentation", ["Side Mission", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\whiteboard_ca.paa' width='20' height='20'/> Side missions are really usefull to rise your reputation level.<br/>
A side mission can be requested by the officer with his self interaction menu.<br/>
If you don't want to complete a task, you can always abort it with the self interaction menu.
"]
];
//Side Mission
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_SIDEMISSION_TITLE"),(localize "STR_BTC_HAM_DOC_SIDEMISSION_TEXT")]];

player createDiaryRecord ["Documentation", ["FOB", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\move1_ca.paa' width='20' height='20' /> <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\run_ca.paa' width='20' height='20' /> <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\move2_ca.paa' width='20' height='20' /> <marker name='blufor_base'>FOB:</marker><br/>
In this mission a FOB is a forward spawn point, to create a FOB approach the red box at the logistic point and require a blue container.<br/>
- <img image='\A3\Ui_f\data\Map\Markers\NATO\b_hq.paa' width='20' height='20'/> <marker name='blufor_base'>Deploy:</marker> <br/>
Move it where you want to deploy a new FOB and interact with it to set it up. Keep in mind that you can not deploy a FOB close to the main base (2.500m) and the terrain needs to be flat.<br/><br/>
- <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\interact_ca.paa' width='20' height='20'/> <marker name='blufor_base'>Dismantle:</marker> <br/>
You can dismantle a FOB by interacting with the flag on the HQ roof.
"]
];
//FOB
player createDiaryRecord [_MainCategory, ["FOB", (localize "STR_BTC_HAM_DOC_FOB_TEXT")]];

player createDiaryRecord ["Documentation", ["Sling loading", "
=BTC= Lift will not replace the A3 sling loading, you can use both.<br/><br/>
<img image='\A3\Structures_F_Heli\VR\Helpers\Data\VR_Symbol_Heli_Slingloading_CA.paa' width='20' height='20'/> <img image='\A3\air_f_beta\Heli_Transport_01\Data\UI\Map_Heli_Transport_01_base_CA.paa' width='20' height='20'/> Lifting an object is pretty simple. Get in a chopper as pilot, hover above the object and interact with the chopper to deploy ropes.<br/>
When you are in the right position a new scroll wheel action will appear ('HOOK'). If you want you can open the HUD to facilitate the operation.<br/>
<img image='\z\ace\addons\logistics_wirecutter\ui\wirecutter_ca.paa' width='20' height='20'/> To release an object open you self interaction menu and select 'CUT ROPES'.
"]
];
//Sling loading
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_SLING_TITLE"),(localize "STR_BTC_HAM_DOC_SLING_TEXT")]];

player createDiaryRecord ["Documentation", ["Logistic point", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\repair_ca.paa' width='20' height='20'/> <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\rearm_ca.paa' width='20' height='20'/> At the logistic point you can require new objects (like ammo, fortifications, supplies for the side missions...) and repair destroyed vehicles.
"]
];
//Logistic point
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_LOGISTICP_TITLE"),(localize "STR_BTC_HAM_DOC_LOGISTICP_TEXT")]];

player createDiaryRecord ["Documentation", ["Logistic", "
<marker name='blufor_base'>Cargo System:</marker><br/>
- <img image='a3\ui_f\data\IGUI\Cfg\Actions\loadVehicle_ca.paa' width='20' height='20'/> <marker name='blufor_base'>Load:</marker> You can load objects inside vehicles. Approach the object you want to load and interact with it.<br/>
Select 'LOAD IN' option.<br/>
After that interact with the vehicle and select 'LOAD object selected' option.<br/>
The object has to be close to the vehicle.<br/><br/>
- <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\search_ca.paa' width='20' height='20'/> <marker name='blufor_base'>Unload:</marker> You can unload an object from a vehicle interacting with it. You can be inside the vehicle (personal interaction) or outside (object interaction).<br/>
Select the option 'CHECK CARGO', then choose the object you want to unload from the list, and click 'UNLOAD'.<br/>
If you are inside a chopper the object will be paradropped with a chute. If your height is too low, the object will crash down.<br/>
Every vehicle has a 'CARGO CAPACITY' (CC in game), and every object has a 'REQUIRED CAPACITY' value (RC in game.)<br/>
You can check those values in game with 'LOAD IN' and 'CHECK CARGO' options.<br/><br/><br/>
<marker name='blufor_base'>Towing system:</marker><br/>
To tow a vehicle interact with it and select the option 'HOOK'.<br/>After that place the tow vehicle in front of it and select 'TOW' in the interaction menu.<br/>
If the two vehicles are too far away or the vehicle can't tow that load (Car can't tow truck or tank), the option will be disabled.<br/>
To unhook interact with one of the two vehicles and select the option 'UNHOOK'.<br/><br/>
<marker name='blufor_base'>Place option:</marker><br/>
With this option you can move heavy objects to build small outpost or base.<br/>
When you select the option an hint will show all the keys required to move the object.
"]
];
//Logistic
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_LOGISTIC_TITLE"),(localize "STR_BTC_HAM_DOC_LOGISTIC_TEXT")]];

player createDiaryRecord ["Documentation", ["Hideout", "
The hideouts are a place where the Oplitas organize their movements.<br/>
They send reinforcements from here and can attack the closest city.<br/>
If you notice a lot of activity in an area, probably there is an hideout closeby.<br/>
If you want to defeat the Oplitas, you need to destroy all their hideouts.<br/>
Here an example of an hideout:<br/><br/>
<img image='core\img\hideout.jpg' width='256' height='256'/><br/><br/>
To destroy an hideout just place a satchel near the ammo box, it's close to the flag, and blow it off!
"]
];
//Hideout
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_HIDEOUT_TITLE"),(localize "STR_BTC_HAM_DOC_HIDEOUT_TEXT")]];

player createDiaryRecord ["Documentation", ["IED", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\interact_ca.paa' width='20' height='20'/> Any object could be an IED, approach it carefully (DO NOT rotate while your are walking: prefer walk, stop, rotate, walk again etc). Turn On your mine detector (VMH3 or VMMH3) and search for a charge in a circle of 2 meter around.<br/>
<img image='\z\ace\addons\explosives\UI\Defuse_ca.paa' width='20' height='20'/>
If you are an engineer and have a defusal kit, you can disarm it.<br/>
You can also blow them off with high caliber and explosive satchels.
"]
];
//IED
player createDiaryRecord [_MainCategory, ["IED", (localize "STR_BTC_HAM_DOC_IED_TEXT")]];

player createDiaryRecord ["Documentation", ["Intel", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\map_ca.paa' width='20' height='20'/> Intel can be retrieved in the following ways:<br/>
- <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\search_ca.paa' width='13' height='13'/> Searching dead bodies<br/>
- <img image='\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\instructor_ca.paa' width='13' height='13'/> Interrogate prisoner<br/>
- <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\meet_ca.paa' width='13' height='13'/> Talking to civilians<br/><br/>
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\talk_ca.paa' width='20' height='20'/> Keep in mind that only the interpreter can talk to civilians and they can lie if your reputation level is low.<br/><br/>
When you find an intel from a dead body or interrogate a prisoner, a marker will appear in the map. Remember, prisoner have a random number of intel more or less interesting.<br/>
There are two types of marker:<br/>
- Red question mark (<img image='\A3\ui_f\data\map\markers\handdrawn\unknown_CA.paa' width='13' height='13' color='#ff0000'/>): ammo cache intel<br/>
- Red esclamation mark (<img image='\A3\ui_f\data\map\markers\handdrawn\warning_CA.paa' width='13' height='13' color='#ff0000'/>): hideout intel<br/><br/><br/>
When you destroy an hideout or an ammo cache, all the markers related to it will be deleted.
"]
];

player createDiaryRecord ["Documentation", ["Reputation", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\talk_ca.paa' width='20' height='20'/> Reputation can be ask to civilian<br/>
Bad actions cause bad effetcs.<br/>
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\meet_ca.paa' width='20' height='20'/> Helping the local population by fighting the Oplitas and disarming IED's will rise your reputation; killing civilians, mutilating alive/dead civilians, firing near civilians for no reason, damaging/destroying buildings, losing vehicles, player respawns will decrease your repution. At the beginning you have a very low reputation level, so civilians won't help you in revealing important information about the Oplitas, they will likely lie instead.<br/>
Aborting a side mission does not affect reputation.
"]
];

player createDiaryRecord ["Documentation", ["Orders", "
Any player can give orders to civilians.<br/>
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\interact_ca.paa' width='20' height='20'/>To do this, just open your self interaction menu and select 'ORDERS' or use one of the shortcuts. Shortcuts can changed under 'configure >> controls>> configure addons >> Hearts and Minds: Mission (drop down menu)'.<br/><br/>
Your options are:<br/>
- STOP<br/>
- GET DOWN<br/>
- GO AWAY<br/><br/>
//Intel
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_INTEL_TITLE"),(localize "STR_BTC_HAM_DOC_INTEL_TEXT")]];

If you want to give an order to just one unit, interact with it (object interaction).<br/>
//Reputation
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_REPUTATION_TITLE"),(localize "STR_BTC_HAM_DOC_REPUTATION_TEXT")]];

<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\meet_ca.paa' width='20' height='20'/> You can also drop leaflets to ask all civilians in a circle of 200m to evacuate to a religious building (if not available a safe area) with a drone.
//Orders
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_ORDERS_TITLE"),(localize "STR_BTC_HAM_DOC_ORDERS_TEXT")]];

"]
];
//Traffic
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_TRAFFIC_TITLE"),(localize "STR_BTC_HAM_DOC_TRAFFIC_TEXT")]];

player createDiaryRecord ["Documentation", ["Traffic", "
<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\meet_ca.paa' width='20' height='20'/> <img image='\A3\soft_f_gamma\van_01\Data\UI\map_van_01_box_CA.paa' width='20' height='20'/> Civilians are travelling by vehicle across cities. If your reputation is higher than normal, you can ask for a lift to a location chosen on the map. If you bump into a Oplitas patrol, don't worry, the civilian driver will do their best to hide you in the car. <br/>
"]
];
//Gear
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_GEAR_TITLE"),(localize "STR_BTC_HAM_DOC_GEAR_TEXT")]];

player createDiaryRecord ["Documentation", ["Gear", "
<img image='\A3\Ui_f\data\Logos\a_64_ca.paa' width='20' height='20'/> You can choose your gear at the red box inside the base. Located at the spawn point.<br/>
"]
];

player createDiaryRecord ["Documentation", ["Interaction", "
<img image='\z\ace\addons\interaction\UI\Icon_Module_Interaction_ca.paa' width='20' height='20'/> Use ACE 3 interactions system.
"]
];
//Interaction
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_INTERACTION_TITLE"),(localize "STR_BTC_HAM_DOC_INTERACTION_TEXT")]];

player createDiaryRecord ["Documentation", [
"Version",
//Version
player createDiaryRecord [_MainCategory, [(localize "STR_BTC_HAM_DOC_VERSION_TITLE"),
format ["<img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\download_ca.paa' width='20' height='20'/> Version %1 <img image='\A3\ui_f\data\igui\cfg\simpleTasks\types\download_ca.paa' width='20' height='20'/>",(str(btc_version) + ".3")]
]
];
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
0 call btc_fnc_task_set_done;

hint "All the hideouts are destroyed, finally the Oplitas has been defeated! Mission accomplished";

hint (localize "STR_BTC_HAM_O_COMMON_ENDMISSION"); //All the hideouts are destroyed, finally the Oplitas has been defeated! Mission accomplished
while {true} do
{
hintSilent "All the hideouts are destroyed, finally the Oplitas has been defeated! Mission accomplished";
hintSilent (localize "STR_BTC_HAM_O_COMMON_ENDMISSION"); //All the hideouts are destroyed, finally the Oplitas has been defeated! Mission accomplished
sleep 1;
};
};
10 changes: 5 additions & 5 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/intro.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ private ["_color","_array"];
_color = [1,0.5,0,1];

_array = [
['\A3\ui_f\data\igui\cfg\simpleTasks\types\run_ca.paa',_color, getPos btc_gear_object, 1.1, 1.1, 0, "Arsenal/Re-deploy", 1],
['\A3\ui_f\data\igui\cfg\simpleTasks\types\run_ca.paa',_color, getPos btc_gear_object, 1.1, 1.1, 0, (localize "STR_BTC_HAM_INTRO_ARSENAL_REDEPLOY"), 1], //Arsenal/Re-deploy
['\A3\Ui_f\data\Logos\a_64_ca.paa',_color, [getPos btc_gear_object select 0,getPos btc_gear_object select 1,(getPos btc_gear_object select 2) + 2], 1.1, 1.1, 0, "", 1],
//['\A3\ui_f\data\map\vehicleicons\iconCar_ca.paa',_color, [getPos btc_create_object select 0,getPos btc_create_object select 1,(getPos btc_create_object select 2) + 5], 0.9, 0.9, 90, "", 1],
['\A3\ui_f\data\igui\cfg\simpleTasks\types\repair_ca.paa',_color, [getPos btc_create_object select 0,getPos btc_create_object select 1,(getPos btc_create_object select 2) + 2.5], 0.9, 0.9, 0, "", 1],
['\A3\ui_f\data\igui\cfg\simpleTasks\types\rearm_ca.paa',_color, getPos btc_create_object, 0.9, 0.9, 0, "Rearm/Repair and Objects", 1]
['\A3\ui_f\data\igui\cfg\simpleTasks\types\rearm_ca.paa',_color, getPos btc_create_object, 0.9, 0.9, 0, (localize "STR_BTC_HAM_INTRO_LOGPOINT"), 1] //Rearm/Repair and Objects
];
if (!isNil "btc_helo_1") then {_array pushBack ['\A3\ui_f\data\map\vehicleicons\iconhelicopter_ca.paa',[0.7,0,0,1], getPos btc_helo_1, 1.1, 1.1, 0, "Only Respawnable", 1];};
if (!isNil "btc_helo_1") then {_array pushBack ['\A3\ui_f\data\map\vehicleicons\iconhelicopter_ca.paa',[0.7,0,0,1], getPos btc_helo_1, 1.1, 1.1, 0, (localize "STR_BTC_HAM_INTRO_ONLYRESPAWN"), 1];}; //Only Respawnable

[getMarkerPos "btc_base","Base overview. Loading ...",20,30,240,0,_array,0] call BIS_fnc_establishingShot;
[getMarkerPos "btc_base",(localize "STR_BTC_HAM_INTRO_LOADINGTXT"),20,30,240,0,_array,0] call BIS_fnc_establishingShot;

enableSaving [false,false];
enableSaving [false,false];
26 changes: 13 additions & 13 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,39 @@ _type = _this select 0;

switch (_type) do {
case 0 : {
hint "Cache destroyed!";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_0"); //Cache destroyed!
};
case 1 : {
hint "Intel about an ammo cache found! Map updated";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_1"); //Intel about an ammo cache found! Map updated
};
case 2 : {
hint format ["Hideout destroyed! %1 remaining",(_this select 1)];
hint format [(localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_2"),(_this select 1)]; //Hideout destroyed! %1 remaining
};
case 3 : {
hint "This body does not have any intel";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_3"); //This body does not have any intel
};
case 4 : {
hint "Found intels about an ammo cache and an hideout! Map updated";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_4"); //Found intels about an ammo cache and an hideout! Map updated
};
case 5 : {
hint "Intel about an hideout found! Map updated";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_5"); //Intel about an hideout found! Map updated
};
case 6 : {
hint "In the last hideout we found important intel about all the cities occupied by the Oplitas! Size the last positions held by the enemies and defeat them once and for all";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_6"); //In the last hideout we found important intel about all the cities occupied by the Oplitas! Size the last positions held by the enemies and defeat them once and for all
};
case 7 : {
hint ((_this select 1) + " has been deployed!");
hint ((_this select 1) + (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_7")); // has been deployed!
};
case 8 : {
hint "Saving in progress...Please wait";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_8"); //Saving in progress...Please wait
};
case 9 : {
hint "Game has been saved!";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_9"); //Game has been saved!
};
case 10 : {
hint "Database deleted!";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_10"); //Database deleted!
};
case 11 : {
hint "One checkpoint destroyed!";
hint (localize "STR_BTC_HAM_O_COMMON_SHOWHINTS_11"); //One checkpoint destroyed!
};
};
};
Loading

0 comments on commit 407903a

Please sign in to comment.