mirror of https://github.com/odrling/Aegisub
Fix #846, patch from pomyk, thanks!
Originally committed to SVN as r3026.
This commit is contained in:
parent
9e931f341c
commit
72b94648e8
|
@ -64,6 +64,11 @@ AegisubLocale::~AegisubLocale() {
|
||||||
void AegisubLocale::Init(int language) {
|
void AegisubLocale::Init(int language) {
|
||||||
if (language == -1) language = wxLANGUAGE_ENGLISH;
|
if (language == -1) language = wxLANGUAGE_ENGLISH;
|
||||||
if (locale) delete locale;
|
if (locale) delete locale;
|
||||||
|
|
||||||
|
if (!wxLocale::IsAvailable(language)) {
|
||||||
|
language = wxLANGUAGE_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
curCode = language;
|
curCode = language;
|
||||||
locale = new wxLocale(language);
|
locale = new wxLocale(language);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue