.NET Globalization & Satellite DLL's

后端 未结 4 1024
情话喂你
情话喂你 2021-02-09 17:54

I\'m working on localizing an app I\'ve written in C#.

Everything seems to be working nicely, using satellite resource assemblies to translate each form\'s strings (as p

4条回答
  •  后悔当初
    2021-02-09 18:41

    Add all your resource files (i.e. *.resx) to /Resource folder and create the object of ResourceManager as below

    System.Resources.ResourceManager rm = new System.Resources.ResourceManager("ApplicationName.Resources.MyResource", Assembly.GetExecutingAssembly());

    Here say for lang de-DE your resx file will be named as MyResource.de-DE.resx

提交回复
热议问题