How to use localization in C#

后端 未结 9 2809
栀梦
栀梦 2020-11-22 02:59

I just can\'t seem to get localization to work.

I have a class library. Now I want to create resx files in there, and return some values based on the threa

9条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 03:19

    In addition @Fredrik Mörk's great answer on strings, to add localization to a form do the following:

    • Set the form's property "Localizable" to true
    • Change the form's Language property to the language you want (from a nice drop-down with them all in)
    • Translate the controls in that form and move them about if need be (squash those really long full French sentences in!)

    Edit: This MSDN article on Localizing Windows Forms is not the original one I linked ... but might shed more light if needed. (the old one has been taken away)

提交回复
热议问题