public TranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(TranslationProvider.TranslationProviderScheme); UseBasicAuthentication = true; Port = 8001; LPPreferences = new Dictionary <CultureInfo, ETSLanguagePair>(); }
public TranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(TranslationProvider.TranslationProviderScheme); UseBasicAuthentication = true; RequiresSecureProtocol = false; Port = 8001; LPPreferences = new Dictionary <CultureInfo, SDLMTEdgeLanguagePair>(); }
/// <summary> /// Sets up the uri builder handling the case of the old google uri format (googlemt:///) /// </summary> /// <param name="uri"></param> private void InitializeURIBuilder(Uri uri) { if (uri == null || string.Equals(uri.ToString(), "googlemt:///")) { // If the uri is in the old format that change it to the new format _uriBuilder = new TranslationProviderUriBuilder(GoogleTranslationProvider.GetUriScheme); Uri parsedBaseUri = new Uri(BaseUri); _uriBuilder.Protocol = parsedBaseUri.Scheme; _uriBuilder.HostName = parsedBaseUri.Host; _uriBuilder.Port = parsedBaseUri.Port; } else { _uriBuilder = new TranslationProviderUriBuilder(uri); } }
public DeepLTranslationOptions(Uri uri, string state = null) { _uriBuilder = new TranslationProviderUriBuilder(uri); if (string.IsNullOrWhiteSpace(state)) { return; } var successful = TryParseJson(state, out var stateObject); if (successful) { LanguagesSupported = JsonConvert .DeserializeObject <Dictionary <string, string> >(stateObject?["LanguagesSupported"]?.ToString()); } }
public DeepLTranslationOptions(Uri uri, string state = null) { _uriBuilder = new TranslationProviderUriBuilder(uri); if (string.IsNullOrWhiteSpace(state)) { return; } var successful = TryParseJson(state, out var stateObject); if (successful) { LanguagesSupported = JsonConvert .DeserializeObject <Dictionary <string, string> >(stateObject?["LanguagesSupported"]?.ToString()); SendPlainTextParameter = stateObject?["SendPlainTextParameter"]?.ToString(); if (Enum.TryParse <Formality>(stateObject["Formality"]?.ToString(), out var formality)) { Formality = formality; } } }
public DeepLSamplerTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(DeepLSamplerTranslationProvider.DeepLSamplerTranslationProviderScheme); }
public DeepLSamplerTranslationOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public DeepLTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder("deepltranslationprovider"); }
public TermInjectorTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(TermInjectorTranslationProvider.TermInjectorTranslationProviderScheme); }
public MtTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(MtTranslationProvider.ListTranslationProviderScheme); }
/// <summary> /// Initializes a new instance of the <see cref="TranslationProviderSettings"/> class with empty data fields. /// </summary> public TranslationProviderSettings() { this.uriBuilder = new TranslationProviderUriBuilder(AbstractTrados2007TranslationProvider.UriScheme); }
public SettingsModel(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public NLPTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(NLPTranslationProvider.NLPTranslationProviderScheme); }
public MtTranslationOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public SettingsModel() { _uriBuilder = new TranslationProviderUriBuilder(Constants.IATEGlossary); }
public MtTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(MtTranslationProvider.ListTranslationProviderScheme); }
public LetsMTTranslationProviderOptions() { m_uriBuilder = new TranslationProviderUriBuilder(LetsMTTranslationProvider.TranslationProviderScheme); }
public TermInjectorTranslationOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public OpusCatOptions() { _uriBuilder = new TranslationProviderUriBuilder(OpusCatProvider.OpusCatTranslationProviderScheme); }
public FiskmoOptions() { _uriBuilder = new TranslationProviderUriBuilder(FiskmoProvider.FiskmoTranslationProviderScheme); }
public OpusCatOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public ListTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder(OpenNmtProvider.ListTranslationProviderScheme); System.Console.WriteLine(OpenNmtProvider.ListTranslationProviderScheme); }
public BeGlobalTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder("beglobaltranslationprovider"); }
public TartuNLPOptions() { _uriBuilder = new TranslationProviderUriBuilder(TartuNLPProvider.ListTranslationProviderScheme); }
public MtTranslationOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public TmxMallOptions() { this._uriBuilder = new TranslationProviderUriBuilder("tmxmallprovider"); }
public TranslationOptions(Uri uri) : this() { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public FiskmoOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public BeGlobalTranslationOptions() { _uriBuilder = new TranslationProviderUriBuilder("sdlmachinetranslationcloudprovider"); }
public TmxMallOptions(Uri uri) { this._uriBuilder = new TranslationProviderUriBuilder(uri); }
public TartuNLPOptions(Uri uri) { _uriBuilder = new TranslationProviderUriBuilder(uri); }
public FiskmoOptions() { _uriBuilder = new TranslationProviderUriBuilder(FiskmoProvider.ListTranslationProviderScheme); System.Console.WriteLine(FiskmoProvider.ListTranslationProviderScheme); }