Translating comments and region names in source code

前端 未结 3 2141
名媛妹妹
名媛妹妹 2021-01-18 06:10

Does anyone know of a batch processor or a VS 2010 plugin/script that would let me translate comments and region names from Chinese into English?

The only ones I\'ve

3条回答
  •  太阳男子
    2021-01-18 07:07

    I'm not too sure if this is possible. What you can do to help would be the following: 1) Make sure that both C# projects have the Properties > Build > Xml document file check box checked. 2.1) Write an application that reads in the generated xml file. 2.2) Parse the file, and for each value make a call to Google Translate to get the translated value. 2.3) Place the translated value within another xml file that has the same structure as the one created from building the project.

    This wouldn't solve the your desire to translate the region names, but its a start. At least you would have intelligence when using the two projects.

    This is actually a good idea for a small open source project. I may decide to pick it up. If I do, I'll let you know.

提交回复
热议问题