Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Upper-case target language code "EN" is not recognized by tencent translate api, error code-2002 #1

Open
wenchaoh opened this issue Mar 9, 2018 · 1 comment

Comments

@wenchaoh
Copy link

wenchaoh commented Mar 9, 2018

I tried the plugin in omegaT. Error code is returned if the target language for project is set to "EN", and the same error code is returned twice if the target language is set to "EN-US". "EN" and "EN-US" are the default options in omegat project properties. However, Tencent uses lower-case letters to identify languages. The plugin works when I changed the target language manually to "en". Maybe the plugin can auto convert language code to lower case letters?

-2002 | 不支持的目标语言 (language not supported)

Ovear added a commit to Ovear/omegat-tencent-plugin that referenced this issue Apr 8, 2018
1)修复因为OmetaT默认大写LanguageCode导致腾讯云API报错。
@Ovear
Copy link
Contributor

Ovear commented Apr 8, 2018

稍微修了下。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants