Skip to content

一个可将源代码中的注释部分翻译成指定的语言的小工具

Notifications You must be signed in to change notification settings

jevonsflash/CommentTranslateTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comment Translate Tool

这是一个可智能识别源代码中的注释部分,并将其翻译成指定的语言的小工具。 翻译接口来自有道自然语言翻译服务(ai.youdao.com)

支持自动批量翻译源代码文件中的注释到指定的语言

目前可以提供的翻译语言有:中文,英文,日文,俄文,法文

注释解析器(Parser)的代码借鉴于thuantan2060的开源项目,链接: https://github.com/thuantan2060/comment-translator

这是独立开发者的一个开源项目, 希望得到您的意见反馈,请将Bugs汇报至我的邮箱

avatar

更新内容:

Date Version Content
V1.0.0 2021-10-15 初始版本
V1.0.1 2021-10-18 1. 增加跳过翻译自动注释中的标签功能, 2. 提高代码执行效率
V1.1.0 2022-4-28 1. 更新依赖包, 2. 修复网络不稳定时可能出现空引用异常的报错

安装说明:

  1. 下载安装包 https://github.com/MatoApps/CommentTranslateTool/raw/master/CTT/setup.zip

  2. 解压并双击 setup.exe 安装

  3. ApiKey.cs 中替换成你的值

public const string _appKey = "{your app key}";
public const string _appSecret = "{your app secret}";

运行环境

  • Microsoft Windows 10 及以上

  • .Net 6 运行时

已知问题:

作者信息:

作者:林小

邮箱:[email protected]

License

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

一个可将源代码中的注释部分翻译成指定的语言的小工具

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages