public LanguageService(ILanguageConfiguration languageConfiguration)
        {
            Require.Objects.NotNull(languageConfiguration, nameof(languageConfiguration));
            Require.Collections.NotEmpty(languageConfiguration.Languages, nameof(languageConfiguration.Languages));

            _languageConfiguration = languageConfiguration;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PaymentPointTasks"/> class.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="langConfig">The lang config.</param>
        /// <remarks></remarks>
        public PaymentPointTasks(FlydubaiContext context, ILanguageConfiguration langConfig)
        {
            this.context = context;
            this.languageConfiguration = langConfig;

            this.languageId = this.languageConfiguration.CurrentLanguage.Id;
        }
Exemple #3
0
 public XmlDocLanguageWriter(ILanguage language, IDocumentationLoader docLoader, bool injectXmlDoc)
 {
     _language      = language;
     _docLoader     = docLoader;
     _injectXmlDoc  = injectXmlDoc;
     _configuration = new LanguageConfiguration();
     _formatter     = new TextFormatter();
     _writer        = language.GetWriter(_formatter, _configuration);
 }
 public XmlDocLanguageWriter(ILanguage language, IDocumentationLoader docLoader, bool injectXmlDoc)
 {
     _language = language;
     _docLoader = docLoader;
     _injectXmlDoc = injectXmlDoc;
     _configuration = new LanguageConfiguration();
     _formatter = new TextFormatter();
     _writer = language.GetWriter(_formatter, _configuration);
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpecialOfferTasks"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="languageConfiguration">The language configuration.</param>
 /// <remarks></remarks>
 public SpecialOfferTasks(FlydubaiContext context, ILanguageConfiguration languageConfiguration)
 {
     this.context = context;
     this.languageConfiguration = languageConfiguration;
 }
Exemple #6
0
 public PromotionalTeaserBusiness(FlydubaiContext context, ILanguageConfiguration languageConfiguration)
 {
     this.context = context;
     this.languageConfiguration = languageConfiguration;
 }
Exemple #7
0
 /// <summary>
 /// Set Default Language of Window.
 /// </summary>
 /// <param name="window">Target window</param>
 /// <param name="language">Target Language</param>
 public static ResourceDictionary SetLanguage(ILanguageConfiguration language)
 {
     return(language.GetResourceDictionary());
 }