Resource String Location

后端 未结 2 1467
生来不讨喜
生来不讨喜 2020-12-10 23:09

Where is the best location to place resource strings? Does it depend on scope? Currently most of our strings are being placed at the project level, but certain strings are

2条回答
  •  一个人的身影
    2020-12-10 23:48

    You should strongly favor using resources at the form level (set the form's Localizable property to True in the designer). The designer has very good support for it and the WinRes.exe utility is available to localize strings off-line. No code is required.

    Localizing project resource strings is possible but not well supported by the IDE. Check my answer in this thread for an approach.

提交回复
热议问题