How to use localization in C#

后端 未结 9 2745
栀梦
栀梦 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:22

    In addition to @Eric Bole-Feysot answer:

    Thanks to satellite assemblies, localization can be created based on .dll/.exe files. This way:

    • source code (VS project) could be separated from language project,
    • adding a new language does not require recompiling the project,
    • translation could be made even by the end-user.

    There is a little known tool called LSACreator (free for non-commercial use or buy option) which allows you to create localization based on .dll/.exe files. In fact, internally (in language project's directory) it creates/manages localized versions of resx files and compiles an assembly in similar way as @Eric Bole-Feysot described.

提交回复
热议问题