mirror of https://github.com/snes9xgit/snes9x.git
Gtk: Fix up some internationalization problems.
This commit is contained in:
parent
16a45f7b92
commit
e1eb7ea9de
|
@ -49,7 +49,11 @@ include(CheckIncludeFile)
|
|||
include(FindGettext)
|
||||
|
||||
foreach(lang es fr_FR ja pt_BR ru sr@latin uk zh_CN)
|
||||
GETTEXT_PROCESS_PO_FILES(${lang} ALL INSTALL_DESTINATION "share/locale/" PO_FILES po/${lang}.po)
|
||||
GETTEXT_PROCESS_PO_FILES(${lang} ALL "share/locale/" PO_FILES po/${lang}.po)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/${lang}.gmo
|
||||
DESTINATION ${LOCALEDIR}/${lang}/LC_MESSAGES
|
||||
RENAME snes9x-gtk.mo
|
||||
COMPONENT translations)
|
||||
endforeach()
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -87,15 +87,17 @@ int S9xVulkanDisplayDriver::init()
|
|||
if (!gui_config->shader_filename.empty() && gui_config->use_shaders)
|
||||
{
|
||||
shaderchain = std::make_unique<Vulkan::ShaderChain>(context.get());
|
||||
setlocale(LC_ALL, "C");
|
||||
if (!shaderchain->load_shader_preset(gui_config->shader_filename))
|
||||
{
|
||||
fmt::print("Couldn't load shader preset file\n");
|
||||
shaderchain = nullptr;
|
||||
setlocale(LC_ALL, "");
|
||||
}
|
||||
else
|
||||
{
|
||||
window->enable_widget("shader_parameters_item", true);
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue