开发者

C# Program Settings and Localizing

So I'm starting my first actual Program in C# now, and just before I dig into the actual functions, I'm asking myself about localization of a Program.

I thought, a .resx is nice for the language-variables to store. But how can I get that into the settings? I see there is a .settings file, where I can assign Settings for the program, but how can I add my language.resx to these settings, so if there are several installed the user can select which language to use?

Furthermore, I'm designin the program using the winform designer - how can I tell a control to use a string of the resourcce as a text rather than type it in by hand?

I'm sure there are a bunch of tutorials out there concerning my issues, but 2 hours of searching haven't got开发者_JAVA百科 me anywhere, so if anyone has some suggestions for me, I'd be very thankful =)


This seems to be similar to question 1142802, so maybe that is a good place to start.

ed: It depends on the control a bit I guess, but for a menu you could create a method that defines it's contents. You'd then be able to do something like menuItem1.Text = string.Item1Text.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜