diff --git a/CHANGELOG.md b/CHANGELOG.md index ec04f38..0449d49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog +## v0.0.31 (16 Dec 2024) +- When opening wiki, use original name of the item, not localised name + ## v0.0.30 (4 Dec 2024) - Fix a spelling mistake in items notes diff --git a/Remnant2SaveAnalyzer/Views/Pages/WorldAnalyzerPage.xaml.cs b/Remnant2SaveAnalyzer/Views/Pages/WorldAnalyzerPage.xaml.cs index aa9c793..a7aec91 100644 --- a/Remnant2SaveAnalyzer/Views/Pages/WorldAnalyzerPage.xaml.cs +++ b/Remnant2SaveAnalyzer/Views/Pages/WorldAnalyzerPage.xaml.cs @@ -557,9 +557,15 @@ private void SearchItem_Click(object sender, RoutedEventArgs e) } private static void SearchItem(LootItem item) { + string name = item.Name; + if (item is LocalisedLootItem lootItem) + { + name = lootItem.OriginalName; + } + string wikiQuery = Properties.Settings.Default.Wiki == "remwiki" ? - $"https://remnant.wiki/{item.Name}" : - $"https://remnant2.wiki.fextralife.com/{item.Name}"; + $"https://remnant.wiki/{name}" : + $"https://remnant2.wiki.fextralife.com/{name}"; Process.Start("explorer.exe", wikiQuery); } private void ExpandAllItem_Click(object sender, RoutedEventArgs e) @@ -827,6 +833,8 @@ public LocalisedLootItem(LootItem item, WorldAnalyzerPage parent) public override string Name => Id == Loc.GameT(Id) ? base.Name : Loc.GameT(Id); + public string OriginalName => base.Name; + // ReSharper disable UnusedMember.Global public Brush? PossibleItemTextColor => Remnant2SaveAnalyzer.Properties.Settings.Default.UnobtainableItemColor == "Dim" && IsLooted || Remnant2SaveAnalyzer.Properties.Settings.Default.NoPrerequisiteItemStyle == "Italic" && IsPrerequisiteMissing