FOR GREAT JUSTICE! Some renames.
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
<DependentUpon>Global.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="LocDomain.cs" />
|
||||
<Compile Include="LocStrings.cs" />
|
||||
<Compile Include="LocalizedStrings.cs" />
|
||||
<Compile Include="Menu5.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
|
||||
@@ -6,9 +6,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Localization
|
||||
{
|
||||
public static class LocStrings
|
||||
public static class LocalizedStrings
|
||||
{
|
||||
public static string GetString(LocDomain domain, string stringResource)
|
||||
public static string Get (LocDomain domain, string stringResource)
|
||||
{
|
||||
switch (domain)
|
||||
{
|
||||
@@ -21,7 +21,7 @@ namespace Swarmops.Localization
|
||||
}
|
||||
}
|
||||
|
||||
public enum LocString
|
||||
public enum LocalizedString
|
||||
{
|
||||
Unknown = 0
|
||||
};
|
||||
@@ -105,7 +105,7 @@ namespace Swarmops.Controls.Base
|
||||
|
||||
if (!String.IsNullOrEmpty (menuItem.ResourceKey))
|
||||
{
|
||||
object resourceObject = LocStrings.GetString(LocDomain.Menu5, "Menu5_" + menuItem.ResourceKey);
|
||||
object resourceObject = LocalizedStrings.Get(LocDomain.Menu5, "Menu5_" + menuItem.ResourceKey);
|
||||
if (resourceObject != null)
|
||||
{
|
||||
localizedText = resourceObject.ToString();
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Swarmops.Frontend.Pages.v5.Public
|
||||
{
|
||||
//System.Resources.ResourceManager manager = new System.Resources.ResourceManager("Global", System.Reflection.Assembly.Load("Global.resources"));
|
||||
|
||||
this.LabelTest.Text = Resources.Global.Dashboard_Main_Temporary; // manager.GetString("Dashboard_Main_Temporary");
|
||||
this.LabelTest.Text = Resources.Global.Dashboard_Main_Temporary; // manager.Get("Dashboard_Main_Temporary");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user