开发者

How to get muli-language (human language) intellisense in .Net

开发者 https://www.devze.com 2023-04-09 02:04 出处:网络
I\'m creating a library (C#, .Net), but I need to distribute it to customers in multiple countries.When you add XML comments to your classes, intellisense picks up the comments out of the assembly and

I'm creating a library (C#, .Net), but I need to distribute it to customers in multiple countries. When you add XML comments to your classes, intellisense picks up the comments out of the assembly and gives you a nice description of your methods, properties, arguments, etc...

Is there any way I can make localized versions of my assembly so the XML 开发者_Go百科comments are in the language of the locale, yet only have to maintain one copy of my source code?


I know this is an pretty old one, but it was the first hit to my google-query, so I would like to post my answer here for other google-users on this topic.

Yet, I don't know any tool which translates your xml-comments automatically, but if you do the translation for yourself, you can store the translated xml-file with the same name as the original one in a sub-folder, named by the targeted locale.

So I have my localized resources in a sub-folder 'de', where all German translated xml-comment files and localized satellite assemblies are stored.

When I reference my assembly, IntelliSense shows the localized texts, as the running application uses the localized strings.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号