WebMail Pro ASP.NET documentation

Adding language constant

1. Make sure the text editor you use supports UTF-8 because all text in WebMail language files is in UTF-8 charset. It's very important to use a text editor in UTF-8 mode because otherwise some characters might be displayed incorrectly for those users which have another language set as default system language. You can use standard Windows Notepad because it supports UTF-8.

2. Open App_Data\langs\webmail.[lang].txt, where [lang]=es is for Spanish destination language (e.g. webmail.es.txt). Add declaration of a new language constant:

NewConstant = new constant

This should be added to all webmail.[lang].txt files (it’s webmail.txt for English interface language) which are used in WebMail. For instance, if you don’t add the constant to webmail.txt, “undefined” will be displayed instead of “new constant”.

3. Compile webmail.[lang].txt into webmail.[lang].resources via ResGen tool which is shipped with .NET Framework or MS Visual Studio distribution - in command line, type:

resgen webmail.es.txt

If the webmail.[lang].txt is changed, recompilation (or IIS restart) is required (step 3). If the ".resources" files are blocked, it's necessary to rebuild the whole project. Instead of compiling via ResGen, you may restart your IIS (type iisreset in command line) to build the resources.