Added STRINGTABLES translations, fix dialogs and minor refactorization.

 * Added the translation of the STRINGTABLEs commands.
 * Refactor the generation of names for msgids to methods so it can be
reused and are more readables.
 * Fixed translation of dialog captions and lists.
 * Change the handle of file encondings.