Skip to content

Commit 1221d81

Browse files
committed
- Localize PlotGuardians
1 parent 0403095 commit 1221d81

20 files changed

+2538
-97
lines changed

SrvSurvey/Properties/_loc-de-missing.txt

+25
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,31 @@
174174
Ship
175175
SRV
176176

177+
/plotters/PlotGuardians.de.resx
178+
HeaderGeneral
179+
HeaderNeedRelicTowerHeading
180+
HeaderNeedRelicTowers
181+
HeaderRuinsComplete
182+
HeaderStructureComplete
183+
HeadingSite
184+
HeadingUnknown
185+
IdentifyNoMap
186+
IdentifySiteHeading
187+
IdentifySiteType
188+
IdentifyWithButtress
189+
IdentifyWithPort
190+
NoMapForType
191+
ObliskFooter
192+
RuinsFooter
193+
StructureFooter
194+
TrackLeft
195+
TrackOriginFooter
196+
TrackOriginHeaderPrefix
197+
TrackOriginHeaderSuffix
198+
TrackRight
199+
ZoomLevel
200+
ZoomLevelAuto
201+
177202
/plotters/PlotGuardianStatus.de.resx
178203
AlignAndRise
179204
AlignWithButtress

SrvSurvey/Properties/_loc-es-missing.txt

+25
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,31 @@
88
/plotters/PlotBioSystem.es.resx
99
NotPredicted
1010

11+
/plotters/PlotGuardians.es.resx
12+
HeaderGeneral
13+
HeaderNeedRelicTowerHeading
14+
HeaderNeedRelicTowers
15+
HeaderRuinsComplete
16+
HeaderStructureComplete
17+
HeadingSite
18+
HeadingUnknown
19+
IdentifyNoMap
20+
IdentifySiteHeading
21+
IdentifySiteType
22+
IdentifyWithButtress
23+
IdentifyWithPort
24+
NoMapForType
25+
ObliskFooter
26+
RuinsFooter
27+
StructureFooter
28+
TrackLeft
29+
TrackOriginFooter
30+
TrackOriginHeaderPrefix
31+
TrackOriginHeaderSuffix
32+
TrackRight
33+
ZoomLevel
34+
ZoomLevelAuto
35+
1136
/plotters/PlotGuardianStatus.es.resx
1237
AlignAndRise
1338
AlignWithButtress

SrvSurvey/Properties/_loc-fr-missing.txt

+25
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,31 @@
174174
Ship
175175
SRV
176176

177+
/plotters/PlotGuardians.fr.resx
178+
HeaderGeneral
179+
HeaderNeedRelicTowerHeading
180+
HeaderNeedRelicTowers
181+
HeaderRuinsComplete
182+
HeaderStructureComplete
183+
HeadingSite
184+
HeadingUnknown
185+
IdentifyNoMap
186+
IdentifySiteHeading
187+
IdentifySiteType
188+
IdentifyWithButtress
189+
IdentifyWithPort
190+
NoMapForType
191+
ObliskFooter
192+
RuinsFooter
193+
StructureFooter
194+
TrackLeft
195+
TrackOriginFooter
196+
TrackOriginHeaderPrefix
197+
TrackOriginHeaderSuffix
198+
TrackRight
199+
ZoomLevel
200+
ZoomLevelAuto
201+
177202
/plotters/PlotGuardianStatus.fr.resx
178203
AlignAndRise
179204
AlignWithButtress

SrvSurvey/Properties/_loc-pt-BR-missing.txt

+25
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,31 @@
174174
Ship
175175
SRV
176176

177+
/plotters/PlotGuardians.pt-BR.resx
178+
HeaderGeneral
179+
HeaderNeedRelicTowerHeading
180+
HeaderNeedRelicTowers
181+
HeaderRuinsComplete
182+
HeaderStructureComplete
183+
HeadingSite
184+
HeadingUnknown
185+
IdentifyNoMap
186+
IdentifySiteHeading
187+
IdentifySiteType
188+
IdentifyWithButtress
189+
IdentifyWithPort
190+
NoMapForType
191+
ObliskFooter
192+
RuinsFooter
193+
StructureFooter
194+
TrackLeft
195+
TrackOriginFooter
196+
TrackOriginHeaderPrefix
197+
TrackOriginHeaderSuffix
198+
TrackRight
199+
ZoomLevel
200+
ZoomLevelAuto
201+
177202
/plotters/PlotGuardianStatus.pt-BR.resx
178203
AlignAndRise
179204
AlignWithButtress

SrvSurvey/Properties/_loc-ru-missing.txt

+25
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,31 @@
2222
/plotters/PlotBioSystem.ru.resx
2323
NotPredicted
2424

25+
/plotters/PlotGuardians.ru.resx
26+
HeaderGeneral
27+
HeaderNeedRelicTowerHeading
28+
HeaderNeedRelicTowers
29+
HeaderRuinsComplete
30+
HeaderStructureComplete
31+
HeadingSite
32+
HeadingUnknown
33+
IdentifyNoMap
34+
IdentifySiteHeading
35+
IdentifySiteType
36+
IdentifyWithButtress
37+
IdentifyWithPort
38+
NoMapForType
39+
ObliskFooter
40+
RuinsFooter
41+
StructureFooter
42+
TrackLeft
43+
TrackOriginFooter
44+
TrackOriginHeaderPrefix
45+
TrackOriginHeaderSuffix
46+
TrackRight
47+
ZoomLevel
48+
ZoomLevelAuto
49+
2550
/plotters/PlotGuardianStatus.ru.resx
2651
AlignAndRise
2752
AlignWithButtress
+24-64
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,24 @@
1-
/forms/ViewLogs.zh-Hans.resx
2-
btnClear.Text
3-
btnClose.Text
4-
btnCopy.Text
5-
btnOpenFolder.Text
6-
$this.Text
7-
8-
/plotters/PlotGuardianStatus.zh-Hans.resx
9-
AlignAndRise
10-
AlignWithButtress
11-
ChooseAbsent
12-
ChooseEmpty
13-
ChoosePresent
14-
FooterActiveObeliskGroups
15-
FooterToggleModeOnce
16-
FooterToggleModeTwice
17-
HeaderUnknownSiteType
18-
LineRamTahAcquired
19-
LineRamTahNeeded
20-
MatsFullOne
21-
MatsFullTwo
22-
NearObeliskHeader
23-
NoNearPoiHeader
24-
ObeliskActive
25-
ObeliskBroken
26-
ObeliskInactive
27-
OnApproachFooter
28-
OnApproachHeaderRuins
29-
OnApproachHeaderStructure
30-
OnApproachMiddleRuins
31-
OnApproachMiddleStructure
32-
OnApproachMiddleStructureNoBluePrint
33-
RelicTowerFaceHint
34-
RelicTowerFootHint
35-
RelicTowerHeadingKnown
36-
RelicTowerNonToolHint
37-
RequiresPrefix
38-
RequiresSuffix
39-
ToggleLightsUpdateHint
40-
ToggleShieldsForRelicTower
41-
YouHaveNotScanned
42-
YouHaveScanned
43-
44-
/plotters/PlotGuardianSystem.zh-Hans.resx
45-
BluePrintLine
46-
47-
/plotters/PlotSysStatus.zh-Hans.resx
48-
NextSystem
49-
50-
/Properties/Guardian.zh-Hans.resx
51-
Alpha
52-
Beta
53-
Gamma
54-
SitePoiStatus_absent
55-
SitePoiStatus_empty
56-
SitePoiStatus_present
57-
SitePoiStatus_unknown
58-
StatusUnknown
59-
POIType_Component
60-
POIType_Pylon
61-
62-
/Properties/Misc.zh-Hans.resx
63-
NetSysData_Wars
64-
FirewallBlocked
1+
/plotters/PlotGuardians.zh-Hans.resx
2+
HeaderGeneral
3+
HeaderNeedRelicTowerHeading
4+
HeaderNeedRelicTowers
5+
HeaderRuinsComplete
6+
HeaderStructureComplete
7+
HeadingSite
8+
HeadingUnknown
9+
IdentifyNoMap
10+
IdentifySiteHeading
11+
IdentifySiteType
12+
IdentifyWithButtress
13+
IdentifyWithPort
14+
NoMapForType
15+
ObliskFooter
16+
RuinsFooter
17+
StructureFooter
18+
TrackLeft
19+
TrackOriginFooter
20+
TrackOriginHeaderPrefix
21+
TrackOriginHeaderSuffix
22+
TrackRight
23+
ZoomLevel
24+
ZoomLevelAuto

SrvSurvey/SrvSurvey.csproj

+10
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@
148148
<AutoGen>True</AutoGen>
149149
<DependentUpon>PlotGrounded.resx</DependentUpon>
150150
</Compile>
151+
<Compile Update="plotters\PlotGuardians.Designer.cs">
152+
<DesignTime>True</DesignTime>
153+
<AutoGen>True</AutoGen>
154+
<DependentUpon>PlotGuardians.resx</DependentUpon>
155+
</Compile>
151156
<Compile Update="plotters\PlotGuardianStatus.Designer.cs">
152157
<DesignTime>True</DesignTime>
153158
<AutoGen>True</AutoGen>
@@ -303,6 +308,11 @@
303308
<LastGenOutput>PlotGrounded.Designer.cs</LastGenOutput>
304309
<CustomToolNamespace>Loc</CustomToolNamespace>
305310
</EmbeddedResource>
311+
<EmbeddedResource Update="plotters\PlotGuardians.resx">
312+
<Generator>ResXFileCodeGenerator</Generator>
313+
<LastGenOutput>PlotGuardians.Designer.cs</LastGenOutput>
314+
<CustomToolNamespace>Loc</CustomToolNamespace>
315+
</EmbeddedResource>
306316
<EmbeddedResource Update="plotters\PlotGuardianStatus.resx">
307317
<Generator>ResXFileCodeGenerator</Generator>
308318
<LastGenOutput>PlotGuardianStatus.Designer.cs</LastGenOutput>

SrvSurvey/Util.cs

+15
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,18 @@ public static string getLoc(string name)
847847
case nameof(SiteType.Alpha): return Properties.Guardian.Alpha;
848848
case nameof(SiteType.Beta): return Properties.Guardian.Beta;
849849
case nameof(SiteType.Gamma): return Properties.Guardian.Gamma;
850+
// These are not localized - just use the given string
851+
case "SiteType." + nameof(SiteType.Lacrosse): // Tiny
852+
case "SiteType." + nameof(SiteType.Crossroads):
853+
case "SiteType." + nameof(SiteType.Fistbump):
854+
case "SiteType." + nameof(SiteType.Hammerbot): // Small
855+
case "SiteType." + nameof(SiteType.Bear):
856+
case "SiteType." + nameof(SiteType.Bowl):
857+
case "SiteType." + nameof(SiteType.Turtle):
858+
case "SiteType." + nameof(SiteType.Robolobster): // Medium
859+
case "SiteType." + nameof(SiteType.Squid):
860+
case "SiteType." + nameof(SiteType.Stickyhand):
861+
return name;
850862

851863
// Guardian items for Ram Tah missions
852864
case $"{nameof(POIType)}.{nameof(ObeliskItem.casket)}":
@@ -915,6 +927,9 @@ public static string getLoc(string name)
915927
case $"{nameof(POIType)}.{nameof(POIType.pylon)}":
916928
return Properties.Guardian.POIType_Pylon;
917929

930+
case $"{nameof(POIType)}.{nameof(POIType.destructablePanel)}":
931+
return "Destructable Panel";
932+
918933
default:
919934
Game.log($"Unexpected localizable name: '{name}'");
920935
Debugger.Break();

SrvSurvey/loc-ready.txt

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ PlotGalMap.resx
2222
PlotGrounded.resx
2323
PlotGuardianStatus.resx
2424
PlotGuardianSystem.resx
25+
PlotGuardians.resx
2526
PlotHumanSite.resx
2627
PlotJumpInfo.resx
2728
PlotMassacre.resx

SrvSurvey/plotters/PlotGuardianStatus.cs

+4
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ private void drawOptions(string msg1, string msg2, string? msg3, int highlightId
338338

339339
if (highlightIdx != -2)
340340
showSelectionCue();
341+
342+
// make sure we're wide enough for 3x blocks
343+
var ww = (this.blockWidth * 3) + (oneTwo * 5);
344+
if (ww > maxTextWidth) maxTextWidth = ww;
341345
}
342346

343347
private void showSelectionCue()

0 commit comments

Comments
 (0)