diff --git a/GalacticScale2/Scripts/GalacticScale2.0/Models/Settings/GSSettings.cs b/GalacticScale2/Scripts/GalacticScale2.0/Models/Settings/GSSettings.cs index 785e4382..a3f4e917 100644 --- a/GalacticScale2/Scripts/GalacticScale2.0/Models/Settings/GSSettings.cs +++ b/GalacticScale2/Scripts/GalacticScale2.0/Models/Settings/GSSettings.cs @@ -133,7 +133,7 @@ public static GSPlanet BirthPlanet if (StarCount > 0 && PlanetCount > 0) return Stars[0].Planets[0]; GS2.Error("Could not find birthplanet as there are no stars or planets."); - GS2.AbortGameStart("Could not find birthplanet as there are no stars or planets."); + GS2.AbortGameStart("Could not find birthplanet as there are no stars or planets.".Translate()); return null; } } diff --git a/GalacticScale2/Scripts/GalacticScale2.0/Patches/UIVirtualStarmap/_OnLateUpdate.cs b/GalacticScale2/Scripts/GalacticScale2.0/Patches/UIVirtualStarmap/_OnLateUpdate.cs index e24883cc..42e94e51 100644 --- a/GalacticScale2/Scripts/GalacticScale2.0/Patches/UIVirtualStarmap/_OnLateUpdate.cs +++ b/GalacticScale2/Scripts/GalacticScale2.0/Patches/UIVirtualStarmap/_OnLateUpdate.cs @@ -75,7 +75,7 @@ public static bool _OnLateUpdate(ref UIVirtualStarmap __instance) // __instance.starPool[index2].starData.name); var sd = __instance.starPool[index2]?.starData; // GS2.Log("1"); - if (__instance.starPool[index2]?.nameText?.text != null) __instance.starPool[index2].nameText.text = $"{__instance.starPool[index2].textContent}\r\nGas Giants:{Utils.GetStarDataGasCount(sd)}\r\nPlanets:{Utils.GetStarDataTelluricCount(sd)}\n\nMoons:{Utils.GetStarDataMoonCount(sd)}"; + if (__instance.starPool[index2]?.nameText?.text != null) __instance.starPool[index2].nameText.text = $"{__instance.starPool[index2].textContent}\r\n{"Gas Giants".Translate()}:{Utils.GetStarDataGasCount(sd)}\r\n{"Planets".Translate()}:{Utils.GetStarDataTelluricCount(sd)}\n\n{"Moons".Translate()}:{Utils.GetStarDataMoonCount(sd)}"; // GS2.Log("2"); // GS2.Log($"{sd?.planetCount}"); __instance.starPool[index2].nameText.rectTransform.sizeDelta = new Vector2( diff --git a/GalacticScale2/Scripts/GalacticScale2.0/SettingsUI/MainSettings.cs b/GalacticScale2/Scripts/GalacticScale2.0/SettingsUI/MainSettings.cs index eef14ed8..3179bbe5 100644 --- a/GalacticScale2/Scripts/GalacticScale2.0/SettingsUI/MainSettings.cs +++ b/GalacticScale2/Scripts/GalacticScale2.0/SettingsUI/MainSettings.cs @@ -235,7 +235,7 @@ private static void GeneratorCallback(Val result) private void ExportJsonGalaxy(Val o) { var outputDir = Path.Combine(GS2.DataDir, "CustomGalaxies"); - var path = Path.Combine(outputDir, Preferences.GetString("Export Filename", "My First Galaxy") + ".json"); + var path = Path.Combine(outputDir, Preferences.GetString("Export Filename", "My First Galaxy".Translate()) + ".json"); if (!Directory.Exists(outputDir)) Directory.CreateDirectory(outputDir); if (GameMain.isPaused)