Example #1
0
 /// <summary>
 /// Sets the global string localizer. This method should be called before starting
 /// up the GUI.</summary>
 /// <param name="stringLocalizer">String localizer</param>
 public static void SetStringLocalizer(StringLocalizer stringLocalizer)
 {
     if (s_stringLocalizer != null)
     {
         throw new InvalidOperationException("Some strings have already been localized by another string localizer");
     }
     s_stringLocalizer = stringLocalizer;
 }
Example #2
0
 private static StringLocalizer GetStringLocalizer()
 {
     return(s_stringLocalizer ?? (s_stringLocalizer = new StringLocalizer()));
 }
Example #3
0
 private static StringLocalizer GetStringLocalizer()
 {
     return s_stringLocalizer ?? (s_stringLocalizer = new StringLocalizer());
 }
Example #4
0
 /// <summary>
 /// Sets the global string localizer. This method should be called before starting
 /// up the GUI.</summary>
 /// <param name="stringLocalizer">String localizer</param>
 public static void SetStringLocalizer(StringLocalizer stringLocalizer)
 {
     if (s_stringLocalizer != null)
         throw new InvalidOperationException("Some strings have already been localized by another string localizer");
     s_stringLocalizer = stringLocalizer;
 }