Testing solution to Mono loc problem

This commit is contained in:
Rick Falkvinge
2021-06-30 13:51:53 +02:00
parent 94d6cca2c2
commit 631f393c52
4 changed files with 16 additions and 3 deletions
+1
View File
@@ -223,6 +223,7 @@
<Compile Include="Communications\Payload\ParticipantMailPayload.cs" />
<Compile Include="Communications\Payload\PayloadEnvelope.cs" />
<Compile Include="Communications\Payload\NotificationPayload.cs" />
<Compile Include="Resources\MonoResourceManager.cs" />
<Compile Include="Security\Impersonation.cs" />
<Compile Include="Security\Sha256.cs" />
<Compile Include="Support\AsyncProcesses.cs" />
+12
View File
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Swarmops.Logic.Resources
{
class MonoResourceManager
{
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ namespace Resources {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.Global", global::System.Reflection.Assembly.Load("App_GlobalResources"));
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.Global", global::System.Reflection.Assembly.Load("Global.resources"));
resourceMan = temp;
}
return resourceMan;
@@ -12,9 +12,9 @@ namespace Swarmops.Frontend.Pages.v5.Public
{
protected void Page_Load(object sender, EventArgs e)
{
System.Resources.ResourceManager manager = new System.Resources.ResourceManager("Global", System.Reflection.Assembly.Load("Global.resources"));
//System.Resources.ResourceManager manager = new System.Resources.ResourceManager("Global", System.Reflection.Assembly.Load("Global.resources"));
this.LabelTest.Text = manager.GetString("Dashboard_Main_Temporary");
this.LabelTest.Text = Resources.Global.Dashboard_Main_Temporary; // manager.GetString("Dashboard_Main_Temporary");
}
}
}