Skip to content

Commit 8bf4a09

Browse files
committed
Bug fix for https://bugs.launchpad.net/or/+bug/1946373. The keywords should not be translated.
1 parent 62fcbfa commit 8bf4a09

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Source/RunActivity/Viewer3D/Popups/MultiPlayerWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected override ControlLayout Layout(ControlLayout layout)
133133
var TimeHboxPositionY = 0;
134134
foreach (var data in labels)
135135
{
136-
if (data.FirstCol.Contains(Viewer.Catalog.GetString("NwLn")))
136+
if (data.FirstCol.Contains("NwLn"))
137137
{
138138
var hbox = vbox.AddLayoutHorizontalLineOfText();
139139
hbox.Add(new Label(colWidth * 2, hbox.RemainingHeight, " "));
@@ -319,7 +319,7 @@ void AddLabel(ListLabel label)
319319
}
320320
void AddSeparator() => AddLabel(new ListLabel
321321
{
322-
FirstCol = Viewer.Catalog.GetString("Sprtr"),
322+
FirstCol = "Sprtr",
323323
});
324324

325325
labels.Clear();

Source/RunActivity/Viewer3D/Popups/TrainDrivingWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ protected override ControlLayout Layout(ControlLayout layout)
274274
var TimeHboxPositionY = 0;
275275
foreach (var data in labels.ToList())
276276
{
277-
if (data.FirstCol.Contains(Viewer.Catalog.GetString("NwLn")))
277+
if (data.FirstCol.Contains("NwLn"))
278278
{
279279
var hbox = vbox.AddLayoutHorizontalLineOfText();
280280
hbox.Add(new Label(colWidth * 2, hbox.RemainingHeight, " "));
@@ -573,7 +573,7 @@ void AddLabel(ListLabel label)
573573
}
574574
void AddSeparator() => AddLabel(new ListLabel
575575
{
576-
FirstCol = Viewer.Catalog.GetString("Sprtr"),
576+
FirstCol = "Sprtr",
577577
});
578578

579579
TrainCar trainCar = viewer.PlayerLocomotive;

Source/RunActivity/Viewer3D/WebServices/TrackMonitorDisplay.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void AddLabel(ListLabel label)
277277
}
278278
void AddSeparator() => AddLabel(new ListLabel
279279
{
280-
FirstCol = Viewer.Catalog.GetString("Sprtr"),
280+
FirstCol = "Sprtr",
281281
});
282282

283283
// Always get train details to pass on to TrackMonitor.
@@ -604,7 +604,7 @@ private static void DrawManualModeInfo(List<ListLabel> labels, Train.TrainInfo t
604604
// Draw train position line
605605
ListLabel DarkGraySeparator(ListLabel _) => new ListLabel
606606
{
607-
FirstCol = Viewer.Catalog.GetString("SprtrDarkGray"),
607+
FirstCol = "SprtrDarkGray",
608608
};
609609
ChangeLabelAt(labels, ItemLocationToRow(zeroObjectPointTop, zeroObjectPointTop) + 1, DarkGraySeparator);
610610
ChangeLabelAt(labels, ItemLocationToRow(zeroObjectPointBottom, zeroObjectPointBottom) - 1, DarkGraySeparator);

Source/RunActivity/Viewer3D/WebServices/TrainDrivingDisplay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void AddLabel(ListLabel label)
183183
}
184184
void AddSeparator() => AddLabel(new ListLabel
185185
{
186-
FirstCol = Viewer.Catalog.GetString("Sprtr"),
186+
FirstCol = "Sprtr",
187187
});
188188

189189
TrainCar trainCar = viewer.PlayerLocomotive;

0 commit comments

Comments
 (0)