We have an open source project hosted in GitHub, but the code comments are Chinese language. The customers need to review all source code include comments by English language. Is there any convinent way to translate all comments in these code files from Chinese language to English language? Thanks for any ideas, so we can avoid to translate them one by one.
#region Xml节点转换信息-----------***need to be translated***
/// <summary>
/// 把XML节点转换为ActivityEntity实体对象-----------***need to be translated***
/// </summary>
/// <param name="node">节点--------***need to be translated***</param>
/// <returns>实体---------***need to be translated***</returns>
internal TransitionEntity ConvertXmlTransitionNodeToTransitionEntity(XmlNode node)
{
//构造转移的基本属性------------***need to be translated***
TransitionEntity entity = new TransitionEntity();
entity.TransitionGUID = XMLHelper.GetXmlAttribute(node, "id");
return entity;
}
#endregion
By the way, the source code maybe include C#, Javascript, HTML, XML and some JSON files. The C# files is the first priority choice to need to be translated.
Question: The effect way is to find a toolkit to recoginze the comments part and using such as Google translateion API service to translate Chinese to English or auto-generate it again. We neednt to ask anyone to tell us comments are not useful, or why dont write English directly.