Example #1
0
        /// <summary>
        /// gets all translations and assign translation to a text
        /// so that it can show the right translation to the users
        /// </summary>
        /// <param name="item">item</param>
        private static void AssignTranslations(i18nText item)
        {
            Check.Require(allTranslations != null, "InitAlli18nTexts should must be called before assigning translations");

            foreach (var tran in allTranslations)
            {
                if (tran.StringTextID == item.StringTextID)
                {
                    item.SetTranslation(tran);
                }
            }
        }