Exemplo n.º 1
0
 /// <summary>
 /// Writes a localized string. If needed creates it, then sets the text of the specified language.
 /// </summary>
 /// <param name="FullName">The name of the value to set</param>
 /// <param name="Language">The language to set it for</param>
 /// <param name="Text">The text to register</param>
 public static void Write(string FullName, string Language, string Text)
 {
     if (!Strings.ContainsKey(FullName))
     {
         Strings[FullName] = new LocalString(FullName);
     }
     Strings[FullName].Set(Language, Text);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Writes a localized string. If needed creates it, then sets the text of the specified language.
        /// </summary>
        /// <param name="Module">The name of the module for which to set a value</param>
        /// <param name="Name">The name of the text for which to set the value</param>
        /// <param name="Language">The language to set it for</param>
        /// <param name="Text">The text to register</param>
        public static void Write(string Module, string Name, string Language, string Text)
        {
            string tempFullName = string.Join(".", Module, Name);

            if (!Strings.ContainsKey(tempFullName))
            {
                Strings[tempFullName] = new LocalString(Module, Name);
            }
            Strings[tempFullName].Set(Language, Text);
        }