Skip to content

Commit

Permalink
把腾讯私人改名为腾讯云
Browse files Browse the repository at this point in the history
  • Loading branch information
imba-tjd authored Nov 8, 2021
1 parent fdebba1 commit d54f2b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ private async void AuthTestBtn_Click(object sender, RoutedEventArgs e)
Trans.TranslatorInit(TransAppIDBox.Text, TransSecretKeyBox.Text);
if (await Trans.TranslateAsync("apple", "zh", "en") != null)
{
HandyControl.Controls.Growl.Success($"腾讯私人{Application.Current.Resources["APITest_Success_Hint"]}");
HandyControl.Controls.Growl.Success($"腾讯云{Application.Current.Resources["APITest_Success_Hint"]}");
}
else
{
HandyControl.Controls.Growl.Error($"腾讯私人{Application.Current.Resources["APITest_Error_Hint"]}\n{Trans.GetLastError()}");
HandyControl.Controls.Growl.Error($"腾讯云{Application.Current.Resources["APITest_Error_Hint"]}\n{Trans.GetLastError()}");
}
}

Expand Down Expand Up @@ -70,7 +70,7 @@ private async void TransTestBtn_Click(object sender, RoutedEventArgs e)
}
else
{
HandyControl.Controls.Growl.Error($"腾讯私人{Application.Current.Resources["APITest_Error_Hint"]}\n{Trans.GetLastError()}");
HandyControl.Controls.Growl.Error($"腾讯云{Application.Current.Resources["APITest_Error_Hint"]}\n{Trans.GetLastError()}");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions MisakaTranslator-WPF/lang/en-US.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<sys:String x:Key="SettingsMenu_TranslatorSettings_General">General</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_Baidu">百度翻译 Baidu Translate</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_TencentFYJ">腾讯翻译君 Tencent AI Translate</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_TencentOld">腾讯私人翻译 Tencent TMT</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_TencentOld">腾讯云翻译 Tencent TMT</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_Jbeijing">Jbeijing</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_KingsoftFAIT">金山快译 Kingsoft FastAIT</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_Dreye">译典通 Dr.eye</sys:String>
Expand Down Expand Up @@ -89,7 +89,7 @@
<sys:String x:Key="DeepLTransSettingsPage_Introduce">DeepL (network required) provides better translation among them English, Japanese and Chinese. You need to apply for the translation services, acquire the authentication key, and then fill in below before testing. If the API is tested as invalid, you can refer to official Baidu documentations with the error codes. It is likely to incur charges, &quot;Check API quota&quot; will lead you to the dashboard of DeepL Translate.</sys:String>
<sys:String x:Key="DeepLTransSettingsPage_secretKey">DeepL authentication key</sys:String>

<sys:String x:Key="TencentOldTransSettingsPage_Introduce">Tencent TMT API (腾讯私人翻译, network required) supports multilingual translation with better support for Japanese and Chinese. You need to apply for the API (on the website in Chinese), get access to the SecretId and SecretKey, and then fill in below before testing. If the API is tested as invalid, you can refer to official Tencent documentations with the error codes. Previous version of API is likely to incur charges, &quot;Check API quota&quot; will lead you to the dashboard of Tencent TMT.</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_Introduce">Tencent TMT API (腾讯云翻译, network required) supports multilingual translation with better support for Japanese and Chinese. You need to apply for the API (on the website in Chinese), get access to the SecretId and SecretKey, and then fill in below before testing. If the API is tested as invalid, you can refer to official Tencent documentations with the error codes. Previous version of API is likely to incur charges, &quot;Check API quota&quot; will lead you to the dashboard of Tencent TMT.</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_SecretId">SecretId</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_SecretKey">SecretKey</sys:String>

Expand Down
6 changes: 3 additions & 3 deletions MisakaTranslator-WPF/lang/zh-CN.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<sys:String x:Key="SettingsMenu_TranslatorSettings_General">通用设置</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_Baidu">百度翻译API</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_TencentFYJ">腾讯翻译君</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_TencentOld">腾讯私人</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_TencentOld">腾讯云</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_Jbeijing">Jbeijing</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_KingsoftFAIT">金山快译</sys:String>
<sys:String x:Key="SettingsMenu_TranslatorSettings_Dreye">译典通</sys:String>
Expand Down Expand Up @@ -88,8 +88,8 @@
<sys:String x:Key="DeepLTransSettingsPage_secretKey">DeepL API 密钥</sys:String>

<sys:String x:Key="TencentOldTransSettingsPage_Introduce">腾讯翻译(私人)API支持多种语言互译,对日语、汉语的Galgame互译支持较好,需要联网使用;您需要先申请该API并创建一个密钥,获取SecretId和SecretKey后填入下方相应位置并进行测试认证;如果认证出现错误,请根据错误码至腾讯翻译API官方文档获取解决办法;腾讯旧版翻译API部分版本可能会产生某些费用,您可以使用额度查询按钮进入控制台确认。</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_SecretId">腾讯私人API SecretId</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_SecretKey">腾讯私人API SecretKey</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_SecretId">腾讯云API SecretId</sys:String>
<sys:String x:Key="TencentOldTransSettingsPage_SecretKey">腾讯云API SecretKey</sys:String>

<sys:String x:Key="TencentFYJTransSettingsPage_Introduce">腾讯翻译(翻译君)API支持多种语言互译,对英语、日语、汉语的互译支持较好,需要联网使用;您需要先申请腾讯翻译API并开通一个应用,获取appID和密钥后填入下方相应位置并进行测试认证;如果认证出现错误,请根据错误码至腾讯翻译API官方文档获取解决办法;腾讯翻译API部分版本可能会产生某些费用,您可以使用额度查询按钮进入控制台确认。</sys:String>
<sys:String x:Key="TencentFYJTransSettingsPage_appID">翻译君API appID</sys:String>
Expand Down
2 changes: 1 addition & 1 deletion TranslatorLibrary/CommonFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static class CommonFunction
{ "无翻译" , "NoTranslator"},
{ "百度翻译" , "BaiduTranslator" },
{ "腾讯翻译君" , "TencentFYJTranslator" },
{ "腾讯私人翻译" , "TencentOldTranslator" },
{ "腾讯云翻译" , "TencentOldTranslator" },
{ "彩云小译" , "CaiyunTranslator" },
{ "小牛翻译" , "XiaoniuTranslator"},
{ "IBM翻译" , "IBMTranslator"},
Expand Down

0 comments on commit d54f2b2

Please sign in to comment.