C#: How to bind the text of a winforms button to a resource

后端 未结 6 1777
刺人心
刺人心 2021-01-02 21:32

We have a resource file with lots of translated strings used various places in our application. Is there a better way for binding for example the text of a button to a certa

6条回答
  •  温柔的废话
    2021-01-02 22:29

    There is a good tool called LingoBit Localizer that does the job for the fraction of the time it would take to build all the reasources files.

    You don't have to care about other languages while in development process, you simply code and set properties as you would if you were programming for a unilingual software. After you're done, or whenever you wish, you run LingoBit Localizer over your DLL or Windows Form application. This will get user-displayable strings out to a grid for you within its GUI. Now, perhaps a professional translator could use to translate the words if your programmers don't know the language for which the applicaiton have to be translated. Then, you simply save the project when you're done. This will create a DLL file which you simply add to your binary deployment directory, then your application will automatically set itself to the right language depending on the current culture information on which the app. is installed or so. This saves a lot of programming time and headaches.

    Hope this helps even though it is not resource-based solution.

提交回复
热议问题