Difference between revisions of "Connecting Wordfast Pro to Modern MT"

From Wordfast Wiki
Jump to: navigation, search
(new)
 
 
Line 1: Line 1:
Currently (Jan 2021), [[Wordfast Pro 5]] does not have a dedicated setting to connect it to [https://www.modernmt.com/ Modern MT]. However, the connection can be set up using the flexible '''Custom MT''' option in Wordfast Pro 5.19 (or newer).
+
Currently (Jan 2021), [[Wordfast Pro]] (WFP) does not have a dedicated setting to connect it to [https://www.modernmt.com/ Modern MT]. However, the connection can be set up using the flexible '''Custom MT''' option in Wordfast Pro 5.19 (or newer).
  
To do this, go to ''Preferences'' > ''Machine Translation'' in WFP5. Tick '''Enable Custom MT''' and then fill in these details:
+
To do this, go to ''Preferences'' > ''Machine Translation'' in WFP. Tick '''Enable Custom MT''' and then fill in these details:
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 17: Line 17:
 
# In the '''URL''' string, update the ISO language codes as you need. Our example uses '''en''' for English in ''source'' and '''fr''' for French in ''target''. If you translate, for example, Japanese to Chinese (China), the string to use is ''<nowiki>https://</nowiki>api.modernmt.com/translate?source='''ja'''&target='''zh-CN'''&q={ss}''. ModernMT publish all language codes they support in a geeky way at [https://api.modernmt.com/languages https://api.modernmt.com/languages].
 
# In the '''URL''' string, update the ISO language codes as you need. Our example uses '''en''' for English in ''source'' and '''fr''' for French in ''target''. If you translate, for example, Japanese to Chinese (China), the string to use is ''<nowiki>https://</nowiki>api.modernmt.com/translate?source='''ja'''&target='''zh-CN'''&q={ss}''. ModernMT publish all language codes they support in a geeky way at [https://api.modernmt.com/languages https://api.modernmt.com/languages].
 
# In the '''Header''' string, replace '''8888888888888''' with your API key. If you haven't got one, you can buy it from the service provider, i.e. [https://www.modernmt.com/ Modern MT] (it's a third party to Wordfast, so we offer no support on this).
 
# In the '''Header''' string, replace '''8888888888888''' with your API key. If you haven't got one, you can buy it from the service provider, i.e. [https://www.modernmt.com/ Modern MT] (it's a third party to Wordfast, so we offer no support on this).
 +
 +
[[Category:Wordfast Pro]]

Latest revision as of 16:33, 16 April 2021

Currently (Jan 2021), Wordfast Pro (WFP) does not have a dedicated setting to connect it to Modern MT. However, the connection can be set up using the flexible Custom MT option in Wordfast Pro 5.19 (or newer).

To do this, go to Preferences > Machine Translation in WFP. Tick Enable Custom MT and then fill in these details:

URL: https://api.modernmt.com/translate?source=en&target=fr&q={ss}
JSON key: translation
Header: MMT-ApiKey=8888888888888,X-HTTP-Method-Override=GET

Important notes:

  1. In the URL string, update the ISO language codes as you need. Our example uses en for English in source and fr for French in target. If you translate, for example, Japanese to Chinese (China), the string to use is https://api.modernmt.com/translate?source=ja&target=zh-CN&q={ss}. ModernMT publish all language codes they support in a geeky way at https://api.modernmt.com/languages.
  2. In the Header string, replace 8888888888888 with your API key. If you haven't got one, you can buy it from the service provider, i.e. Modern MT (it's a third party to Wordfast, so we offer no support on this).