Ejemplo n.º 1
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            var translationProviderInfo = new TranslationProviderInfo();

            translationProviderInfo.Name = GoogleTranslationProvider.GetTranslationProviderName();
            translationProviderInfo.TranslationMethod = TranslationMethod.MachineTranslation;
            return(translationProviderInfo);
        }
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            TranslationProviderInfo translationProviderInfo = new TranslationProviderInfo();

            translationProviderInfo.TranslationMethod = TranslationMethod.TranslationMemory;
            translationProviderInfo.Name = PluginResources.Plugin_NiceName;
            return(translationProviderInfo);
        }
 public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
 {
     var translationProviderInfo = new TranslationProviderInfo
     {
         Name = "Controled MT Providers",
         TranslationMethod = TranslationMethod.MachineTranslation
     };
     return translationProviderInfo;
 }
Ejemplo n.º 4
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            var info = new TranslationProviderInfo
            {
                TranslationMethod = MtTranslationOptions.ProviderTranslationMethod,
                Name = PluginResources.Plugin_NiceName
            };

            return(info);
        }
Ejemplo n.º 5
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            var translationProviderInfo = new TranslationProviderInfo
            {
                Name = "Controled MT Providers",
                TranslationMethod = TranslationMethod.MachineTranslation
            };

            return(translationProviderInfo);
        }
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            var info = new TranslationProviderInfo()
            {
                TranslationMethod = TranslationMethod.MachineTranslation,
                Name = PluginResources.Plugin_NiceName
            };

            return(info);
        }
Ejemplo n.º 7
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            MtCloudApplicationInitializer.RefreshQeStatus();
            var info = new TranslationProviderInfo
            {
                TranslationMethod = TranslationMethod.MachineTranslation,
                Name = PluginResources.Plugin_NiceName
            };

            return(info);
        }
Ejemplo n.º 8
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            TranslationProviderInfo info = new TranslationProviderInfo();

            #region "TranslationMethod"
            info.TranslationMethod = TermInjectorTranslationOptions.ProviderTranslationMethod;
            #endregion

            #region "Name"
            info.Name = PluginResources.Plugin_NiceName;
            #endregion

            return(info);
        }
Ejemplo n.º 9
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            //throw new NotImplementedException();
            TranslationProviderInfo info = new TranslationProviderInfo();

            #region "TranslationMethod"
            info.TranslationMethod = DeepLSamplerTranslationOptions.ProviderTranslationMethod;
            #endregion

            #region "Name"
            info.Name = PluginResources.Plugin_NiceName;
            #endregion

            return(info);
        }
        /// <summary>
        /// Gets general information for the specified translation provider.
        /// </summary>
        /// <param name="translationProviderUri">A translation provider URI, representing the translation provider.</param><param name="translationProviderState">Optional translation provider state information, which can be used to determine
        ///             certain aspects of the general information.</param>
        /// <returns>
        /// A <see cref="T:Sdl.LanguagePlatform.TranslationMemoryApi.TranslationProviderInfo"/> object, containing general information that allows
        ///             an application to query the translation provider without having to instantiate it.
        /// </returns>
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            if (!this.SupportsTranslationProviderUri(translationProviderUri))
            {
                throw new NotSupportedException(
                          string.Format(PluginResources.Exception_UriNotSupported, translationProviderUri));
            }

            var settings = new TranslationProviderSettings(translationProviderUri);
            TranslationProviderInfo translationInfo = new TranslationProviderInfo()
            {
                Name = settings.TranslationMemoryName,
                TranslationMethod = TranslationMethod.TranslationMemory
            };

            return(translationInfo);
        }
Ejemplo n.º 11
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            var info = new TranslationProviderInfo
            {
                TranslationMethod = TausTranslationOptions.ProviderTranslationMethod,
                Name = PluginResources.Plugin_NiceName
            };

            #region "TranslationMethod"

            #endregion

            #region "Name"

            #endregion

            return(info);
        }
Ejemplo n.º 12
0
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            if (translationProviderUri == null) //Throw allowed exception if no arguments, translationProviderState is optional
            {
                throw new ArgumentNullException("Missing arguments.");
            }

            if (!SupportsTranslationProviderUri(translationProviderUri)) //Wrong Uri, Trados is probably looking for another provider
            {
                throw new Exception("Cannot handle URI.");
            }

            TranslationProviderInfo info = new TranslationProviderInfo(); //User friendly name and translation method entry point

            info.Name = PluginResources.Plugin_NiceName;
            info.TranslationMethod = LetsMTTranslationProviderOptions.ProviderTranslationMethod; //TODO: get from provider, merge options and provider?

            return(info);
        }
        public TranslationProviderInfo GetTranslationProviderInfo(Uri translationProviderUri, string translationProviderState)
        {
            TranslationProviderInfo info = new TranslationProviderInfo();

            #region "TranslationMethod"
            info.TranslationMethod = MtTranslationOptions.ProviderTranslationMethod;
            #endregion

            #region "Name"
            info.Name = PluginResources.Plugin_NiceName;
            #endregion

            return info;
        }