Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Mac launcher: the one-app install target's texts in German

v0lumehiac3241807243
diff --git a/frontend-qt/nspb_qt/localization.py b/frontend-qt/nspb_qt/localization.py
index dc8ff7a0..56238d7f 100644
--- a/frontend-qt/nspb_qt/localization.py
+++ b/frontend-qt/nspb_qt/localization.py
@@ -217,34 +217,34 @@ TABLE: dict[str, tuple[str, str, str, str]] = {
'build.compatibility': ('兼容性选项', 'Older iPhone support', 'Stöd för äldre iPhone-modeller', 'Unterstützung für ältere iPhones'),
'build.macNote': ('在这台 Mac 上直接运行。', 'Play directly on this Mac.', 'Spela direkt på den här Mac-datorn.', 'Direkt auf diesem Mac spielen.'),
'build.iosNote': ('为你的 iPhone 或 iPad 创建应用。', 'Create an app for your iPhone or iPad.', 'Skapa en app för din iPhone eller iPad.', 'Erstelle eine App für dein iPhone oder iPad.'),
- 'build.shell': ('iPhone 或 iPad(所有游戏共用一个应用)', 'iPhone or iPad (one app for all games)', 'iPhone eller iPad (en app för alla spel)', 'iPhone or iPad (one app for all games)'),
- 'build.shellNote': ('设备上的一个应用装下你添加的所有游戏。每个游戏的数据只复制一次。', "One app on the device holds every game you add. Each game's data is copied once.", 'En app på enheten rymmer alla spel du lägger till. Varje spels data kopieras en gång.', "One app on the device holds every game you add. Each game's data is copied once."),
- 'shell.projectStage': ('准备共用应用', 'Prepare the shared app', 'Förbereder den gemensamma appen', 'Prepare the shared app'),
- 'shell.projectFailed': ('无法准备共用应用:%@', 'The shared app could not be prepared: %@', 'Den gemensamma appen kunde inte förberedas: %@', 'The shared app could not be prepared: %@'),
- 'shell.checkStage': ('比较 %@ 上的游戏数据', 'Compare the game data on %@', 'Jämför speldata på %@', 'Compare the game data on %@'),
- 'shell.dataAlready': ('已安装到 %@,游戏数据已经在设备上', 'Installed on %@, the game data was already on the device', 'Installerad på %@, speldatan fanns redan på enheten', 'Installed on %@, the game data was already on the device'),
- 'shell.noSpace': ('%@ 上空间不足:游戏数据需要 %.1f GB,设备只剩 %.1f GB。请先释放空间再安装', 'Not enough space on %@: the game data needs %.1f GB and the device has %.1f GB free. Free up space, then install again', 'Inte tillräckligt med utrymme på %@: speldatan behöver %.1f GB och enheten har %.1f GB ledigt. Frigör utrymme och installera igen', 'Not enough space on %@: the game data needs %.1f GB and the device has %.1f GB free. Free up space, then install again'),
- 'shell.noFramework': ('没有找到游戏的框架:%@', "The game's framework was not found: %@", 'Spelets ramverk hittades inte: %@', "The game's framework was not found: %@"),
- 'shell.needsDevice': ('共用应用需要一台设备和一个签名团队。请先在“安装到”里选择。', 'The shared app needs a device and a signing team. Choose them under Install on first.', 'Den gemensamma appen behöver en enhet och ett signeringsteam. Välj dem först under Installera på.', 'The shared app needs a device and a signing team. Choose them under Install on first.'),
- 'shell.copySize': ('要复制的游戏数据:%@,共 %d 个文件。', 'Game data to copy: %@ in %d files.', 'Speldata att kopiera: %@ i %d filer.', 'Game data to copy: %@ in %d files.'),
- 'shell.copyWired': ('复制完成前请保持 %@ 解锁。', 'Keep %@ unlocked until the copy finishes.', 'Låt %@ vara olåst tills kopieringen är klar.', 'Keep %@ unlocked until the copy finishes.'),
- 'shell.copyWifi': ('已通过 Wi-Fi 连接:复制 %@ 大约需要 %d 到 %d 分钟。用数据线会更快。', 'Connected over Wi-Fi: copying %@ takes about %d to %d minutes. A cable is faster.', 'Ansluten via Wi-Fi: att kopiera %@ tar ungefär %d till %d minuter. En kabel går fortare.', 'Connected over Wi-Fi: copying %@ takes about %d to %d minutes. A cable is faster.'),
- 'shell.copyWifiOne': ('已通过 Wi-Fi 连接:复制 %@ 大约需要 %d 分钟。用数据线会更快。', 'Connected over Wi-Fi: copying %@ takes about %d minutes. A cable is faster.', 'Ansluten via Wi-Fi: att kopiera %@ tar ungefär %d minuter. En kabel går fortare.', 'Connected over Wi-Fi: copying %@ takes about %d minutes. A cable is faster.'),
- 'shell.copyWifiMinute': ('已通过 Wi-Fi 连接:复制 %@ 大约需要一分钟。用数据线会更快。', 'Connected over Wi-Fi: copying %@ takes about a minute. A cable is faster.', 'Ansluten via Wi-Fi: att kopiera %@ tar ungefär en minut. En kabel går fortare.', 'Connected over Wi-Fi: copying %@ takes about a minute. A cable is faster.'),
- 'shell.copyNotConnected': ('%@ 目前没有连接。请用数据线连接并保持解锁。', '%@ is not connected right now. Connect it with a cable and keep it unlocked.', '%@ är inte ansluten just nu. Anslut den med kabel och låt den vara olåst.', '%@ is not connected right now. Connect it with a cable and keep it unlocked.'),
- 'shell.copyWaiting': ('正在等待数据线。%@ 接上后会自动开始复制。', 'Waiting for a cable. The copy starts when %@ is connected.', 'Väntar på en kabel. Kopieringen startar när %@ är ansluten.', 'Waiting for a cable. The copy starts when %@ is connected.'),
- 'shell.copyTitle': ('复制游戏数据', 'Copy the game data', 'Kopiera speldata', 'Copy the game data'),
- 'shell.copyContinue': ('继续', 'Continue', 'Fortsätt', 'Continue'),
- 'shell.copyWaitCable': ('等待数据线', 'Wait for a cable', 'Vänta på kabel', 'Wait for a cable'),
- 'shell.copySkip': ('暂不复制', 'Not now', 'Inte nu', 'Not now'),
- 'shell.copyStopWaiting': ('不再等待', 'Stop waiting', 'Sluta vänta', 'Stop waiting'),
- 'shell.retry': ('重试', 'Retry', 'Försök igen', 'Retry'),
- 'shell.notPaired': ('这台 Mac 还没有与 %@ 配对。请用数据线连接,在设备上点「信任」并输入设备密码,然后重新开始。', '%@ is not paired with this Mac. Connect it with a cable, tap Trust on the device and enter its passcode. Then start again.', '%@ är inte ihopparad med den här Mac-datorn. Anslut den med kabel, tryck på Lita på i enheten och ange enhetens lösenkod. Starta sedan om.', '%@ is not paired with this Mac. Connect it with a cable, tap Trust on the device and enter its passcode. Then start again.'),
- 'shell.copyIncomplete': ('%@ 上的游戏数据不完整:%@。重试会补全。', 'The game data on %@ is incomplete: %@. Retry finishes it.', 'Speldatan på %@ är ofullständig: %@. Försök igen så blir den klar.', 'The game data on %@ is incomplete: %@. Retry finishes it.'),
- 'fail.devicePairing.what': ('这台 Mac 还没有与设备配对。', 'This Mac is not paired with the device.', 'Den här Mac-datorn är inte ihopparad med enheten.', 'This Mac is not paired with the device.'),
- 'fail.devicePairing.next': ('用数据线连接设备,在设备上点「信任」并输入设备密码,然后重试。', 'Connect the device with a cable, tap Trust on the device and enter its passcode. Then try again.', 'Anslut enheten med kabel, tryck på Lita på i enheten och ange dess lösenkod. Försök sedan igen.', 'Connect the device with a cable, tap Trust on the device and enter its passcode. Then try again.'),
- 'fail.shellDataIncomplete.what': ('设备上的游戏数据不完整。', 'The game data on the device is incomplete.', 'Speldatan på enheten är ofullständig.', 'The game data on the device is incomplete.'),
- 'fail.shellDataIncomplete.next': ('游戏还不能玩。请解锁设备并保持连接,然后点重试,只会补上缺少或不完整的文件。', 'The game is not ready to play. Unlock the device and keep it connected, then retry. Only the missing or incomplete files are copied.', 'Spelet är inte klart att spela. Lås upp enheten och håll den ansluten och försök sedan igen. Bara de filer som saknas eller är ofullständiga kopieras.', 'The game is not ready to play. Unlock the device and keep it connected, then retry. Only the missing or incomplete files are copied.'),
+ 'build.shell': ('iPhone 或 iPad(所有游戏共用一个应用)', 'iPhone or iPad (one app for all games)', 'iPhone eller iPad (en app för alla spel)', 'iPhone oder iPad (eine App für alle Spiele)'),
+ 'build.shellNote': ('设备上的一个应用装下你添加的所有游戏。每个游戏的数据只复制一次。', "One app on the device holds every game you add. Each game's data is copied once.", 'En app på enheten rymmer alla spel du lägger till. Varje spels data kopieras en gång.', 'Eine App auf dem Gerät enthält jedes Spiel, das du hinzufügst. Die Daten jedes Spiels werden einmal kopiert.'),
+ 'shell.projectStage': ('准备共用应用', 'Prepare the shared app', 'Förbereder den gemensamma appen', 'Gemeinsame App vorbereiten'),
+ 'shell.projectFailed': ('无法准备共用应用:%@', 'The shared app could not be prepared: %@', 'Den gemensamma appen kunde inte förberedas: %@', 'Die gemeinsame App konnte nicht vorbereitet werden: %@'),
+ 'shell.checkStage': ('比较 %@ 上的游戏数据', 'Compare the game data on %@', 'Jämför speldata på %@', 'Spieldaten auf %@ vergleichen'),
+ 'shell.dataAlready': ('已安装到 %@,游戏数据已经在设备上', 'Installed on %@, the game data was already on the device', 'Installerad på %@, speldatan fanns redan på enheten', 'Auf %@ installiert, die Spieldaten waren schon auf dem Gerät'),
+ 'shell.noSpace': ('%@ 上空间不足:游戏数据需要 %.1f GB,设备只剩 %.1f GB。请先释放空间再安装', 'Not enough space on %@: the game data needs %.1f GB and the device has %.1f GB free. Free up space, then install again', 'Inte tillräckligt med utrymme på %@: speldatan behöver %.1f GB och enheten har %.1f GB ledigt. Frigör utrymme och installera igen', 'Nicht genug Platz auf %@: Die Spieldaten brauchen %.1f GB und auf dem Gerät sind %.1f GB frei. Gib Speicher frei und installiere dann erneut'),
+ 'shell.noFramework': ('没有找到游戏的框架:%@', "The game's framework was not found: %@", 'Spelets ramverk hittades inte: %@', 'Das Framework des Spiels wurde nicht gefunden: %@'),
+ 'shell.needsDevice': ('共用应用需要一台设备和一个签名团队。请先在“安装到”里选择。', 'The shared app needs a device and a signing team. Choose them under Install on first.', 'Den gemensamma appen behöver en enhet och ett signeringsteam. Välj dem först under Installera på.', 'Die gemeinsame App braucht ein Gerät und ein Signier-Team. Wähle sie zuerst unter Installieren auf.'),
+ 'shell.copySize': ('要复制的游戏数据:%@,共 %d 个文件。', 'Game data to copy: %@ in %d files.', 'Speldata att kopiera: %@ i %d filer.', 'Zu kopierende Spieldaten: %@ in %d Dateien.'),
+ 'shell.copyWired': ('复制完成前请保持 %@ 解锁。', 'Keep %@ unlocked until the copy finishes.', 'Låt %@ vara olåst tills kopieringen är klar.', 'Lass %@ entsperrt, bis das Kopieren fertig ist.'),
+ 'shell.copyWifi': ('已通过 Wi-Fi 连接:复制 %@ 大约需要 %d 到 %d 分钟。用数据线会更快。', 'Connected over Wi-Fi: copying %@ takes about %d to %d minutes. A cable is faster.', 'Ansluten via Wi-Fi: att kopiera %@ tar ungefär %d till %d minuter. En kabel går fortare.', 'Über WLAN verbunden: %@ zu kopieren dauert etwa %d bis %d Minuten. Mit Kabel geht es schneller.'),
+ 'shell.copyWifiOne': ('已通过 Wi-Fi 连接:复制 %@ 大约需要 %d 分钟。用数据线会更快。', 'Connected over Wi-Fi: copying %@ takes about %d minutes. A cable is faster.', 'Ansluten via Wi-Fi: att kopiera %@ tar ungefär %d minuter. En kabel går fortare.', 'Über WLAN verbunden: %@ zu kopieren dauert etwa %d Minuten. Mit Kabel geht es schneller.'),
+ 'shell.copyWifiMinute': ('已通过 Wi-Fi 连接:复制 %@ 大约需要一分钟。用数据线会更快。', 'Connected over Wi-Fi: copying %@ takes about a minute. A cable is faster.', 'Ansluten via Wi-Fi: att kopiera %@ tar ungefär en minut. En kabel går fortare.', 'Über WLAN verbunden: %@ zu kopieren dauert etwa eine Minute. Mit Kabel geht es schneller.'),
+ 'shell.copyNotConnected': ('%@ 目前没有连接。请用数据线连接并保持解锁。', '%@ is not connected right now. Connect it with a cable and keep it unlocked.', '%@ är inte ansluten just nu. Anslut den med kabel och låt den vara olåst.', '%@ ist gerade nicht verbunden. Schließe es mit einem Kabel an und lass es entsperrt.'),
+ 'shell.copyWaiting': ('正在等待数据线。%@ 接上后会自动开始复制。', 'Waiting for a cable. The copy starts when %@ is connected.', 'Väntar på en kabel. Kopieringen startar när %@ är ansluten.', 'Warte auf ein Kabel. Das Kopieren beginnt, sobald %@ verbunden ist.'),
+ 'shell.copyTitle': ('复制游戏数据', 'Copy the game data', 'Kopiera speldata', 'Spieldaten kopieren'),
+ 'shell.copyContinue': ('继续', 'Continue', 'Fortsätt', 'Weiter'),
+ 'shell.copyWaitCable': ('等待数据线', 'Wait for a cable', 'Vänta på kabel', 'Auf ein Kabel warten'),
+ 'shell.copySkip': ('暂不复制', 'Not now', 'Inte nu', 'Nicht jetzt'),
+ 'shell.copyStopWaiting': ('不再等待', 'Stop waiting', 'Sluta vänta', 'Nicht mehr warten'),
+ 'shell.retry': ('重试', 'Retry', 'Försök igen', 'Erneut versuchen'),
+ 'shell.notPaired': ('这台 Mac 还没有与 %@ 配对。请用数据线连接,在设备上点「信任」并输入设备密码,然后重新开始。', '%@ is not paired with this Mac. Connect it with a cable, tap Trust on the device and enter its passcode. Then start again.', '%@ är inte ihopparad med den här Mac-datorn. Anslut den med kabel, tryck på Lita på i enheten och ange enhetens lösenkod. Starta sedan om.', '%@ ist nicht mit diesem Mac gekoppelt. Schließe es mit einem Kabel an, tippe auf dem Gerät auf Vertrauen und gib den Code ein. Starte dann erneut.'),
+ 'shell.copyIncomplete': ('%@ 上的游戏数据不完整:%@。重试会补全。', 'The game data on %@ is incomplete: %@. Retry finishes it.', 'Speldatan på %@ är ofullständig: %@. Försök igen så blir den klar.', 'Die Spieldaten auf %@ sind unvollständig: %@. Erneut versuchen vervollständigt sie.'),
+ 'fail.devicePairing.what': ('这台 Mac 还没有与设备配对。', 'This Mac is not paired with the device.', 'Den här Mac-datorn är inte ihopparad med enheten.', 'Dieser Mac ist nicht mit dem Gerät gekoppelt.'),
+ 'fail.devicePairing.next': ('用数据线连接设备,在设备上点「信任」并输入设备密码,然后重试。', 'Connect the device with a cable, tap Trust on the device and enter its passcode. Then try again.', 'Anslut enheten med kabel, tryck på Lita på i enheten och ange dess lösenkod. Försök sedan igen.', 'Schließe das Gerät mit einem Kabel an, tippe auf dem Gerät auf Vertrauen und gib den Code ein. Versuche es dann erneut.'),
+ 'fail.shellDataIncomplete.what': ('设备上的游戏数据不完整。', 'The game data on the device is incomplete.', 'Speldatan på enheten är ofullständig.', 'Die Spieldaten auf dem Gerät sind unvollständig.'),
+ 'fail.shellDataIncomplete.next': ('游戏还不能玩。请解锁设备并保持连接,然后点重试,只会补上缺少或不完整的文件。', 'The game is not ready to play. Unlock the device and keep it connected, then retry. Only the missing or incomplete files are copied.', 'Spelet är inte klart att spela. Lås upp enheten och håll den ansluten och försök sedan igen. Bara de filer som saknas eller är ofullständiga kopieras.', 'Das Spiel ist noch nicht spielbereit. Entsperre das Gerät und lass es verbunden, dann versuche es erneut. Nur fehlende oder unvollständige Dateien werden kopiert.'),
'build.folderCTA': ('选择游戏文件夹', 'Choose game folder', 'Välj spelmapp', 'Spieleordner wählen'),
'build.folderSelected': ('已选择游戏文件夹', 'Game folder selected', 'Spelmapp vald', 'Spieleordner ausgewählt'),
'dev.section': ('安装到设备', 'Install', 'Installera', 'Installation'),
diff --git a/frontend/Sources/NSPortBuilder/Localization.swift b/frontend/Sources/NSPortBuilder/Localization.swift
index 3a56e8f5..48b1bcae 100644
--- a/frontend/Sources/NSPortBuilder/Localization.swift
+++ b/frontend/Sources/NSPortBuilder/Localization.swift
@@ -2886,6 +2886,34 @@ enum L10n {
"engine.fail.download": "Die Engine konnte nicht geladen werden. Prüfe die Verbindung und versuche es erneut.",
"engine.fail.digest": "Die geladene Engine passt nicht zu ihrer Prüfsumme. Es wurde nichts installiert.",
"engine.fail.install": "Die Engine konnte nicht installiert werden. Prüfe den freien Speicher und versuche es erneut.",
+ "build.shell": "iPhone oder iPad (eine App für alle Spiele)",
+ "build.shellNote": "Eine App auf dem Gerät enthält jedes Spiel, das du hinzufügst. Die Daten jedes Spiels werden einmal kopiert.",
+ "shell.projectStage": "Gemeinsame App vorbereiten",
+ "shell.projectFailed": "Die gemeinsame App konnte nicht vorbereitet werden: %@",
+ "shell.checkStage": "Spieldaten auf %@ vergleichen",
+ "shell.dataAlready": "Auf %@ installiert, die Spieldaten waren schon auf dem Gerät",
+ "shell.noSpace": "Nicht genug Platz auf %@: Die Spieldaten brauchen %.1f GB und auf dem Gerät sind %.1f GB frei. Gib Speicher frei und installiere dann erneut",
+ "shell.noFramework": "Das Framework des Spiels wurde nicht gefunden: %@",
+ "shell.needsDevice": "Die gemeinsame App braucht ein Gerät und ein Signier-Team. Wähle sie zuerst unter Installieren auf.",
+ "shell.copySize": "Zu kopierende Spieldaten: %@ in %d Dateien.",
+ "shell.copyWired": "Lass %@ entsperrt, bis das Kopieren fertig ist.",
+ "shell.copyWifi": "Über WLAN verbunden: %@ zu kopieren dauert etwa %d bis %d Minuten. Mit Kabel geht es schneller.",
+ "shell.copyWifiOne": "Über WLAN verbunden: %@ zu kopieren dauert etwa %d Minuten. Mit Kabel geht es schneller.",
+ "shell.copyWifiMinute": "Über WLAN verbunden: %@ zu kopieren dauert etwa eine Minute. Mit Kabel geht es schneller.",
+ "shell.copyNotConnected": "%@ ist gerade nicht verbunden. Schließe es mit einem Kabel an und lass es entsperrt.",
+ "shell.copyWaiting": "Warte auf ein Kabel. Das Kopieren beginnt, sobald %@ verbunden ist.",
+ "shell.copyTitle": "Spieldaten kopieren",
+ "shell.copyContinue": "Weiter",
+ "shell.copyWaitCable": "Auf ein Kabel warten",
+ "shell.copySkip": "Nicht jetzt",
+ "shell.copyStopWaiting": "Nicht mehr warten",
+ "shell.retry": "Erneut versuchen",
+ "shell.notPaired": "%@ ist nicht mit diesem Mac gekoppelt. Schließe es mit einem Kabel an, tippe auf dem Gerät auf Vertrauen und gib den Code ein. Starte dann erneut.",
+ "shell.copyIncomplete": "Die Spieldaten auf %@ sind unvollständig: %@. Erneut versuchen vervollständigt sie.",
+ "fail.devicePairing.what": "Dieser Mac ist nicht mit dem Gerät gekoppelt.",
+ "fail.devicePairing.next": "Schließe das Gerät mit einem Kabel an, tippe auf dem Gerät auf Vertrauen und gib den Code ein. Versuche es dann erneut.",
+ "fail.shellDataIncomplete.what": "Die Spieldaten auf dem Gerät sind unvollständig.",
+ "fail.shellDataIncomplete.next": "Das Spiel ist noch nicht spielbereit. Entsperre das Gerät und lass es verbunden, dann versuche es erneut. Nur fehlende oder unvollständige Dateien werden kopiert.",
]
static func string(_ key: String, _ lang: Lang) -> String {
diff --git a/frontend/Tests/NSPortBuilderTests/ShellInstallTests.swift b/frontend/Tests/NSPortBuilderTests/ShellInstallTests.swift
index 2de3dbff..bde2bb45 100644
--- a/frontend/Tests/NSPortBuilderTests/ShellInstallTests.swift
+++ b/frontend/Tests/NSPortBuilderTests/ShellInstallTests.swift
@@ -722,7 +722,7 @@ final class ShellInstallTests: XCTestCase {
wait(for: [stopped], timeout: 20)
withExtendedLifetime(token) {}
XCTAssertEqual(model.failure?.kind, .devicePairing)
- XCTAssertTrue(model.doneNote.contains("tap Trust on the device"), model.doneNote)
+ XCTAssertEqual(model.doneNote, String(format: model.t("shell.notPaired"), model.deviceName(model.installDevice)), "the pairing steps, in the app's language")
XCTAssertFalse(fm.fileExists(atPath: state + "/script.txt"), "the build script did not start")
}
@@ -745,7 +745,7 @@ final class ShellInstallTests: XCTestCase {
}
finish { model.installShell(framework: f.framework, titleID: titleID, name: "Test Game", archive: f.archive) }
XCTAssertEqual(model.failure?.kind, .shellDataIncomplete)
- XCTAssertTrue(model.doneNote.contains("incomplete"), model.doneNote)
+ XCTAssertTrue(model.doneNote.hasPrefix(String(format: model.t("shell.copyIncomplete"), model.deviceName(model.installDevice), "").components(separatedBy: ": ").first ?? "-"), model.doneNote)
XCTAssertFalse(model.done)
XCTAssertEqual(plans.count, 1)
XCTAssertEqual(plans.first?.connection, .wired)