What is the point of having string resources in C ++?

I have never used string resources, so I would like to ask when should I use them and why are they useful when I can just define a string?

+3
source share
3 answers

The reason for using string resources is that user interface designers can easily modify them. If you define it in the code, the developer will have to edit the code, whereas if you define it in the resource, the resource file can be edited and your application does not need to be rebuilt. Having a separate resource file also helps in project management - all the lines that ever appear to the user are centrally located, and product management can revise them as needed. It makes sense?

+11
source

In a word: internationalization. Lines in resource files greatly alleviate the pain of providing custom messages in multiple languages.

+7
source

, , / .

Separate editing may not be performed by a programmer - it is especially useful if they are translated,

+1
source

Source: https://habr.com/ru/post/1733294/


All Articles