Localize VintaSoft WinForms demo project
In This Topic
If you want to localize any WinForms project, you need to do the following steps:
-
Localize UI of WinForms forms, which are used in project:
-
For each WinForms form in project:
- Open WinForms form in WinForms designer of Visual Studio.
- Set the "Localizable" property of the form to True.
- Set the "Language" property of the form from the "(Default)" language to the desired language, for example Spanish, => designer will create FormName.es.resx file that contains information about Spanish localization of the form
- Localize UI elements of form and information about localization will be saved to the FormName.es.resx file.
-
Localize string constants, which are used in source codes of project:
- Create "Localization" folder in the project
- Add resource file with name "Strings.resx" to the "Localization" folder
-
For each constant string in project code:
- Add constant string to the Strings.resx resource file.
- Replace constant string in the project code by the code that access constant string in the Strings.resx resource file.
All VintaSoft WinForms demo projects have English language localization.
Also the SDK provides a localization in German language for 3 VintaSoft WinForms demo projects (DicomViewerDemo, PdfEditorDemo, SpreadsheetEditorDemo) as an example showing that VintaSoft WinForms demo projects can be localized into any language.
If you want to localize a VintaSoft WinForms demo project, which is already localized (e.g. has German language localization), you should do the following steps:
- Localize UI of WinForms forms, which are used in project as written above in instructions for localization of any WinForms project.
-
Localize string constants, which are used in source codes of project:
- Create copy of "Localization\Strings.resx" file => "Strings - Copy.resx" and "Strings - Copy.Designer.cs" files will be created.
- Delete file "Strings - Copy.Designer.cs".
- Rename file "Strings - Copy.resx" to the "Strings.es.resx" file.
- Open "Strings.es.resx" file in resource designer of Visual Studio and translate string constants from English language to Spanish language.
If you want to localize a VintaSoft WinForms demo project, which is not localized currently, you can go by 2 ways.
WAY 1: Localize the VintaSoft WinForms demo project as written above in instructions for localization of any WinForms project.
WAY 2: Send us a request to localize the VintaSoft WinForms demo project to the desired language and we will try to help you with localization.