Example #1
0
        public static void Initialize()
        {
            if (IsInitialized)
            {
                return;
            }

            var assemblyName = typeof(App)
                               .Assembly
                               .GetName()
                               .Name;

            CurrentFactory = LocalizationFactory
                             .Create(assemblyName, "MEMENIM");

            LocalizationManager.SetCurrentFactory(
                assemblyName, CurrentFactory);

            CurrentFactory
            .DefaultLocalizationChanged += OnDefaultLocalizationChanged;
            CurrentFactory
            .LocalizationChanged += OnLocalizationChanged;
            CurrentFactory
            .LocalizationsLoaded += OnLocalizationsLoaded;
            CurrentFactory
            .LocalizationFileNotFound += OnLocalizationFileNotFound;
            CurrentFactory
            .LocalizedCultureNotFound += OnLocalizedCultureNotFound;
            CurrentFactory
            .LocalizationsNotFound += OnLocalizationsNotFound;

            CurrentFactory
            .LocalizationUpdated += OnLocalizationUpdated;

            IsInitialized = true;
        }