Finish localization support

Vanilla development commit:

33c6cafbcb
This commit is contained in:
ebaydayz
2016-04-28 22:13:48 -04:00
parent 7f1b8db85a
commit 4b9d6df0bb
12 changed files with 106 additions and 37 deletions

View File

@@ -23,7 +23,7 @@ class ItemCanteen : FoodDrink
class Empty
{
text = "Empty";//TODO: move to stringtable
text = $STR_ITEM_CANTEEN_EMPTY;
script = "spawn player_emptyContainer";
};
};

View File

@@ -250,8 +250,8 @@ class ItemSherbet : ItemSoda
model = "z\addons\dayz_communityassets\models\soda_sherbet_clean_full.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_soda_sherbet_clean_full_ca.paa";
displayName = "Sherbet";//TODO: move to stringtable
descriptionShort = "Sherbet";
displayName = $STR_ITEMSODA_FULL_CLEAN_CODE_NAME_15;
descriptionShort = $STR_ITEMSODA_FULL_CLEAN_CODE_NAME_15;
Nutrition[] = {90,0,500,0};

View File

@@ -23,7 +23,7 @@ class ItemWaterBottle : FoodDrink
class Empty
{
text = "Empty";//TODO: move to stringtable
text = $STR_EQUIP_NAME_13_EMPTY;
script = "spawn player_emptyContainer";
};
};

View File

@@ -7,13 +7,13 @@ class equip_brick : CA_Magazine
model = "\z\addons\dayz_communityassets\models\brick.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_brick.paa";
displayName = $STR_ITEM_NAME_equip_brick;
descriptionShort = "Maybe this could be used to sharpen a knife."; //TODO: move to stringtable
descriptionShort = $STR_ITEM_DESC_equip_brick;
class ItemActions
{
class FixKnife
{
text = "Sharpen Knife";
text = $STR_ACTIONS_FIX_KNIFE;
script = "; ['ItemKnifeBlunt','ItemKnife'] spawn player_sharpen;";
};
};

View File

@@ -11,7 +11,7 @@ class 7Rnd_45ACP_1911: CA_Magazine
class ReloadMag
{
text = "Combine for Revolver"; //TODO: move to stringtable
text = $STR_MAG_CONV_45ACP_Revolver;
script = "spawn player_reloadMag;";
use[] = {"7Rnd_45ACP_1911"};
output[] = {"6Rnd_45ACP"};
@@ -32,7 +32,7 @@ class 6Rnd_45ACP: CA_Magazine
class ReloadMag
{
text = "Combine for M1911"; //TODO: move to stringtable
text = $STR_MAG_CONV_45ACP_M1911;
script = "spawn player_reloadMag;";
use[] = {"6Rnd_45ACP"};
output[] = {"7Rnd_45ACP_1911"};

View File

@@ -31,11 +31,9 @@ class ItemAntibiotic : ItemAntibiotic_base
};
};
//TODO: move descriptions to stringtable
class ItemAntibiotic6 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 6 Remaining";
descriptionShort = $STR_EQUIP_DESC_48;
class medical
{
@@ -46,7 +44,7 @@ class ItemAntibiotic6 : ItemAntibiotic
class ItemAntibiotic5 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 5 Remaining";
descriptionShort = $STR_EQUIP_DESC_49;
class medical
{
@@ -57,7 +55,7 @@ class ItemAntibiotic5 : ItemAntibiotic
class ItemAntibiotic4 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 4 Remaining";
descriptionShort = $STR_EQUIP_DESC_50;
class medical
{
@@ -68,7 +66,7 @@ class ItemAntibiotic4 : ItemAntibiotic
class ItemAntibiotic3 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 3 Remaining";
descriptionShort = $STR_EQUIP_DESC_51;
class medical
{
@@ -79,7 +77,7 @@ class ItemAntibiotic3 : ItemAntibiotic
class ItemAntibiotic2 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 2 Remaining";
descriptionShort = $STR_EQUIP_DESC_52;
class medical
{
@@ -90,7 +88,7 @@ class ItemAntibiotic2 : ItemAntibiotic
class ItemAntibiotic1 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 1 Remaining";
descriptionShort = $STR_EQUIP_DESC_53;
class medical
{
@@ -102,5 +100,5 @@ class ItemAntibiotic1 : ItemAntibiotic
class ItemAntibioticEmpty : ItemAntibiotic_base
{
scope = public;
descriptionShort = "EmptyBox of Azithromycin.";
descriptionShort = $STR_EQUIP_DESC_54;
};

View File

@@ -42,8 +42,8 @@ class ItemKosmosSmokes : CA_Magazine
model = "\z\addons\dayz_communityassets\models\smokes_kosmos.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_kosmos_ca.paa";
displayName = "Kosmos Smokes";
descriptionShort = "One Pack of Kosmos Brand cigarettes";
displayName = $STR_ITEM_NAME_KOSMOS_SMOKES;
descriptionShort = $STR_ITEM_DESC_KOSMOS_SMOKES;
};
class ItemKosmosSmokesOpen : CA_Magazine
@@ -54,8 +54,8 @@ class ItemKosmosSmokesOpen : CA_Magazine
model = "\z\addons\dayz_communityassets\models\smokes_open_k.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_smokes_open_k_ca.paa";
displayName = "Kosmos Smokes";//TODO: move to stringtable
descriptionShort = "One Opened Pack of Kosmos Brand cigarettes";
displayName = $STR_ITEM_NAME_KOSMOS_SMOKES;
descriptionShort = $STR_ITEM_DESC_KOSMOS_SMOKES_OPENED;
};
class ItemTrashPaper : CA_Magazine

View File

@@ -13,7 +13,7 @@ class ItemSodaEmpty : HandGrenade
{
class Drink
{
text = "Drink";//TODO: move to stringtable
text = $str_player_31_drink;
script = "spawn player_drinkWater;";
};
class Crafting {
@@ -42,7 +42,7 @@ class TrashTinCan : HandGrenade
{
class Drink
{
text = "Drink";//TODO: move to stringtable
text = $str_player_31_drink;
script = "spawn player_drinkWater;";
};
class Crafting {

View File

@@ -3,7 +3,7 @@ class DZ_AmmoBoxRU : ReammoBox
scope = public;
model = "ca\weapons\ammoboxes\proxy_ruweaponboxlow.p3d";
displayName = "Ammo box"; //TODO move to stringtable
displayName = $STR_DAYZ_OBJ_3;
};
class DZ_ExplosiveBoxRU : ReammoBox
@@ -11,7 +11,7 @@ class DZ_ExplosiveBoxRU : ReammoBox
scope = public;
model = "ca\weapons\ammoboxes\proxy_ruexplosives.p3d";
displayName = "Ammo box"; //TODO move to stringtable
displayName = $STR_DAYZ_OBJ_3;
};
class DZ_AmmoBoxUS : ReammoBox
@@ -19,7 +19,7 @@ class DZ_AmmoBoxUS : ReammoBox
scope = public;
model = "ca\weapons\ammoboxes\proxy_usbasicammoboxsmall.p3d";
displayName = "Ammo box"; //TODO move to stringtable
displayName = $STR_DAYZ_OBJ_3;
};
class DZ_ExplosivesBoxUS : ReammoBox
@@ -27,7 +27,7 @@ class DZ_ExplosivesBoxUS : ReammoBox
scope = public;
model = "ca\weapons\ammoboxes\proxy_usbasicexplosives.p3d";
displayName = "Ammo box"; //TODO move to stringtable
displayName = $STR_DAYZ_OBJ_3;
};
class DZ_CardboardBox : ReammoBox
@@ -35,7 +35,7 @@ class DZ_CardboardBox : ReammoBox
scope = public;
model = "dayz_equip\models\cardboard_box.p3d";
displayName = "Cardboard box"; //TODO move to stringtable
displayName = $STR_DAYZ_OBJ_4;
};
class DZ_MedBox : ReammoBox

View File

@@ -47,7 +47,7 @@ class ItemHatchetBroken : ItemCore
{
class Repair
{
text = "Fix Hatchet"; //TODO: move to stringtable
text = $STR_ACTIONS_FIX_HATCHET;
script="spawn player_fixHatchet;";
};
};