Moved certain strings into global.properties

This commit is contained in:
Anuken
2026-01-16 20:29:14 -05:00
parent 88acbbdc84
commit c12371ea12
4 changed files with 51 additions and 45 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ allprojects{
def output = 'en\n'
def bundles = new File(project(':core').projectDir, 'assets/bundles/')
bundles.list().sort().each{ name ->
if(name == "bundle.properties") return
if(name == "bundle.properties" || name == "global.properties") return
output += name.substring("bundle".length() + 1, name.lastIndexOf('.')) + "\n"
}
new File(project(':core').projectDir, 'assets/locales').text = output
-44
View File
@@ -917,50 +917,6 @@ sector.planetaryTerminal.description = The final target.\n\nThis coastal base co
sector.coastline.description = Remnants of naval unit technology have been detected at this location. Repel the enemy attacks, capture this sector, and acquire the technology.
sector.navalFortress.description = The enemy has established a base on a remote, naturally-fortified island. Destroy this outpost. Acquire their advanced naval craft technology, and research it.
#do not translate
sector.facility32m.description = WIP
sector.taintedWoods.description = WIP
sector.sunkenPier.description = WIP
sector.atolls.description = WIP
sector.frontier.description = WIP
sector.infestedCanyons.description = WIP
sector.polarAerodrome.description = WIP
sector.testingGrounds.description = WIP
sector.perilousHarbor.description = WIP
sector.weatheredChannels.description = WIP
sector.fallenVessel.description = WIP
sector.mycelialBastion.description = WIP
sector.cruxscape.description = WIP
sector.geothermalStronghold.description = WIP
#names, do not translate
sector.frozenForest.credit = Elixias Adrys
sector.facility32m.credit = Stormride_R
sector.taintedWoods.credit = Stormride_R
sector.sunkenPier.credit = Stormride_R
sector.atolls.credit = Stormride_R
sector.frontier.credit = Stormride_R
sector.infestedCanyons.credit = Skeledragon
sector.polarAerodrome.credit = hhh i 17
sector.testingGrounds.credit = Stormride_R
sector.perilousHarbor.credit = inkognito626
sector.weatheredChannels.credit = Skeledragon
sector.fallenVessel.credit = wpx, Stormride_R, Nahan
sector.mycelialBastion.credit = Skeledragon
sector.planetaryTerminal.credit = Skeledragon
sector.cruxscape.credit = Stormride_R
sector.geothermalStronghold.credit = Skeledragon
sector.overgrowth.credit = Skeledragon
sector.stainedMountains.credit = Pitchblende
sector.ruinousShores.credit = Pitchblende
sector.nuclearComplex.credit = Pitchblende
sector.coastline.credit = Stormride_R
sector.tarFields.credit = Dexapnow
sector.saltFlats.credit = Dexapnow
sector.windsweptIslands.credit = Stormride_R, Anuke
sector.navalFortress.credit = blackberry2093
sector.desolateRift.credit = hhh i 17
sector.onset.name = The Onset
sector.aegis.name = Aegis
sector.lake.name = Lake
+45
View File
@@ -0,0 +1,45 @@
# This file contains special global strings that don't need to be translated.
# The contents of this bundle are merged into Core.bundle, and otherwise act as normal translated strings.
sector.frozenForest.credit = Elixias Adrys
sector.facility32m.credit = Stormride_R
sector.taintedWoods.credit = Stormride_R
sector.sunkenPier.credit = Stormride_R
sector.atolls.credit = Stormride_R
sector.frontier.credit = Stormride_R
sector.infestedCanyons.credit = Skeledragon
sector.polarAerodrome.credit = hhh i 17
sector.testingGrounds.credit = Stormride_R
sector.perilousHarbor.credit = inkognito626
sector.weatheredChannels.credit = Skeledragon
sector.fallenVessel.credit = wpx, Stormride_R, Nahan
sector.mycelialBastion.credit = Skeledragon
sector.planetaryTerminal.credit = Skeledragon
sector.cruxscape.credit = Stormride_R
sector.geothermalStronghold.credit = Skeledragon
sector.overgrowth.credit = Skeledragon
sector.stainedMountains.credit = Pitchblende
sector.ruinousShores.credit = Pitchblende
sector.nuclearComplex.credit = Pitchblende
sector.coastline.credit = Stormride_R
sector.tarFields.credit = Dexapnow
sector.saltFlats.credit = Dexapnow
sector.windsweptIslands.credit = Stormride_R, Anuke
sector.navalFortress.credit = blackberry2093
sector.desolateRift.credit = hhh i 17
#TODO: remove, create a proper description, move into bundle.properties
sector.facility32m.description = WIP
sector.taintedWoods.description = WIP
sector.sunkenPier.description = WIP
sector.atolls.description = WIP
sector.frontier.description = WIP
sector.infestedCanyons.description = WIP
sector.polarAerodrome.description = WIP
sector.testingGrounds.description = WIP
sector.perilousHarbor.description = WIP
sector.weatheredChannels.description = WIP
sector.fallenVessel.description = WIP
sector.mycelialBastion.description = WIP
sector.cruxscape.description = WIP
sector.geothermalStronghold.description = WIP
+5
View File
@@ -9,6 +9,7 @@ import arc.scene.ui.layout.*;
import arc.struct.*;
import arc.util.*;
import arc.util.Log.*;
import arc.util.io.*;
import mindustry.ai.*;
import mindustry.async.*;
import mindustry.core.*;
@@ -536,5 +537,9 @@ public class Vars implements Loadable{
}
}
}
StringMap globalBundle = new StringMap();
PropertiesUtils.load(globalBundle, files.internal("bundles/global.properties").reader(512, "UTF-8"));
bundle.getProperties().putAll(globalBundle);
}
}