Example #1
0
        /// <summary>
        /// Loads all translations for the given locale from the folder
        /// with the name of the locale.
        /// </summary>
        private void LoadTranslations(Locale locale)
        {
            Translation <Locale, Key> translation = Translation <Locale, Key> .Load(this, locale);

            if (translation == null)
            {
                return;
            }
            translation.Localizer = this;
            Translations[locale.ToInt32(null)] = translation;
            if (BaseLocale.Equals(locale))
            {
                BaseTranslation = translation;
            }
            if (DefaultLocale.Equals(locale))
            {
                DefaultTranslation = translation;
            }
        }