From 1c9c50778a1268c4d2047074a8d2ac1b028bffaf Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Tue, 28 Jan 2025 20:43:27 +0100 Subject: [PATCH] add the missing files from the last commit (wtf?) --- ModpackUpdater.Apps.Manager/Features/SharedFunctions.cs | 4 ++-- .../Features/Tools/GenerateModlistFeature.cs | 2 +- .../LangRes/GeneralLangRes.Designer.cs | 6 +++--- ModpackUpdater.Apps.Manager/LangRes/GeneralLangRes.resx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ModpackUpdater.Apps.Manager/Features/SharedFunctions.cs b/ModpackUpdater.Apps.Manager/Features/SharedFunctions.cs index 9a7ab22..c968861 100644 --- a/ModpackUpdater.Apps.Manager/Features/SharedFunctions.cs +++ b/ModpackUpdater.Apps.Manager/Features/SharedFunctions.cs @@ -215,7 +215,7 @@ internal static class SharedFunctions public static ExcelPackage? GenerateModlist(InstallInfos installInfos) { var pkg = new ExcelPackage(); - var ws = pkg.Workbook.Worksheets.Add(GeneralLangRes.Text_Modlist); + var ws = pkg.Workbook.Worksheets.Add(string.Format(GeneralLangRes.Text_ModlistForVersion, installInfos.Version)); var cr = 1; var cc = 1; @@ -241,7 +241,7 @@ internal static class SharedFunctions cellName.SetHyperlink(new Uri(action.Website)); var cellTag = ws.Cells[cr, cc++]; - cellTag.Value = action.SourceTag; + cellTag.Value = string.IsNullOrWhiteSpace(action.SourceTag)? "direct link" : action.SourceTag; if (!string.IsNullOrWhiteSpace(action.SourceUrl)) cellTag.SetHyperlink(new Uri(action.SourceUrl)); diff --git a/ModpackUpdater.Apps.Manager/Features/Tools/GenerateModlistFeature.cs b/ModpackUpdater.Apps.Manager/Features/Tools/GenerateModlistFeature.cs index 3edb5c7..11de523 100644 --- a/ModpackUpdater.Apps.Manager/Features/Tools/GenerateModlistFeature.cs +++ b/ModpackUpdater.Apps.Manager/Features/Tools/GenerateModlistFeature.cs @@ -32,7 +32,7 @@ internal class GenerateModlistFeature : PluginFunction, IPluginFeatureProvider - /// Sucht eine lokalisierte Zeichenfolge, die Modlist ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die Modlist for v{0} ähnelt. /// - internal static string Text_Modlist { + internal static string Text_ModlistForVersion { get { - return ResourceManager.GetString("Text_Modlist", resourceCulture); + return ResourceManager.GetString("Text_ModlistForVersion", resourceCulture); } } } diff --git a/ModpackUpdater.Apps.Manager/LangRes/GeneralLangRes.resx b/ModpackUpdater.Apps.Manager/LangRes/GeneralLangRes.resx index 26bc033..eec2219 100644 --- a/ModpackUpdater.Apps.Manager/LangRes/GeneralLangRes.resx +++ b/ModpackUpdater.Apps.Manager/LangRes/GeneralLangRes.resx @@ -123,7 +123,7 @@ Update: {0} - - Modlist + + Modlist for v{0} \ No newline at end of file