From c4679acd491e2927c52cdc7b38dc08d571f5bfc1 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Mon, 8 Jun 2020 19:50:33 -0700 Subject: [PATCH] Localize flag events --- .../GameData/ConformalDecals/Localization/en-us.cfg | 6 ++++-- .../GameData/ConformalDecals/Plugins/ConformalDecals.dll | 2 +- Source/ConformalDecals/ModuleConformalFlag.cs | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Distribution/GameData/ConformalDecals/Localization/en-us.cfg b/Distribution/GameData/ConformalDecals/Localization/en-us.cfg index f22e78e..51ac523 100644 --- a/Distribution/GameData/ConformalDecals/Localization/en-us.cfg +++ b/Distribution/GameData/ConformalDecals/Localization/en-us.cfg @@ -3,8 +3,8 @@ Localization en-us { // AGENCIES - #LOC_ConformalDecals_agent-peel-n-stick_title = Peel-N-Stik Adhesive Decals - #LOC_ConformalDecals_agent-peel-n-stick_description = Creators of premium stickers and decals for over 50 years, Peel-N-Stik only recently broke into the aerospace industry after noticing the increased demand for branding on rockets and aircraft. + #LOC_ConformalDecals_agent-peel-n-stick_title = Peel-N-Stik™ Adhesive Decals + #LOC_ConformalDecals_agent-peel-n-stick_description = Creators of premium stickers and decals for over 50 years, Peel-N-Stik™ only recently broke into the aerospace industry after noticing the increased demand for branding on rockets and aircraft. // CATEGORIES #LOC_ConformalDecals_category-decals_title = Decals @@ -15,6 +15,8 @@ Localization #LOC_ConformalDecals_gui-opacity = Opacity #LOC_ConformalDecals_gui-cutoff = Cutoff #LOC_ConformalDecals_gui-aspectratio = Aspect Ratio + #LOC_ConformalDecals_gui-select-flag = Select Flag + #LOC_ConformalDecals_gui-reset-flag = Reset Flag // PARTS diff --git a/Distribution/GameData/ConformalDecals/Plugins/ConformalDecals.dll b/Distribution/GameData/ConformalDecals/Plugins/ConformalDecals.dll index 30007da..a8067dc 100644 --- a/Distribution/GameData/ConformalDecals/Plugins/ConformalDecals.dll +++ b/Distribution/GameData/ConformalDecals/Plugins/ConformalDecals.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:13a7bd932cbb3d6a0313eab6825908755df077b4ad0ff822dd0140fc3b69260c +oid sha256:7b5be72cb4f8a55ce4459666301cd068d1e5fde8c90525585bb7ce9d4f931fd0 size 35840 diff --git a/Source/ConformalDecals/ModuleConformalFlag.cs b/Source/ConformalDecals/ModuleConformalFlag.cs index e0996a2..31f226f 100644 --- a/Source/ConformalDecals/ModuleConformalFlag.cs +++ b/Source/ConformalDecals/ModuleConformalFlag.cs @@ -58,13 +58,13 @@ namespace ConformalDecals { base.OnDestroy(); } - [KSPEvent(guiActive = false, guiActiveEditor = true, guiName = "Select Flag")] + [KSPEvent(guiActive = false, guiActiveEditor = true, guiName = "#LOC_ConformalDecals_gui-select-flag")] public void SelectFlag() { var flagBrowser = (Instantiate((Object) (new FlagBrowserGUIButton(null, null, null, null)).FlagBrowserPrefab) as GameObject).GetComponent(); flagBrowser.OnFlagSelected = OnCustomFlagSelected; } - [KSPEvent(guiActive = false, guiActiveEditor = true, guiName = "Reset Flag")] + [KSPEvent(guiActive = false, guiActiveEditor = true, guiName = "#LOC_ConformalDecals_gui-reset-flag")] public void ResetFlag() { SetFlag(MissionFlagUrl); SetFlagSymmetryCounterparts(MissionFlagUrl);