Skip to content

Commit

Permalink
French language support
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-ushakov committed May 23, 2024
1 parent e895310 commit 128de8f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
22 changes: 16 additions & 6 deletions MechoSoma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,22 @@ elseif (APPLE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
add_executable(${APPLICATION_NAME} MACOSX_BUNDLE ${APPLICATION_SOURCES})
set_property(TARGET ${APPLICATION_NAME} PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/CMake/Info.plist.in")
target_compile_options(${APPLICATION_NAME} PRIVATE -x objective-c++)
target_link_libraries(${APPLICATION_NAME} PRIVATE stdc++
"-framework CoreFoundation" "-framework Cocoa" "-framework QuartzCore" "-framework OpenGL"
"-framework CoreAudio" "-framework AudioToolbox" "-framework ForceFeedback" "-framework CoreHaptics"
"-framework GameController" "-framework IOKit" "-framework Carbon" "-framework Metal"
objc ${LIBRARY_NAME} ${COMMON_APPLICATION_LIBRARIES})
target_link_libraries(${APPLICATION_NAME} PRIVATE
"-framework AudioToolbox"
"-framework Carbon"
"-framework Cocoa"
"-framework CoreAudio"
"-framework CoreFoundation"
"-framework CoreHaptics"
"-framework ForceFeedback"
"-framework GameController"
"-framework IOKit"
"-framework Metal"
"-framework OpenGL"
"-framework QuartzCore"
${LIBRARY_NAME}
${COMMON_APPLICATION_LIBRARIES}
)

if (STEAM_VERSION)
set(APP_BUNDLE_CONTENTS_DIR "${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_NAME}.app/Contents")
Expand Down
2 changes: 1 addition & 1 deletion MechoSoma/XTool/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace localization {
std::unordered_set<std::string> supportedLanguages = {
"ru", "en", "it", "cz", "lt"
"cz", "en", "fr", "it", "lt", "ru"
};
std::unordered_set<std::string> localizedFiles = {
"resource/iscreen/itext.scb",
Expand Down
3 changes: 2 additions & 1 deletion MechoSoma/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int game_main(int argc, char const *argv[]) {
localization::setLanguage(gpx()->sys()->getLanguage().c_str());
#else
int main(int argc, char const *argv[]) {
#ifdef STEAM_VERSION1
#ifdef STEAM_VERSION
if (!SteamAPI_Init()) {
return 1;
}
Expand All @@ -102,6 +102,7 @@ int main(int argc, char const *argv[]) {
LanguagePair("english", "en"),
LanguagePair("czech", "cz"),
LanguagePair("italian", "it"),
LanguagePair("french", "fr"),
LanguagePair("lithuanian", "lt"),
LanguagePair("russian", "ru")
};
Expand Down

0 comments on commit 128de8f

Please sign in to comment.