First loc test with new assembly retriever
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ namespace Resources {
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
public static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
|
||||
+25
-3
@@ -8,6 +8,8 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System.Globalization;
|
||||
|
||||
namespace Resources {
|
||||
using System;
|
||||
|
||||
@@ -39,19 +41,39 @@ 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("Menu5", global::System.Reflection.Assembly.Load("Menu5"));
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Menu5", GetCurrentCultureAssembly("Menu5"));
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
internal static System.Reflection.Assembly GetCurrentCultureAssembly(string baseAssemblyName)
|
||||
{
|
||||
string prefix = string.Empty;
|
||||
string infix = string.Empty;
|
||||
string suffix = ".resources";
|
||||
|
||||
CultureInfo currentCulture = CultureInfo.CurrentUICulture;
|
||||
if (currentCulture != null /* && currentCulture.Name != "neutral" */)
|
||||
{
|
||||
string cultureName = currentCulture.Name;
|
||||
|
||||
infix = "." + cultureName;
|
||||
prefix = cultureName + "/";
|
||||
|
||||
return System.Reflection.Assembly.Load(prefix + baseAssemblyName + infix + suffix);
|
||||
}
|
||||
|
||||
return System.Reflection.Assembly.Load(baseAssemblyName + suffix);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
public static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user