It is quite easy to translate the user interface of EasyQuery components into another language. There two possible methods of localization:
First of all you can do it using satellite assemblies which is the standard way of localization for .NET components.
After installation you can find EasyQuery satellite assemblies in the the following folder: {install dir}\assemblies\NET##\XX Here * {install dir} - is the folder where you have installed EasyQuery (C:\Program Files\Korzh.NET by default) * ## - indicates to the number of .NET version you need (e.g. 40 or 35) * XX - is the language code (e.g. \fr - for French or \de - for German)
However there is another way: more easy and faster one.
All EasyQuery namespaces contains a special static TextResources class which you can use to change the texts used in EasyQuery controls. You can change each string separately through Put()
static method or simply load a .properties
which contains all translations for current namespace.
Here are more detailed instructions:
.properties
files in the \res\EasyQuery\ sub-folder of EasyQuery.NET installation folder.EQCoreMessages.properties
will become EQCoreMessages_PT.properties
for Portuguese language. After that just translate all text messages at the right part (after '=' symbol) in each row of all new .properties
files.Example:
Korzh.EasyQuery.TextResources.LoadFromFile("EQCoreMessages_PT.properties"); Korzh.EasyQuery.WebControls.TextResources.LoadFromFile("EQWebMessages_PT.properties");
In the example above we have loaded the resources for core Korzh.EasyQuery and for WebControls assemblies. For other editions you will need to change correspondingly the second line of code.
Here is how it will look for WPF edition:
Korzh.EasyQuery.TextResources.LoadFromFile("EQCoreMessages_PT.properties"); Korzh.EasyQuery.WpfControls.TextResources.LoadFromFile("EQWpfMessages_PT.properties");