Skip to content

Commit

Permalink
build: translate user-visible MacOS Info.plist strings
Browse files Browse the repository at this point in the history
re #222
  • Loading branch information
bk138 committed Nov 26, 2024
1 parent 0bf0137 commit e4e1df6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions po/InfoPlist.strings.de
Original file line number Diff line number Diff line change
@@ -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.";
1 change: 1 addition & 0 deletions po/InfoPlist.strings.es
Original file line number Diff line number Diff line change
@@ -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.";
1 change: 1 addition & 0 deletions po/InfoPlist.strings.sv
Original file line number Diff line number Diff line change
@@ -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.";
2 changes: 2 additions & 0 deletions po/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<language-code> file translating the relevant Info.plist strings for MacOS.
6. Adjust CMakeLists.txt to install the InfoPlist.strings.<language-code> file.

0 comments on commit e4e1df6

Please sign in to comment.