Embed translations for Windows
Embed translations for Windows
This commit is contained in:
parent
ce8de563e3
commit
ae09ab7189
|
@ -482,6 +482,7 @@ if(WIN32)
|
||||||
PRIVATE
|
PRIVATE
|
||||||
audio/internal/dsound.cpp
|
audio/internal/dsound.cpp
|
||||||
wxvbam.rc
|
wxvbam.rc
|
||||||
|
wxvbam_translations.rc
|
||||||
)
|
)
|
||||||
target_link_libraries(visualboyadvance-m
|
target_link_libraries(visualboyadvance-m
|
||||||
dxguid dsound wsock32 ws2_32 imm32 version winmm)
|
dxguid dsound wsock32 ws2_32 imm32 version winmm)
|
||||||
|
|
|
@ -366,6 +366,11 @@ bool wxvbamApp::OnInit() {
|
||||||
#endif
|
#endif
|
||||||
// load system default locale, if available
|
// load system default locale, if available
|
||||||
locale.Init();
|
locale.Init();
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
wxTranslations::Get()->SetLoader(new wxResourceTranslationsLoader);
|
||||||
|
#endif
|
||||||
|
|
||||||
locale.AddCatalog("wxvbam");
|
locale.AddCatalog("wxvbam");
|
||||||
// make built-in xrc file available
|
// make built-in xrc file available
|
||||||
// this has to be done before parent OnInit() so xrc dump works
|
// this has to be done before parent OnInit() so xrc dump works
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
wxvbam_bg MOFILE "translations/bg/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_br MOFILE "translations/br/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_cs MOFILE "translations/cs/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_de MOFILE "translations/de/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_el MOFILE "translations/el/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_en_US MOFILE "translations/en_US/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_es MOFILE "translations/es/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_es_419 MOFILE "translations/es_419/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_es_CO MOFILE "translations/es_CO/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_es_US MOFILE "translations/es_US/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_fr MOFILE "translations/fr/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_fr_FR MOFILE "translations/fr_FR/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_gl MOFILE "translations/gl/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_he_IL MOFILE "translations/he_IL/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_hu MOFILE "translations/hu/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_hu_HU MOFILE "translations/hu_HU/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_id MOFILE "translations/id/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_it_IT MOFILE "translations/it_IT/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_ja MOFILE "translations/ja/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_ko MOFILE "translations/ko/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_ko_KR MOFILE "translations/ko_KR/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_ms_MY MOFILE "translations/ms_MY/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_nb MOFILE "translations/nb/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_nl MOFILE "translations/nl/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_pl MOFILE "translations/pl/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_pl_PL MOFILE "translations/pl_PL/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_pt_BR MOFILE "translations/pt_BR/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_pt_PT MOFILE "translations/pt_PT/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_ru_RU MOFILE "translations/ru_RU/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_sv MOFILE "translations/sv/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_tr MOFILE "translations/tr/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_uk MOFILE "translations/uk/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_ur_PK MOFILE "translations/ur_PK/LC_MESSAGES/wxvbam.mo"
|
||||||
|
wxvbam_zh_CN MOFILE "translations/zh_CN/LC_MESSAGES/wxvbam.mo"
|
Loading…
Reference in New Issue