Gtk: Fix up some internationalization problems.

This commit is contained in:
BearOso 2023-03-21 15:45:16 -05:00
parent 16a45f7b92
commit e1eb7ea9de
3 changed files with 325 additions and 618 deletions

View File

@ -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

View File

@ -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;
}
}