Localize Windows Service

无人久伴 提交于 2019-12-25 03:28:16

问题


I want to Set Culture for Windows Service that I developed. Can someone recommend me a good read for or how to go about it.

So far I have I Tried to do the Following OnStart()

Dim oCultureInfo as CultureInfo = New CultureInfo("tr-TR")

System.Threading.Thread.CurrentThread.Culture = oCultureInfo
System.Threading.Thread.CurrentThread.UICulture = oCultureInfo

After doing so I still see that My culture is US English.


回答1:


  1. Go to your setup which will be in the same solution.
  2. Right click on it and select ADD->PROJECT OUTPUT--> a window will appear.
  3. Select Project- your localization project then select from below localized resource.
  4. Just click ok. you will see one file is added to setup project.
  5. Just compile and install it will work fine.


来源:https://stackoverflow.com/questions/4894405/localize-windows-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!