Localize using strongly typed resources:

generated Class with

     strotygen -p -t Yavsc.Models.IT.Fixing.Bug.resx

must be modified :

* prefix with 'Yavsc.Server.Resources.'  the baseName
  in call to new System.Resources.ResourceManager
* remove the internal ctor

additionally, the generated class must be or unique or partial
This commit is contained in:
Paul Schneider 2019-06-16 13:10:14 +01:00
commit 9501ee1f16
13 changed files with 342 additions and 44 deletions

View file

@ -0,0 +1,53 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Yavsc.Models.IT.Fixing {
using System;
using System.Reflection;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public partial class Bug {
private static System.Resources.ResourceManager resourceMan;
private static System.Globalization.CultureInfo resourceCulture;
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.Resources.ResourceManager ResourceManager {
get {
if (object.Equals(null, resourceMan)) {
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Yavsc.Server.Resources.Yavsc.Models.IT.Fixing.Bug", typeof(Bug).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
public static string TitleTooLong {
get {
return ResourceManager.GetString("TitleTooLong", resourceCulture);
}
}
}
}