1) I've tried to install wargus using russian localization of warcraft 2 (it really has sense due to really genius translation and dub) but it turned out that cyrillic text in briefings, scenario objectives etc is corrupt and unreadable (some letters are missing). How is it possible to fix it?
2) I would be very grateful if someone could explain me what data files, where and how should i edit to translate stratagus into russian ( you can install wargus using russian warcraft 2 but it doesn't make everything be russian - menus, buttons, names of units etc stay english
Cyrillic text corrupt and translation in general
Re: Cyrillic text corrupt and translation in general
The guy who have worked on it no longer works on stratagus.
1)
Check graphics in data/graphics/ui/fonts to see if all letters are presents.
2)
In stratagus/po/, There are several translation files for "internal" text not taken directly from data. (they may be outdated too :-/ )
Lot of texts in script files don't have the translation mechanism :-/
And texts are in different place in all lua script (unitName are in units.lua, for example).
Note also that some string are use as identifier and should not be translated (they have generally '-' in it).
These are accessible from lua for translation:
I hope that helps.
(patch welcome)
good luck.
1)
Check graphics in data/graphics/ui/fonts to see if all letters are presents.
2)
In stratagus/po/, There are several translation files for "internal" text not taken directly from data. (they may be outdated too :-/ )
Lot of texts in script files don't have the translation mechanism :-/
And texts are in different place in all lua script (unitName are in units.lua, for example).
Note also that some string are use as identifier and should not be translated (they have generally '-' in it).
These are accessible from lua for translation:
Code: Select all
extern const char *Translate(const char *str);
extern void AddTranslation(const char *str1, const char *str2);
extern void LoadPO(const char *file);
extern void SetTranslationsFiles(const char *stratagusfile, const char *gamefile);
extern std::string StratagusTranslation;
extern std::string GameTranslation;
(patch welcome)
good luck.