Localization
By default all errors and information messages from XData modules use neutral (en-US) locale, but it's possible to translate this using satellite assembly (for .Net 4.0 version) or prepare resx files to Microsoft.Extension.Localization (for ASP.Net Core 2.0 projects used XData .Net Standard 2.0 version). To help developers make localization fast and simple as possible, XData sources complected with some "bat" files.
All settings within files is made for Russian locale (ru-RU), but there are no problem to patch files for any locale.
Prepare text files to translation
- Patch file add_locale.bat with setting path to RESGEN utility ("C:\Program Files\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools"), path to XData.dll and locale code.
- Run add_locale.bat and be sure with no errors during making translation file (.restext).
- Translate localization strings inside .restext file to target locale language. Take care, some string are multi-line, and some strings has format templates structure (see string.Format).
Satellite assembli compilation
(for .Net 4.0 version)
- Patch file compile.bat with setting path to AL utility ("C:\Program Files\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools"), path to XData.dll and locale code.
- Run compile.bat and be sure and be sure with no errors during making satellite assembly (.dll).
Resource file generation
(for ASP.Net Core 2.0 projects used XData .Net Standard 2.0 version)
- Patch file createres.bat with setting path to RESGEN utility ("C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools"), path to XData.dll and locale code.
- Run createres.bat and be sure and be sure with no errors during making resource file (.resx).
Install sattelite assembly
- (for .Net 4.0 version) Copy localization folder named as target locale code to bin folder of Your application (where XData.dll is located) or (for ASP.Net Core 2.0 projects used XData .Net Standard 2.0 version) copy .resx file for target locale to resources folder of Your ASP.Net Core 2.0 site.
- Restart Your application or site.