From e4e1df6a9b00c30f9249dd8c3a05a4bf085cf9c5 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Tue, 26 Nov 2024 22:19:58 +0100 Subject: [PATCH] build: translate user-visible MacOS Info.plist strings re #222 --- CMakeLists.txt | 3 +++ po/InfoPlist.strings.de | 1 + po/InfoPlist.strings.es | 1 + po/InfoPlist.strings.sv | 1 + po/README.md | 2 ++ 5 files changed, 8 insertions(+) create mode 100644 po/InfoPlist.strings.de create mode 100644 po/InfoPlist.strings.es create mode 100644 po/InfoPlist.strings.sv diff --git a/CMakeLists.txt b/CMakeLists.txt index cb9e742b..d715569b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,9 @@ fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/de.gmo DESTINATION MultiVNC.app/Contents/Resources/de.lproj RENAME ${LOCALE_DOMAIN}.mo) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/es.gmo DESTINATION MultiVNC.app/Contents/Resources/es.lproj RENAME ${LOCALE_DOMAIN}.mo) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sv.gmo DESTINATION MultiVNC.app/Contents/Resources/sv.lproj RENAME ${LOCALE_DOMAIN}.mo) + install(FILES po/InfoPlist.strings.de DESTINATION MultiVNC.app/Contents/Resources/de.lproj RENAME InfoPlist.strings) + install(FILES po/InfoPlist.strings.es DESTINATION MultiVNC.app/Contents/Resources/es.lproj RENAME InfoPlist.strings) + install(FILES po/InfoPlist.strings.sv DESTINATION MultiVNC.app/Contents/Resources/sv.lproj RENAME InfoPlist.strings) endif(APPLE) if(WIN32) diff --git a/po/InfoPlist.strings.de b/po/InfoPlist.strings.de new file mode 100644 index 00000000..c7ab5fea --- /dev/null +++ b/po/InfoPlist.strings.de @@ -0,0 +1 @@ +"NSLocalNetworkUsageDescription" = "MultiVNC benötigt Zugriff auf Ihr lokales Netzwerk, um VNC-Server für die Remote-Desktop-Steuerung zu erkennen und eine Verbindung zu ihnen herzustellen."; \ No newline at end of file diff --git a/po/InfoPlist.strings.es b/po/InfoPlist.strings.es new file mode 100644 index 00000000..49b2b678 --- /dev/null +++ b/po/InfoPlist.strings.es @@ -0,0 +1 @@ +"NSLocalNetworkUsageDescription" = "MultiVNC requiere acceso a su red local para poder descubrir y conectarse a servidores VNC para el control de escritorio remoto."; \ No newline at end of file diff --git a/po/InfoPlist.strings.sv b/po/InfoPlist.strings.sv new file mode 100644 index 00000000..d44d8b10 --- /dev/null +++ b/po/InfoPlist.strings.sv @@ -0,0 +1 @@ +"NSLocalNetworkUsageDescription" = "MultiVNC kräver åtkomst till ditt lokala nätverk för att kunna upptäcka och ansluta till VNC-servrar för fjärrstyrning av skrivbordet."; diff --git a/po/README.md b/po/README.md index 4db1abd9..07beb32d 100644 --- a/po/README.md +++ b/po/README.md @@ -5,3 +5,5 @@ 2. Use poedit or a similar tool to create or update a translation, save the resulting .po file in this directory. - Make sure to add a `translator-credits` entry as in the other .po files so your name automatically shows up in the About dialog. 4. Adjust CMakeLists.txt to build and install the corresponding .mo file. +5. Make sure to add an InfoPlist.strings. file translating the relevant Info.plist strings for MacOS. +6. Adjust CMakeLists.txt to install the InfoPlist.strings. file.