# HG changeset patch # User Teemu Piippo # Date 1572779224 -7200 # Node ID e249d97c7fe62f2339386ec77d7b7c4eeca63d62 # Parent 8b9780700b5ee7546eed913064509f5e0dbd660a fixed translations being updated twice at the same time, that's bad diff -r 8b9780700b5e -r e249d97c7fe6 CMakeLists.txt --- a/CMakeLists.txt Sun Nov 03 12:56:42 2019 +0200 +++ b/CMakeLists.txt Sun Nov 03 13:07:04 2019 +0200 @@ -80,7 +80,7 @@ # Translations qt5_create_translation(QM_FILES ${LDFORGE_SOURCES} ${LDFORGE_HEADERS} ${LDFORGE_FORMS} ${LDFORGE_LOCALES}) add_custom_target(translations ALL DEPENDS ${QM_FILES}) -add_custom_target(resources ALL DEPENDS ${RESOURCE_FILES}) +add_custom_target(resources ALL DEPENDS ${LDFORGE_RESOURCES}) add_dependencies(resources translations) set(CMAKE_CXX_STANDARD 17) @@ -103,8 +103,9 @@ # Move languages.qrc into the build directory to bake the .qm-files into LDForge # so that they don't have to be shipped separately # https://stackoverflow.com/a/34798124 +# https://gist.github.com/giraldeau/546ba5512a74dfe9d8ea0862d66db412 set(LANGUAGES_QRC "languages.qrc") -configure_file(${LANGUAGES_QRC} ${LANGUAGES_QRC} COPYONLY) +configure_file(${LANGUAGES_QRC} ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) qt5_add_resources(LDFORGE_QM_RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGES_QRC}) add_executable(ldforge WIN32 diff -r 8b9780700b5e -r e249d97c7fe6 languages.qrc --- a/languages.qrc Sun Nov 03 12:56:42 2019 +0200 +++ b/languages.qrc Sun Nov 03 13:07:04 2019 +0200 @@ -1,7 +1,6 @@ fi.qm - ru.qm sv.qm diff -r 8b9780700b5e -r e249d97c7fe6 locale/fi.ts --- a/locale/fi.ts Sun Nov 03 12:56:42 2019 +0200 +++ b/locale/fi.ts Sun Nov 03 13:07:04 2019 +0200 @@ -1,10 +1,9 @@ - + Document - Form @@ -12,62 +11,50 @@ LibrariesEditor - Form - - Add - Browse LDraw library - Library does not exist - The directory %1 does not exist. - Unreadable library - The directory %1 cannot be read. - Remove library - Set role - Move up - Move down @@ -75,27 +62,22 @@ LibraryManager - Official library - Unofficial library - Working library - Path - Role @@ -103,101 +85,85 @@ MainWindow - + File + Tiedosto + + + Quit + Poistu + + + Open… + Avaa... + + + Ctrl+O + Ctrl+O + + + New + Uusi + + + Ctrl+N + Ctrl+N + + + Language + Kieli + + + Open model + Avaa malli + + + LDraw models (*.ldr *.dat) + LDraw-mallit (*.ldr *.dat) + + + Problem opening file + Ongelma tiedoston avaamisessa + + + Could not open %1: %2 + Ei voitu avata %1: %2 + + LDForge - - File - - - - Recent files - - Quit - - - - - Open… - - - - - Ctrl+O - - - - - New - - - - - Ctrl+N - - - - Preferences… - - - Open model - - - - - LDraw models (*.ldr *.dat) - - - - - Problem opening file - - - - - Could not open %1: %2 - - SettingsEditor - Dialog - General - Language: - - System language - English - LDraw parts libraries