mirror of
https://github.com/burakgon/OpenScreens.git
synced 2026-12-06 09:00:52 +08:00
For #5. The apps follow the system's language: on a Mac, iPhone or iPad set to Simplified Chinese they are in Chinese, and set to anything else in English, as before. The strings are in a catalog of the apps, Apps/Shared/Localizable.xcstrings, because the interface and the package's code look them up in the app. Its 781 entries are what the compiler extracts from the apps, OpenScreensUI and OpenScreensCore, built for macOS and for the iOS Simulator, merged with xcstringstool sync, and each has its Chinese. Beside it, AppShortcuts.xcstrings has the phrases for Siri and Shortcuts, and an InfoPlist.xcstrings beside each Info.plist the reasons the system gives when the app asks for the local network and Face ID. The Chinese uses the words Apple's own apps use for the same things: 屏幕共享, 远程登录, 帐幕模式, 资料库, 群组, 个人收藏, 钥匙串, 面容ID, 触控ID, 调度中心, 聚焦. As Apple writes it, there is no space between Chinese and Latin text; the system spaces them when it draws them. As #5 asks, OpenScreens, VNC, SSH, SFTP, Tailscale and the three modes, High Performance, Standard and Full Quality, stay in English, and so do Mac, iPhone, iPad, Bonjour, Raspberry Pi and the names printed on keys. With a Chinese localization in the app, the engine's own Chinese, which it has had all along, is shown too. project.yml needs nothing: the catalogs are in folders the targets already take their files from. The Xcode project has what XcodeGen 2.49.0 generates for them and nothing else; it would also have moved the version stamps of the project and its schemes, which are left as they were. The empty catalog in OpenScreensUI's resources, which nothing looked in, is gone. Both apps were built. The Mac app and the iPhone app carry zh-Hans.lproj with these strings, and the engine's bundle its own. Given an order of languages, the system chooses Chinese for someone who puts Simplified Chinese first, and English for English, Traditional Chinese and the languages there is no translation for. The iPhone app was looked at in Chinese on the iPhone 18 Pro Simulator (iOS 27.2): the library and its sections, the sidebar, a computer's menu, Quick Connect, adding and editing a computer, every pane of Settings, the shortcut editor, a session with its toolbar menus, statistics, Type Text and connection settings, the sign-in card, a rejected password, a refused connection and the progress of a slow one. The Mac app was not run in Chinese.