From dbe7bf0a1779490085cd402cd477f7b36d447965 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 17 May 2016 19:14:05 -0400 Subject: [PATCH] Localize plot management dialog text --- .../Configs/RscDisplay/ZSCdefines.hpp | 19 ++++++ .../Configs/RscDisplay/plotManagement.hpp | 51 +++++---------- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- SQF/dayz_code/stringtable.xml | 62 ++++++++++++++++--- 4 files changed, 90 insertions(+), 44 deletions(-) diff --git a/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp b/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp index 764639df8..ed77ed45d 100644 --- a/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/ZSCdefines.hpp @@ -641,4 +641,23 @@ class ZSC_RscToolbox { colorSelectedBg[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; font = "Zeppelin32"; sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)"; +}; + +class ZSC_RscTextT +{ + access = 0; + type = 0; + idc = -1; + colorBackground[] = {0,0,0,0}; + colorText[] = {0.8784,0.8471,0.651,1}; + text = ""; + fixedWidth = 0; + x = 0; + y = 0; + h = 0.037; + w = 0.3; + style = 0; + shadow = 2; + font = "Zeppelin32"; + SizeEx = 0.03921; }; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/RscDisplay/plotManagement.hpp b/SQF/dayz_code/Configs/RscDisplay/plotManagement.hpp index 14fd2c934..2d487266b 100644 --- a/SQF/dayz_code/Configs/RscDisplay/plotManagement.hpp +++ b/SQF/dayz_code/Configs/RscDisplay/plotManagement.hpp @@ -1,30 +1,9 @@ - -class RscTextT -{ - access = 0; - type = 0; - idc = -1; - colorBackground[] = {0,0,0,0}; - colorText[] = {0.8784,0.8471,0.651,1}; - text = ""; - fixedWidth = 0; - x = 0; - y = 0; - h = 0.037; - w = 0.3; - style = 0; - shadow = 2; - font = "Zeppelin32"; - SizeEx = 0.03921; -}; - - class PlotManagement { idd = 711194; onLoad = "uiNamespace setVariable ['PlotManagement', _this select 0]"; class Controls { - class RscText_7000: RscTextT + class RscText_7000: ZSC_RscTextT { idc = 7000; x = 0.30 * safezoneW + safezoneX; @@ -34,10 +13,10 @@ class PlotManagement colorBackground[] = {0,0,0,0.8}; }; - class RscText_7007: RscTextT + class RscText_7007: ZSC_RscTextT { idc = 7007; - text = "Plot Management"; + text = $STR_EPOCH_ACTIONS_MANAGEPLOT; x = 0.30 * safezoneW + safezoneX; y = 0.15 * safezoneH + safezoneY; w = 0.30 * safezoneW; @@ -49,7 +28,7 @@ class PlotManagement class RscShortcutButton_7009: ZSC_RscButtonMenu { idc = -1; - text = "Dome"; + text = $STR_EPOCH_DOME; x = 0.31 * safezoneW + safezoneX; y = 0.22 * safezoneH + safezoneY; w = 0.08 * safezoneW; @@ -59,7 +38,7 @@ class PlotManagement class RscShortcutButton_7010: ZSC_RscButtonMenu { idc = -1; - text = "Refresh"; + text = $STR_EPOCH_REFRESH; x = 0.41 * safezoneW + safezoneX; y = 0.22 * safezoneH + safezoneY; w = 0.08 * safezoneW; @@ -69,13 +48,13 @@ class PlotManagement class RscShortcutButton_7011: ZSC_RscButtonMenu { idc = -1; - text = "Maintain"; + text = $STR_EPOCH_ACTIONS_MAINTAIN; x = 0.51 * safezoneW + safezoneX; y = 0.22 * safezoneH + safezoneY; w = 0.08 * safezoneW; onButtonClick = "[""maintain""] call MaintainPlot;"; }; - class RscText_7012: RscTextT + class RscText_7012: ZSC_RscTextT { idc = 7012; text = ""; @@ -100,7 +79,7 @@ class PlotManagement }; }; - class RscText_7013: RscTextT + class RscText_7013: ZSC_RscTextT { idc = 7013; text = ""; @@ -112,20 +91,20 @@ class PlotManagement }; - class RscText_7008: RscTextT + class RscText_7008: ZSC_RscTextT { idc = -1; - text = "Humans Nearby"; + text = $STR_EPOCH_HUMANS_NEARBY; x = 0.31 * safezoneW + safezoneX; y = 0.38 * safezoneH + safezoneY; w = 0.13 * safezoneW; h = 0.03 * safezoneH; colorText[] = {1,1,1,1}; }; - class RscText_7003: RscTextT + class RscText_7003: ZSC_RscTextT { idc = -1; - text = "PlotFriends"; + text = $STR_EPOCH_PLOT_FRIENDS; x = 0.45 * safezoneW + safezoneX; y = 0.38 * safezoneH + safezoneY; w = 0.13 * safezoneW; @@ -157,7 +136,7 @@ class PlotManagement class RscShortcutButton_7004: ZSC_RscButtonMenu { idc = -1; - text = "Add"; + text = $STR_EPOCH_ADD; x = 0.33 * safezoneW + safezoneX; y = 0.70 * safezoneH + safezoneY; w = 0.08 * safezoneW; @@ -166,7 +145,7 @@ class PlotManagement class RscShortcutButton_7005: ZSC_RscButtonMenu { idc = -1; - text = "Delete"; + text = $STR_EPOCH_DELETE; x = 0.47 * safezoneW + safezoneX; y = 0.70 * safezoneH + safezoneY; w = 0.08 * safezoneW; @@ -175,7 +154,7 @@ class PlotManagement class RscShortcutButton_7006: ZSC_RscButtonMenu { idc = -1; - text = "Close"; + text = $STR_UI_CLOSE; x = 0.40 * safezoneW + safezoneX; y = 0.74 * safezoneH + safezoneY; w = 0.08 * safezoneW; diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index 44da314fd..b691b36ff 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -912,7 +912,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur if (s_player_maint_build < 0) then { _text2 = _text + " (" + str(round ((damage _cursorTarget) * 100)) + "% damaged)"; s_player_lastTarget set [2,_cursorTarget]; - s_player_maint_build = player addAction [format[localize "STR_EPOCH_ACTIONS_MAINTAIN",_text2], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true]; + s_player_maint_build = player addAction [format["%1 %2",localize "STR_EPOCH_ACTIONS_MAINTAIN",_text2], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true]; }; } else { player removeAction s_player_maint_build; diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 48f05aa65..967fb5b2a 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -13536,13 +13536,13 @@ Odebrat Zámek z %1 - Maintain %1 - %1 instand halten - Занять %1 - - Onderhoud %1 - Maintenir %1 - Opravit %1 + Maintain + Pflegen + Занять + Mantener + Onderhoud + Maintenir + Opravit Stop Generator @@ -17371,5 +17371,53 @@ Zpět 戻る + + Refresh + Actualiser + Actualizar + Aggiorna + Frissítés + Odśwież + Обновить + Aktualis. + Aktualizovat + + + Delete + Supprimer + Suprimir + Cancella + Törlés + Usuń + Удалить + Löschen + Smazat + 削除 + + + Add + Ajouter + Añadir + Aggiungi + Hozzáad + Dodaj + Добавить + Hinzufügen + Přidat + + + Dome + Kuppel + купол + Cúpula + Dôme + Kupole + + + Humans Nearby + + + Plot Friends +