Esempio n. 1
0
        public static void UpdatedTranslatedValue(string Key, string Value)
        {
            if (Key == string.Empty)
            {
                return;
            }

            if (ActiveTranslations.Where(x => x.Key == Key).Count() == 0)
            {
                CreateTranslatedValue(Key, Value);
            }
            else
            {
            }
        }
Esempio n. 2
0
        public static void CreateTranslatedValue(string Key, string Value)
        {
            if (Key == string.Empty)
            {
                return;
            }

            if (ActiveTranslations.Where(x => x.Key == Key).Count() == 0)
            {
                var list = ActiveTranslations.ToList();
                list.Add(new XML.Translation(Key, Value));
                ActiveTranslations = list.ToArray();
            }
            else
            {
                UpdatedTranslatedValue(Key, Value);
            }
        }