[C++] I18n of RSA key create/load dialog under windows
Under Windows we use the native crypto storage for generating a persistent RSA key pair. When a process creates or tries to load such a key the OS asks for user's consent by showing to him the following dialog.
There are 3 strings (labels) that need to be translated in the user's language. Labels 2. and 3. are show on the screenshot above with red underline.
1. Creation Title
Example: Vereign Client
I did not see this one on the dialog, probably it was shown on previous versions of Windows - I use Windows 10.
3. Key Name
Example: Vereign Client Identity Key
2. Key Description
Example: Vereign Client will use this key to authenticate with the Vereign Services
I18n strategies
We can use different strategies for the I18n of these labels:
1. Include the translations inside the library
Further we have 3 ways to find out the user's language:
1.1. Detect the language based on the Operating System locale.
1.2. Have the integrator provide the locale as parameter to the vereign_service_start
API.
1.3. By default detect the language based on the Operating System locale, and give a way to the integrator to overwrite the default with vereign_service_start
API parameter.
2. Include defaults in English, and provide APIs to the integrator that he can use to change them to whatever he likes.
I included the option 2. here, because it is cleaner in software architecture point of view - I always prefer injection and configurability. I don't know thought, if it makes sense from business perspective.
@gospodin.bodurov @kalin.canov @damyan.mitev @georg.greve can you have a look and give suggestions.