add the missing files from the last commit (wtf?)

This commit is contained in:
2025-01-28 20:43:27 +01:00
parent 33a209a01a
commit 1c9c50778a
4 changed files with 8 additions and 8 deletions

View File

@@ -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));

View File

@@ -32,7 +32,7 @@ internal class GenerateModlistFeature : PluginFunction, IPluginFeatureProvider<G
if (sfd.ShowDialog(p.Api.MainWindow) == DialogResult.OK)
{
pkg.SaveAs(sfd.FileName);
RadMessageBox.Show(p.Api.MainWindow, MsgBoxLangRes., MsgBoxLangRes., MessageBoxButtons.OK, RadMessageIcon.Info);
RadMessageBox.Show(p.Api.MainWindow, MsgBoxLangRes.ModlistGenerated, MsgBoxLangRes.ModlistGenerated_Title, MessageBoxButtons.OK, RadMessageIcon.Info);
}
return null;

View File

@@ -79,11 +79,11 @@ namespace ModpackUpdater.Apps.Manager.LangRes {
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Modlist ähnelt.
/// Sucht eine lokalisierte Zeichenfolge, die Modlist for v{0} ähnelt.
/// </summary>
internal static string Text_Modlist {
internal static string Text_ModlistForVersion {
get {
return ResourceManager.GetString("Text_Modlist", resourceCulture);
return ResourceManager.GetString("Text_ModlistForVersion", resourceCulture);
}
}
}

View File

@@ -123,7 +123,7 @@
<data name="Node_Update" xml:space="preserve">
<value>Update: {0}</value>
</data>
<data name="Text_Modlist" xml:space="preserve">
<value>Modlist</value>
<data name="Text_ModlistForVersion" xml:space="preserve">
<value>Modlist for v{0}</value>
</data>
</root>