From e185392e4870f4ff927b162b78607b57dcf7914b Mon Sep 17 00:00:00 2001 From: Ain Date: Tue, 10 Nov 2026 13:19:34 +0800 Subject: [PATCH 1/3] feat(i18n): localize the 4.x plugin, theme, and tools UI Move hard-coded English strings from the plugin store, Orplug Builder Studio, theme editor, theme settings, deep-link dialogs, batch summary, Hasheous card, and Watch Folder into ARB and wire them through AppLocalizations. Add the new keys in English plus Traditional and Simplified Chinese, then regenerate the localization code with Flutter 3.47. The generator now emits zh and zh_TW in a single app_localizations_zh.dart, so the stale app_localizations_zh_TW.dart is removed. Widget tests that pump the new screens now install the localization delegate. Also apply dart format to batch_stats.dart so the GUI formatting gate stays clean. --- gui/lib/app.dart | 66 +- gui/lib/l10n/app_en.arb | 349 ++++- gui/lib/l10n/app_localizations.dart | 1176 +++++++++++++++ gui/lib/l10n/app_localizations_ar.dart | 659 ++++++++ gui/lib/l10n/app_localizations_de.dart | 659 ++++++++ gui/lib/l10n/app_localizations_en.dart | 659 ++++++++ gui/lib/l10n/app_localizations_es.dart | 659 ++++++++ gui/lib/l10n/app_localizations_fr.dart | 659 ++++++++ gui/lib/l10n/app_localizations_it.dart | 659 ++++++++ gui/lib/l10n/app_localizations_ja.dart | 659 ++++++++ gui/lib/l10n/app_localizations_pt.dart | 659 ++++++++ gui/lib/l10n/app_localizations_ru.dart | 659 ++++++++ gui/lib/l10n/app_localizations_tr.dart | 659 ++++++++ gui/lib/l10n/app_localizations_zh.dart | 1590 ++++++++++++++++++-- gui/lib/l10n/app_localizations_zh_TW.dart | 467 ------ gui/lib/l10n/app_zh.arb | 198 ++- gui/lib/l10n/app_zh_TW.arb | 198 ++- gui/lib/models/batch_stats.dart | 5 +- gui/lib/screens/plugins_screen.dart | 47 +- gui/lib/screens/settings_screen.dart | 64 +- gui/lib/screens/theme_editor_screen.dart | 100 +- gui/lib/screens/tools_screen.dart | 81 +- gui/lib/widgets/batch_complete_dialog.dart | 15 +- gui/lib/widgets/deep_link_dialog.dart | 34 +- gui/lib/widgets/hasheous_result_card.dart | 23 +- gui/lib/widgets/orplug_builder_studio.dart | 107 +- gui/lib/widgets/sidebar.dart | 2 +- gui/lib/widgets/storefront_view.dart | 46 +- gui/test/deeplink_test.dart | 11 + gui/test/hasheous_result_card_test.dart | 3 + gui/test/plugins_screen_test.dart | 11 + 31 files changed, 10271 insertions(+), 912 deletions(-) delete mode 100644 gui/lib/l10n/app_localizations_zh_TW.dart diff --git a/gui/lib/app.dart b/gui/lib/app.dart index 2ba22ea..8a50072 100644 --- a/gui/lib/app.dart +++ b/gui/lib/app.dart @@ -114,22 +114,25 @@ class _OpenROMAppState extends State { onPromptMedia: (job) async { return await showDialog( context: context, - builder: (ctx) => AlertDialog( - title: const Text('Unrecognized Media Type'), - content: Text( - 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: ${job.romFile.filename}', - ), - actions: [ - TextButton( - onPressed: () => Navigator.of(ctx).pop('cd'), - child: const Text('CD'), - ), - ElevatedButton( - onPressed: () => Navigator.of(ctx).pop('dvd'), - child: const Text('DVD'), + builder: (ctx) { + final l10n = AppLocalizations.of(ctx); + return AlertDialog( + title: Text(l10n.mediaTypeTitle), + content: Text( + l10n.mediaTypeBody(job.romFile.filename), ), - ], - ), + actions: [ + TextButton( + onPressed: () => Navigator.of(ctx).pop('cd'), + child: Text(l10n.mediaCd), + ), + ElevatedButton( + onPressed: () => Navigator.of(ctx).pop('dvd'), + child: Text(l10n.mediaDvd), + ), + ], + ); + }, ); }, ); @@ -269,6 +272,7 @@ class _OpenROMAppState extends State { darkTheme: buildTheme(Brightness.dark, darkColorScheme), home: LayoutBuilder( builder: (context, constraints) { + final l10n = AppLocalizations.of(context); final isNarrow = constraints.maxWidth < 650; // Desktop-only build: a narrow window uses the compact layout. final isMobile = isNarrow; @@ -309,31 +313,31 @@ class _OpenROMAppState extends State { selectedItemColor: theme.accent, unselectedItemColor: theme.textSecondary, type: BottomNavigationBarType.fixed, - items: const [ + items: [ BottomNavigationBarItem( - icon: Icon(Icons.sync_alt_outlined), - activeIcon: Icon(Icons.sync_alt), - label: 'Convert', + icon: const Icon(Icons.sync_alt_outlined), + activeIcon: const Icon(Icons.sync_alt), + label: l10n.convertButton, ), BottomNavigationBarItem( - icon: Icon(Icons.healing_outlined), - activeIcon: Icon(Icons.healing), - label: 'Patch', + icon: const Icon(Icons.healing_outlined), + activeIcon: const Icon(Icons.healing), + label: l10n.navPatch, ), BottomNavigationBarItem( - icon: Icon(Icons.construction_outlined), - activeIcon: Icon(Icons.construction), - label: 'Tools', + icon: const Icon(Icons.construction_outlined), + activeIcon: const Icon(Icons.construction), + label: l10n.navTools, ), BottomNavigationBarItem( - icon: Icon(Icons.extension_outlined), - activeIcon: Icon(Icons.extension), - label: 'Plugins', + icon: const Icon(Icons.extension_outlined), + activeIcon: const Icon(Icons.extension), + label: l10n.navPlugins, ), BottomNavigationBarItem( - icon: Icon(Icons.settings_outlined), - activeIcon: Icon(Icons.settings), - label: 'Settings', + icon: const Icon(Icons.settings_outlined), + activeIcon: const Icon(Icons.settings), + label: l10n.settingsScreen, ), ], ), diff --git a/gui/lib/l10n/app_en.arb b/gui/lib/l10n/app_en.arb index 774e6bc..0bfb4b5 100644 --- a/gui/lib/l10n/app_en.arb +++ b/gui/lib/l10n/app_en.arb @@ -224,5 +224,350 @@ } }, "raViewGame": "View on RA", - "raSaveCredentials": "Save" -} \ No newline at end of file + "raSaveCredentials": "Save", + "navPatch": "Patch", + "navTools": "Tools", + "navPlugins": "Plugins", + "mediaTypeTitle": "Unrecognized Media Type", + "mediaTypeBody": "Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: {file}", + "@mediaTypeBody": { + "placeholders": { + "file": { + "type": "String" + } + } + }, + "mediaCd": "CD", + "mediaDvd": "DVD", + "commonCancel": "Cancel", + "commonOk": "OK", + "commonAdd": "Add", + "commonDone": "Done", + "commonApply": "Apply", + "commonRemove": "Remove", + "commonInstall": "Install", + "pluginsTabInstalled": "Installed Plugins 📦", + "pluginsTabStore": "Plugin Store 🌐🛒", + "pluginsTabStudio": "Create / Studio 🛠️", + "pluginsDropTitle": "Drag & Drop .orplug Archive Here", + "pluginsDropSubtitle": "Install custom ROM tools, extensions, and formats", + "pluginsBrowse": "Browse .orplug File", + "pluginsInstalledHeading": "Installed Plugins ({count})", + "@pluginsInstalledHeading": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "pluginsEmptyTitle": "No Plugins Installed Yet", + "pluginsEmptyBody": "Drop an .orplug package above or explore community plugins in the Plugin Store.", + "pluginsUninstall": "Uninstall", + "pluginsUninstallTitle": "Uninstall Plugin", + "pluginsUninstallBody": "Are you sure you want to uninstall \"{name}\" ({id})?", + "@pluginsUninstallBody": { + "placeholders": { + "name": { + "type": "String" + }, + "id": { + "type": "String" + } + } + }, + "pluginsInstallFailed": "Install failed", + "pluginsAlreadyInstalled": "{name} is already installed", + "@pluginsAlreadyInstalled": { + "placeholders": { + "name": { + "type": "String" + } + } + }, + "pluginsInstalledToast": "{name} installed", + "@pluginsInstalledToast": { + "placeholders": { + "name": { + "type": "String" + } + } + }, + "storeTitle": "Plugin Marketplace", + "storeRefresh": "Refresh catalogue", + "storeSubtitleLive": "Official and community plugins, served live from the store.", + "storeSubtitleCached": "Showing the last cached catalogue. Reconnect to refresh.", + "storeBadgeLive": "Live", + "storeBadgeOffline": "Offline", + "storeSearchHint": "Search plugins, publishers, routes…", + "storeAll": "All", + "storeOfflineTitle": "ROMéo is offline", + "storeEmptyTitle": "No plugins published yet", + "storeNoMatchTitle": "No plugins match your filters", + "storeOfflineBody": "The store could not be reached and no cached copy exists. Check your connection and refresh.", + "storeEmptyBody": "Check back soon — new plugins land often.", + "storeNoMatchBody": "Try a different search term or category.", + "storeVerifiedPublisher": "Verified publisher", + "storeInstalled": "Installed", + "storeByPublisher": "by {name}", + "@storeByPublisher": { + "placeholders": { + "name": { + "type": "String" + } + } + }, + "storeCoreMin": "core ≥ {version}", + "@storeCoreMin": { + "placeholders": { + "version": { + "type": "String" + } + } + }, + "deepLinkTitle": "Install plugin from link?", + "deepLinkBody": "An openrom:// link wants to install a plugin. Review it before continuing.", + "deepLinkPlugin": "Plugin", + "deepLinkId": "ID", + "deepLinkVersion": "Version", + "deepLinkPublisher": "Publisher", + "deepLinkCategory": "Category", + "deepLinkRequiresCore": "Requires core", + "deepLinkVerified": "The download is verified against the published SHA-256 before installation.", + "deepLinkNotFoundTitle": "Plugin not found", + "deepLinkNotFoundBody": "No plugin with the id \"{id}\" was found in the store catalogue.", + "@deepLinkNotFoundBody": { + "placeholders": { + "id": { + "type": "String" + } + } + }, + "studioTitle": "Visual .orplug Builder Studio", + "studioIntro": "Start a new plugin or open an existing project folder.", + "studioNew": "New", + "studioOpen": "Open", + "studioRescan": "Rescan project", + "studioIdentity": "Identity", + "studioPluginId": "Plugin ID", + "studioDisplayName": "Display Name", + "studioVersion": "Version (SemVer)", + "studioMinCore": "Min Core Version", + "studioCategory": "Category", + "studioPublisher": "Publisher", + "studioPublisherId": "Publisher ID", + "studioPublisherName": "Publisher Name", + "studioVerified": "Verified", + "studioVerifiedTip": "Verified publishers get the blue check in the store", + "studioDescriptionRoutes": "Description & Routes", + "studioDescription": "Description", + "studioRouteHint": "Add route (e.g. ISO -> WUA)", + "studioNoRoutes": "No routes yet.", + "studioBinaries": "Binaries", + "studioBinariesHelp": "Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.", + "studioNotSet": "not set", + "studioReplace": "Replace", + "studioExecutionArgs": "Execution Arguments", + "studioPlaceholders": "Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)", + "studioArgsTemplate": "Argument template", + "studioBuild": "Build", + "studioSaveManifest": "Save Manifest", + "studioValidate": "Validate", + "studioBuildPackage": "Build .orplug", + "studioLastBuild": "Last build: {path} · sha256 {sha}", + "@studioLastBuild": { + "placeholders": { + "path": { + "type": "String" + }, + "sha": { + "type": "String" + } + } + }, + "studioCopyMarketplace": "Copy marketplace JSON", + "studioMarketplaceCopied": "Marketplace JSON copied", + "studioManifestValid": "Manifest is valid", + "studioValidationIssues": "Validation issues", + "studioBuiltTitle": "Built .orplug", + "studioArchive": "Archive", + "studioSize": "Size", + "studioSizeBytes": "{bytes} bytes", + "@studioSizeBytes": { + "placeholders": { + "bytes": { + "type": "int" + } + } + }, + "studioMarketplaceEntry": "Marketplace entry (paste into the store catalogue):", + "studioCopyJson": "Copy JSON", + "studioNewProjectTitle": "Select where to create the plugin", + "studioOpenProjectTitle": "Select a plugin project folder", + "studioDefaultName": "My Tool", + "themeEditorTitle": "Theme Editor", + "themeCustomSkin": "Custom Skin", + "themeCustomTheme": "Custom Theme", + "themeThemeName": "Theme Name", + "themePickWallpaper": "Choose a wallpaper (GIF, PNG, JPG or WebP)", + "themePickDropzone": "Choose a dropzone illustration (GIF or PNG)", + "themePickFont": "Choose a UI font (TTF or OTF)", + "themeImportSkinBundle": "Import an .orskin bundle", + "themeExportSkinBundle": "Export .orskin bundle", + "themeImportShort": "Import .orskin", + "themeExportShort": "Export .orskin", + "themeImportFailed": "Import failed: {error}", + "@themeImportFailed": { + "placeholders": { + "error": { + "type": "String" + } + } + }, + "themeExportFailed": "Export failed: {error}", + "@themeExportFailed": { + "placeholders": { + "error": { + "type": "String" + } + } + }, + "themeImported": "Imported skin \"{name}\"", + "@themeImported": { + "placeholders": { + "name": { + "type": "String" + } + } + }, + "themeExported": "Exported {path}", + "@themeExported": { + "placeholders": { + "path": { + "type": "String" + } + } + }, + "themePickColor": "Pick Color", + "themeHue": "Hue", + "themeSaturation": "Saturation", + "themeValue": "Value", + "themeColors": "Colors", + "themeBackground": "Background", + "themeSurface": "Surface", + "themeAccent": "Accent", + "themeTextPrimary": "Text Primary", + "themeTextSecondary": "Text Secondary", + "themeSidebarBg": "Sidebar Background", + "themeCardBg": "Card Background", + "themeTerminalBg": "Terminal Background", + "themeTerminalText": "Terminal Text", + "themeGeometry": "Skin Geometry & Wallpaper", + "themeCornerRadius": "Corner Radius", + "themeWallpaperOpacity": "Wallpaper Opacity", + "themeWallpaperBlur": "Wallpaper Blur", + "themeChooseWallpaper": "Choose Wallpaper", + "themeChooseDropzone": "Choose Dropzone", + "themeChooseFont": "Choose Font", + "themeSidebarTabs": "Sidebar Tabs", + "themeSidebarTabsHelp": "Uncheck a tab to hide it from the sidebar and navigation.", + "themeSaveTheme": "Save Theme", + "themeLivePreview": "Live Preview", + "settingsLanguage": "Language", + "settingsAudioCodec": "CD Audio Codec (CHD)", + "settingsCodecFlac": "Lossless (FLAC) - Recommended", + "settingsCodecVorbis": "Max Compression (Vorbis)", + "settingsVerifySub": "Runs chdman verify on newly created CHD files", + "settingsSameFolder": "Same folder as source file", + "settingsSelectDir": "Select directory...", + "settingsThemeSystem": "System", + "settingsThemeLight": "Light", + "settingsThemeDark": "Dark", + "settingsUpdateError": "Error checking for updates", + "settingsRaSaved": "RetroAchievements credentials saved", + "settingsHasheous": "Hasheous", + "settingsHasheousEnable": "Enable Hasheous hash lookup", + "settingsHasheousSub": "Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.", + "batchTitle": "Batch Complete! 🎉", + "batchSaved": "You just saved {amount}", + "@batchSaved": { + "placeholders": { + "amount": { + "type": "String" + } + } + }, + "batchSavedDetail": "({percent} reduction) across {count} {count, plural, =1{game} other{games}}!", + "@batchSavedDetail": { + "placeholders": { + "percent": { + "type": "String" + }, + "count": { + "type": "int" + } + } + }, + "batchAllProcessed": "All {count} {count, plural, =1{file} other{files}} processed successfully!", + "@batchAllProcessed": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "batchAwesome": "Awesome!", + "hasheousUnknown": "Unknown title", + "hasheousMore": "+ {count} more", + "@hasheousMore": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "hasheousVerifiedIn": "Verified in {source}", + "@hasheousVerifiedIn": { + "placeholders": { + "source": { + "type": "String" + } + } + }, + "hasheousNoMatch": "No match found in preservation databases.", + "toolsTabCue": "CUE Editor", + "toolsTabRenamer": "ROM Renamer", + "toolsTab1g1r": "1G1R Cleaner", + "toolsTabHasher": "ROM Hasher", + "toolsWatchTitle": "Watch Folder", + "toolsHasherIntro": "Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.", + "toolsHasherDrop": "Drag & drop a ROM here, or click to browse", + "toolsChooseFile": "Choose File", + "toolsComputeHashes": "Compute Hashes", + "toolsResults": "Results", + "toolsCopyAll": "Copy All", + "toolsFileSize": "File Size", + "toolsIdentifying": "Identifying…", + "toolsIdentifyGame": "Identify Game (Hasheous)", + "toolsHasheousHint": "Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.", + "toolsWatchStopped": "Watch stopped.", + "toolsWatchNeedFolders": "Select both an input and an output folder first.", + "toolsChooseFolder": "Choose folder…", + "toolsWatchIntro": "Automatically convert ROMs as they land in a folder.", + "toolsInputFolder": "Input Folder", + "toolsOutputFolder": "Output Folder", + "toolsTargetFormat": "Target Format", + "toolsDeleteSource": "Delete source after conversion", + "toolsStopWatching": "Stop Watching", + "toolsStartWatching": "Start Watching", + "toolsActive": "Active", + "toolsLiveLog": "Live Log", + "toolsNoActivity": "No activity yet.", + "themeSaved": "Theme \"{name}\" saved!", + "@themeSaved": { + "placeholders": { + "name": { + "type": "String" + } + } + } +} diff --git a/gui/lib/l10n/app_localizations.dart b/gui/lib/l10n/app_localizations.dart index 25d6f57..b610be2 100644 --- a/gui/lib/l10n/app_localizations.dart +++ b/gui/lib/l10n/app_localizations.dart @@ -986,6 +986,1182 @@ abstract class AppLocalizations { /// In en, this message translates to: /// **'Save'** String get raSaveCredentials; + + /// No description provided for @navPatch. + /// + /// In en, this message translates to: + /// **'Patch'** + String get navPatch; + + /// No description provided for @navTools. + /// + /// In en, this message translates to: + /// **'Tools'** + String get navTools; + + /// No description provided for @navPlugins. + /// + /// In en, this message translates to: + /// **'Plugins'** + String get navPlugins; + + /// No description provided for @mediaTypeTitle. + /// + /// In en, this message translates to: + /// **'Unrecognized Media Type'** + String get mediaTypeTitle; + + /// No description provided for @mediaTypeBody. + /// + /// In en, this message translates to: + /// **'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: {file}'** + String mediaTypeBody(String file); + + /// No description provided for @mediaCd. + /// + /// In en, this message translates to: + /// **'CD'** + String get mediaCd; + + /// No description provided for @mediaDvd. + /// + /// In en, this message translates to: + /// **'DVD'** + String get mediaDvd; + + /// No description provided for @commonCancel. + /// + /// In en, this message translates to: + /// **'Cancel'** + String get commonCancel; + + /// No description provided for @commonOk. + /// + /// In en, this message translates to: + /// **'OK'** + String get commonOk; + + /// No description provided for @commonAdd. + /// + /// In en, this message translates to: + /// **'Add'** + String get commonAdd; + + /// No description provided for @commonDone. + /// + /// In en, this message translates to: + /// **'Done'** + String get commonDone; + + /// No description provided for @commonApply. + /// + /// In en, this message translates to: + /// **'Apply'** + String get commonApply; + + /// No description provided for @commonRemove. + /// + /// In en, this message translates to: + /// **'Remove'** + String get commonRemove; + + /// No description provided for @commonInstall. + /// + /// In en, this message translates to: + /// **'Install'** + String get commonInstall; + + /// No description provided for @pluginsTabInstalled. + /// + /// In en, this message translates to: + /// **'Installed Plugins 📦'** + String get pluginsTabInstalled; + + /// No description provided for @pluginsTabStore. + /// + /// In en, this message translates to: + /// **'Plugin Store 🌐🛒'** + String get pluginsTabStore; + + /// No description provided for @pluginsTabStudio. + /// + /// In en, this message translates to: + /// **'Create / Studio 🛠️'** + String get pluginsTabStudio; + + /// No description provided for @pluginsDropTitle. + /// + /// In en, this message translates to: + /// **'Drag & Drop .orplug Archive Here'** + String get pluginsDropTitle; + + /// No description provided for @pluginsDropSubtitle. + /// + /// In en, this message translates to: + /// **'Install custom ROM tools, extensions, and formats'** + String get pluginsDropSubtitle; + + /// No description provided for @pluginsBrowse. + /// + /// In en, this message translates to: + /// **'Browse .orplug File'** + String get pluginsBrowse; + + /// No description provided for @pluginsInstalledHeading. + /// + /// In en, this message translates to: + /// **'Installed Plugins ({count})'** + String pluginsInstalledHeading(int count); + + /// No description provided for @pluginsEmptyTitle. + /// + /// In en, this message translates to: + /// **'No Plugins Installed Yet'** + String get pluginsEmptyTitle; + + /// No description provided for @pluginsEmptyBody. + /// + /// In en, this message translates to: + /// **'Drop an .orplug package above or explore community plugins in the Plugin Store.'** + String get pluginsEmptyBody; + + /// No description provided for @pluginsUninstall. + /// + /// In en, this message translates to: + /// **'Uninstall'** + String get pluginsUninstall; + + /// No description provided for @pluginsUninstallTitle. + /// + /// In en, this message translates to: + /// **'Uninstall Plugin'** + String get pluginsUninstallTitle; + + /// No description provided for @pluginsUninstallBody. + /// + /// In en, this message translates to: + /// **'Are you sure you want to uninstall \"{name}\" ({id})?'** + String pluginsUninstallBody(String name, String id); + + /// No description provided for @pluginsInstallFailed. + /// + /// In en, this message translates to: + /// **'Install failed'** + String get pluginsInstallFailed; + + /// No description provided for @pluginsAlreadyInstalled. + /// + /// In en, this message translates to: + /// **'{name} is already installed'** + String pluginsAlreadyInstalled(String name); + + /// No description provided for @pluginsInstalledToast. + /// + /// In en, this message translates to: + /// **'{name} installed'** + String pluginsInstalledToast(String name); + + /// No description provided for @storeTitle. + /// + /// In en, this message translates to: + /// **'Plugin Marketplace'** + String get storeTitle; + + /// No description provided for @storeRefresh. + /// + /// In en, this message translates to: + /// **'Refresh catalogue'** + String get storeRefresh; + + /// No description provided for @storeSubtitleLive. + /// + /// In en, this message translates to: + /// **'Official and community plugins, served live from the store.'** + String get storeSubtitleLive; + + /// No description provided for @storeSubtitleCached. + /// + /// In en, this message translates to: + /// **'Showing the last cached catalogue. Reconnect to refresh.'** + String get storeSubtitleCached; + + /// No description provided for @storeBadgeLive. + /// + /// In en, this message translates to: + /// **'Live'** + String get storeBadgeLive; + + /// No description provided for @storeBadgeOffline. + /// + /// In en, this message translates to: + /// **'Offline'** + String get storeBadgeOffline; + + /// No description provided for @storeSearchHint. + /// + /// In en, this message translates to: + /// **'Search plugins, publishers, routes…'** + String get storeSearchHint; + + /// No description provided for @storeAll. + /// + /// In en, this message translates to: + /// **'All'** + String get storeAll; + + /// No description provided for @storeOfflineTitle. + /// + /// In en, this message translates to: + /// **'ROMéo is offline'** + String get storeOfflineTitle; + + /// No description provided for @storeEmptyTitle. + /// + /// In en, this message translates to: + /// **'No plugins published yet'** + String get storeEmptyTitle; + + /// No description provided for @storeNoMatchTitle. + /// + /// In en, this message translates to: + /// **'No plugins match your filters'** + String get storeNoMatchTitle; + + /// No description provided for @storeOfflineBody. + /// + /// In en, this message translates to: + /// **'The store could not be reached and no cached copy exists. Check your connection and refresh.'** + String get storeOfflineBody; + + /// No description provided for @storeEmptyBody. + /// + /// In en, this message translates to: + /// **'Check back soon — new plugins land often.'** + String get storeEmptyBody; + + /// No description provided for @storeNoMatchBody. + /// + /// In en, this message translates to: + /// **'Try a different search term or category.'** + String get storeNoMatchBody; + + /// No description provided for @storeVerifiedPublisher. + /// + /// In en, this message translates to: + /// **'Verified publisher'** + String get storeVerifiedPublisher; + + /// No description provided for @storeInstalled. + /// + /// In en, this message translates to: + /// **'Installed'** + String get storeInstalled; + + /// No description provided for @storeByPublisher. + /// + /// In en, this message translates to: + /// **'by {name}'** + String storeByPublisher(String name); + + /// No description provided for @storeCoreMin. + /// + /// In en, this message translates to: + /// **'core ≥ {version}'** + String storeCoreMin(String version); + + /// No description provided for @deepLinkTitle. + /// + /// In en, this message translates to: + /// **'Install plugin from link?'** + String get deepLinkTitle; + + /// No description provided for @deepLinkBody. + /// + /// In en, this message translates to: + /// **'An openrom:// link wants to install a plugin. Review it before continuing.'** + String get deepLinkBody; + + /// No description provided for @deepLinkPlugin. + /// + /// In en, this message translates to: + /// **'Plugin'** + String get deepLinkPlugin; + + /// No description provided for @deepLinkId. + /// + /// In en, this message translates to: + /// **'ID'** + String get deepLinkId; + + /// No description provided for @deepLinkVersion. + /// + /// In en, this message translates to: + /// **'Version'** + String get deepLinkVersion; + + /// No description provided for @deepLinkPublisher. + /// + /// In en, this message translates to: + /// **'Publisher'** + String get deepLinkPublisher; + + /// No description provided for @deepLinkCategory. + /// + /// In en, this message translates to: + /// **'Category'** + String get deepLinkCategory; + + /// No description provided for @deepLinkRequiresCore. + /// + /// In en, this message translates to: + /// **'Requires core'** + String get deepLinkRequiresCore; + + /// No description provided for @deepLinkVerified. + /// + /// In en, this message translates to: + /// **'The download is verified against the published SHA-256 before installation.'** + String get deepLinkVerified; + + /// No description provided for @deepLinkNotFoundTitle. + /// + /// In en, this message translates to: + /// **'Plugin not found'** + String get deepLinkNotFoundTitle; + + /// No description provided for @deepLinkNotFoundBody. + /// + /// In en, this message translates to: + /// **'No plugin with the id \"{id}\" was found in the store catalogue.'** + String deepLinkNotFoundBody(String id); + + /// No description provided for @studioTitle. + /// + /// In en, this message translates to: + /// **'Visual .orplug Builder Studio'** + String get studioTitle; + + /// No description provided for @studioIntro. + /// + /// In en, this message translates to: + /// **'Start a new plugin or open an existing project folder.'** + String get studioIntro; + + /// No description provided for @studioNew. + /// + /// In en, this message translates to: + /// **'New'** + String get studioNew; + + /// No description provided for @studioOpen. + /// + /// In en, this message translates to: + /// **'Open'** + String get studioOpen; + + /// No description provided for @studioRescan. + /// + /// In en, this message translates to: + /// **'Rescan project'** + String get studioRescan; + + /// No description provided for @studioIdentity. + /// + /// In en, this message translates to: + /// **'Identity'** + String get studioIdentity; + + /// No description provided for @studioPluginId. + /// + /// In en, this message translates to: + /// **'Plugin ID'** + String get studioPluginId; + + /// No description provided for @studioDisplayName. + /// + /// In en, this message translates to: + /// **'Display Name'** + String get studioDisplayName; + + /// No description provided for @studioVersion. + /// + /// In en, this message translates to: + /// **'Version (SemVer)'** + String get studioVersion; + + /// No description provided for @studioMinCore. + /// + /// In en, this message translates to: + /// **'Min Core Version'** + String get studioMinCore; + + /// No description provided for @studioCategory. + /// + /// In en, this message translates to: + /// **'Category'** + String get studioCategory; + + /// No description provided for @studioPublisher. + /// + /// In en, this message translates to: + /// **'Publisher'** + String get studioPublisher; + + /// No description provided for @studioPublisherId. + /// + /// In en, this message translates to: + /// **'Publisher ID'** + String get studioPublisherId; + + /// No description provided for @studioPublisherName. + /// + /// In en, this message translates to: + /// **'Publisher Name'** + String get studioPublisherName; + + /// No description provided for @studioVerified. + /// + /// In en, this message translates to: + /// **'Verified'** + String get studioVerified; + + /// No description provided for @studioVerifiedTip. + /// + /// In en, this message translates to: + /// **'Verified publishers get the blue check in the store'** + String get studioVerifiedTip; + + /// No description provided for @studioDescriptionRoutes. + /// + /// In en, this message translates to: + /// **'Description & Routes'** + String get studioDescriptionRoutes; + + /// No description provided for @studioDescription. + /// + /// In en, this message translates to: + /// **'Description'** + String get studioDescription; + + /// No description provided for @studioRouteHint. + /// + /// In en, this message translates to: + /// **'Add route (e.g. ISO -> WUA)'** + String get studioRouteHint; + + /// No description provided for @studioNoRoutes. + /// + /// In en, this message translates to: + /// **'No routes yet.'** + String get studioNoRoutes; + + /// No description provided for @studioBinaries. + /// + /// In en, this message translates to: + /// **'Binaries'** + String get studioBinaries; + + /// No description provided for @studioBinariesHelp. + /// + /// In en, this message translates to: + /// **'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'** + String get studioBinariesHelp; + + /// No description provided for @studioNotSet. + /// + /// In en, this message translates to: + /// **'not set'** + String get studioNotSet; + + /// No description provided for @studioReplace. + /// + /// In en, this message translates to: + /// **'Replace'** + String get studioReplace; + + /// No description provided for @studioExecutionArgs. + /// + /// In en, this message translates to: + /// **'Execution Arguments'** + String get studioExecutionArgs; + + /// No description provided for @studioPlaceholders. + /// + /// In en, this message translates to: + /// **'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'** + String get studioPlaceholders; + + /// No description provided for @studioArgsTemplate. + /// + /// In en, this message translates to: + /// **'Argument template'** + String get studioArgsTemplate; + + /// No description provided for @studioBuild. + /// + /// In en, this message translates to: + /// **'Build'** + String get studioBuild; + + /// No description provided for @studioSaveManifest. + /// + /// In en, this message translates to: + /// **'Save Manifest'** + String get studioSaveManifest; + + /// No description provided for @studioValidate. + /// + /// In en, this message translates to: + /// **'Validate'** + String get studioValidate; + + /// No description provided for @studioBuildPackage. + /// + /// In en, this message translates to: + /// **'Build .orplug'** + String get studioBuildPackage; + + /// No description provided for @studioLastBuild. + /// + /// In en, this message translates to: + /// **'Last build: {path} · sha256 {sha}'** + String studioLastBuild(String path, String sha); + + /// No description provided for @studioCopyMarketplace. + /// + /// In en, this message translates to: + /// **'Copy marketplace JSON'** + String get studioCopyMarketplace; + + /// No description provided for @studioMarketplaceCopied. + /// + /// In en, this message translates to: + /// **'Marketplace JSON copied'** + String get studioMarketplaceCopied; + + /// No description provided for @studioManifestValid. + /// + /// In en, this message translates to: + /// **'Manifest is valid'** + String get studioManifestValid; + + /// No description provided for @studioValidationIssues. + /// + /// In en, this message translates to: + /// **'Validation issues'** + String get studioValidationIssues; + + /// No description provided for @studioBuiltTitle. + /// + /// In en, this message translates to: + /// **'Built .orplug'** + String get studioBuiltTitle; + + /// No description provided for @studioArchive. + /// + /// In en, this message translates to: + /// **'Archive'** + String get studioArchive; + + /// No description provided for @studioSize. + /// + /// In en, this message translates to: + /// **'Size'** + String get studioSize; + + /// No description provided for @studioSizeBytes. + /// + /// In en, this message translates to: + /// **'{bytes} bytes'** + String studioSizeBytes(int bytes); + + /// No description provided for @studioMarketplaceEntry. + /// + /// In en, this message translates to: + /// **'Marketplace entry (paste into the store catalogue):'** + String get studioMarketplaceEntry; + + /// No description provided for @studioCopyJson. + /// + /// In en, this message translates to: + /// **'Copy JSON'** + String get studioCopyJson; + + /// No description provided for @studioNewProjectTitle. + /// + /// In en, this message translates to: + /// **'Select where to create the plugin'** + String get studioNewProjectTitle; + + /// No description provided for @studioOpenProjectTitle. + /// + /// In en, this message translates to: + /// **'Select a plugin project folder'** + String get studioOpenProjectTitle; + + /// No description provided for @studioDefaultName. + /// + /// In en, this message translates to: + /// **'My Tool'** + String get studioDefaultName; + + /// No description provided for @themeEditorTitle. + /// + /// In en, this message translates to: + /// **'Theme Editor'** + String get themeEditorTitle; + + /// No description provided for @themeCustomSkin. + /// + /// In en, this message translates to: + /// **'Custom Skin'** + String get themeCustomSkin; + + /// No description provided for @themeCustomTheme. + /// + /// In en, this message translates to: + /// **'Custom Theme'** + String get themeCustomTheme; + + /// No description provided for @themeThemeName. + /// + /// In en, this message translates to: + /// **'Theme Name'** + String get themeThemeName; + + /// No description provided for @themePickWallpaper. + /// + /// In en, this message translates to: + /// **'Choose a wallpaper (GIF, PNG, JPG or WebP)'** + String get themePickWallpaper; + + /// No description provided for @themePickDropzone. + /// + /// In en, this message translates to: + /// **'Choose a dropzone illustration (GIF or PNG)'** + String get themePickDropzone; + + /// No description provided for @themePickFont. + /// + /// In en, this message translates to: + /// **'Choose a UI font (TTF or OTF)'** + String get themePickFont; + + /// No description provided for @themeImportSkinBundle. + /// + /// In en, this message translates to: + /// **'Import an .orskin bundle'** + String get themeImportSkinBundle; + + /// No description provided for @themeExportSkinBundle. + /// + /// In en, this message translates to: + /// **'Export .orskin bundle'** + String get themeExportSkinBundle; + + /// No description provided for @themeImportShort. + /// + /// In en, this message translates to: + /// **'Import .orskin'** + String get themeImportShort; + + /// No description provided for @themeExportShort. + /// + /// In en, this message translates to: + /// **'Export .orskin'** + String get themeExportShort; + + /// No description provided for @themeImportFailed. + /// + /// In en, this message translates to: + /// **'Import failed: {error}'** + String themeImportFailed(String error); + + /// No description provided for @themeExportFailed. + /// + /// In en, this message translates to: + /// **'Export failed: {error}'** + String themeExportFailed(String error); + + /// No description provided for @themeImported. + /// + /// In en, this message translates to: + /// **'Imported skin \"{name}\"'** + String themeImported(String name); + + /// No description provided for @themeExported. + /// + /// In en, this message translates to: + /// **'Exported {path}'** + String themeExported(String path); + + /// No description provided for @themePickColor. + /// + /// In en, this message translates to: + /// **'Pick Color'** + String get themePickColor; + + /// No description provided for @themeHue. + /// + /// In en, this message translates to: + /// **'Hue'** + String get themeHue; + + /// No description provided for @themeSaturation. + /// + /// In en, this message translates to: + /// **'Saturation'** + String get themeSaturation; + + /// No description provided for @themeValue. + /// + /// In en, this message translates to: + /// **'Value'** + String get themeValue; + + /// No description provided for @themeColors. + /// + /// In en, this message translates to: + /// **'Colors'** + String get themeColors; + + /// No description provided for @themeBackground. + /// + /// In en, this message translates to: + /// **'Background'** + String get themeBackground; + + /// No description provided for @themeSurface. + /// + /// In en, this message translates to: + /// **'Surface'** + String get themeSurface; + + /// No description provided for @themeAccent. + /// + /// In en, this message translates to: + /// **'Accent'** + String get themeAccent; + + /// No description provided for @themeTextPrimary. + /// + /// In en, this message translates to: + /// **'Text Primary'** + String get themeTextPrimary; + + /// No description provided for @themeTextSecondary. + /// + /// In en, this message translates to: + /// **'Text Secondary'** + String get themeTextSecondary; + + /// No description provided for @themeSidebarBg. + /// + /// In en, this message translates to: + /// **'Sidebar Background'** + String get themeSidebarBg; + + /// No description provided for @themeCardBg. + /// + /// In en, this message translates to: + /// **'Card Background'** + String get themeCardBg; + + /// No description provided for @themeTerminalBg. + /// + /// In en, this message translates to: + /// **'Terminal Background'** + String get themeTerminalBg; + + /// No description provided for @themeTerminalText. + /// + /// In en, this message translates to: + /// **'Terminal Text'** + String get themeTerminalText; + + /// No description provided for @themeGeometry. + /// + /// In en, this message translates to: + /// **'Skin Geometry & Wallpaper'** + String get themeGeometry; + + /// No description provided for @themeCornerRadius. + /// + /// In en, this message translates to: + /// **'Corner Radius'** + String get themeCornerRadius; + + /// No description provided for @themeWallpaperOpacity. + /// + /// In en, this message translates to: + /// **'Wallpaper Opacity'** + String get themeWallpaperOpacity; + + /// No description provided for @themeWallpaperBlur. + /// + /// In en, this message translates to: + /// **'Wallpaper Blur'** + String get themeWallpaperBlur; + + /// No description provided for @themeChooseWallpaper. + /// + /// In en, this message translates to: + /// **'Choose Wallpaper'** + String get themeChooseWallpaper; + + /// No description provided for @themeChooseDropzone. + /// + /// In en, this message translates to: + /// **'Choose Dropzone'** + String get themeChooseDropzone; + + /// No description provided for @themeChooseFont. + /// + /// In en, this message translates to: + /// **'Choose Font'** + String get themeChooseFont; + + /// No description provided for @themeSidebarTabs. + /// + /// In en, this message translates to: + /// **'Sidebar Tabs'** + String get themeSidebarTabs; + + /// No description provided for @themeSidebarTabsHelp. + /// + /// In en, this message translates to: + /// **'Uncheck a tab to hide it from the sidebar and navigation.'** + String get themeSidebarTabsHelp; + + /// No description provided for @themeSaveTheme. + /// + /// In en, this message translates to: + /// **'Save Theme'** + String get themeSaveTheme; + + /// No description provided for @themeLivePreview. + /// + /// In en, this message translates to: + /// **'Live Preview'** + String get themeLivePreview; + + /// No description provided for @settingsLanguage. + /// + /// In en, this message translates to: + /// **'Language'** + String get settingsLanguage; + + /// No description provided for @settingsAudioCodec. + /// + /// In en, this message translates to: + /// **'CD Audio Codec (CHD)'** + String get settingsAudioCodec; + + /// No description provided for @settingsCodecFlac. + /// + /// In en, this message translates to: + /// **'Lossless (FLAC) - Recommended'** + String get settingsCodecFlac; + + /// No description provided for @settingsCodecVorbis. + /// + /// In en, this message translates to: + /// **'Max Compression (Vorbis)'** + String get settingsCodecVorbis; + + /// No description provided for @settingsVerifySub. + /// + /// In en, this message translates to: + /// **'Runs chdman verify on newly created CHD files'** + String get settingsVerifySub; + + /// No description provided for @settingsSameFolder. + /// + /// In en, this message translates to: + /// **'Same folder as source file'** + String get settingsSameFolder; + + /// No description provided for @settingsSelectDir. + /// + /// In en, this message translates to: + /// **'Select directory...'** + String get settingsSelectDir; + + /// No description provided for @settingsThemeSystem. + /// + /// In en, this message translates to: + /// **'System'** + String get settingsThemeSystem; + + /// No description provided for @settingsThemeLight. + /// + /// In en, this message translates to: + /// **'Light'** + String get settingsThemeLight; + + /// No description provided for @settingsThemeDark. + /// + /// In en, this message translates to: + /// **'Dark'** + String get settingsThemeDark; + + /// No description provided for @settingsUpdateError. + /// + /// In en, this message translates to: + /// **'Error checking for updates'** + String get settingsUpdateError; + + /// No description provided for @settingsRaSaved. + /// + /// In en, this message translates to: + /// **'RetroAchievements credentials saved'** + String get settingsRaSaved; + + /// No description provided for @settingsHasheous. + /// + /// In en, this message translates to: + /// **'Hasheous'** + String get settingsHasheous; + + /// No description provided for @settingsHasheousEnable. + /// + /// In en, this message translates to: + /// **'Enable Hasheous hash lookup'** + String get settingsHasheousEnable; + + /// No description provided for @settingsHasheousSub. + /// + /// In en, this message translates to: + /// **'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'** + String get settingsHasheousSub; + + /// No description provided for @batchTitle. + /// + /// In en, this message translates to: + /// **'Batch Complete! 🎉'** + String get batchTitle; + + /// No description provided for @batchSaved. + /// + /// In en, this message translates to: + /// **'You just saved {amount}'** + String batchSaved(String amount); + + /// No description provided for @batchSavedDetail. + /// + /// In en, this message translates to: + /// **'({percent} reduction) across {count} {count, plural, =1{game} other{games}}!'** + String batchSavedDetail(String percent, int count); + + /// No description provided for @batchAllProcessed. + /// + /// In en, this message translates to: + /// **'All {count} {count, plural, =1{file} other{files}} processed successfully!'** + String batchAllProcessed(int count); + + /// No description provided for @batchAwesome. + /// + /// In en, this message translates to: + /// **'Awesome!'** + String get batchAwesome; + + /// No description provided for @hasheousUnknown. + /// + /// In en, this message translates to: + /// **'Unknown title'** + String get hasheousUnknown; + + /// No description provided for @hasheousMore. + /// + /// In en, this message translates to: + /// **'+ {count} more'** + String hasheousMore(int count); + + /// No description provided for @hasheousVerifiedIn. + /// + /// In en, this message translates to: + /// **'Verified in {source}'** + String hasheousVerifiedIn(String source); + + /// No description provided for @hasheousNoMatch. + /// + /// In en, this message translates to: + /// **'No match found in preservation databases.'** + String get hasheousNoMatch; + + /// No description provided for @toolsTabCue. + /// + /// In en, this message translates to: + /// **'CUE Editor'** + String get toolsTabCue; + + /// No description provided for @toolsTabRenamer. + /// + /// In en, this message translates to: + /// **'ROM Renamer'** + String get toolsTabRenamer; + + /// No description provided for @toolsTab1g1r. + /// + /// In en, this message translates to: + /// **'1G1R Cleaner'** + String get toolsTab1g1r; + + /// No description provided for @toolsTabHasher. + /// + /// In en, this message translates to: + /// **'ROM Hasher'** + String get toolsTabHasher; + + /// No description provided for @toolsWatchTitle. + /// + /// In en, this message translates to: + /// **'Watch Folder'** + String get toolsWatchTitle; + + /// No description provided for @toolsHasherIntro. + /// + /// In en, this message translates to: + /// **'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'** + String get toolsHasherIntro; + + /// No description provided for @toolsHasherDrop. + /// + /// In en, this message translates to: + /// **'Drag & drop a ROM here, or click to browse'** + String get toolsHasherDrop; + + /// No description provided for @toolsChooseFile. + /// + /// In en, this message translates to: + /// **'Choose File'** + String get toolsChooseFile; + + /// No description provided for @toolsComputeHashes. + /// + /// In en, this message translates to: + /// **'Compute Hashes'** + String get toolsComputeHashes; + + /// No description provided for @toolsResults. + /// + /// In en, this message translates to: + /// **'Results'** + String get toolsResults; + + /// No description provided for @toolsCopyAll. + /// + /// In en, this message translates to: + /// **'Copy All'** + String get toolsCopyAll; + + /// No description provided for @toolsFileSize. + /// + /// In en, this message translates to: + /// **'File Size'** + String get toolsFileSize; + + /// No description provided for @toolsIdentifying. + /// + /// In en, this message translates to: + /// **'Identifying…'** + String get toolsIdentifying; + + /// No description provided for @toolsIdentifyGame. + /// + /// In en, this message translates to: + /// **'Identify Game (Hasheous)'** + String get toolsIdentifyGame; + + /// No description provided for @toolsHasheousHint. + /// + /// In en, this message translates to: + /// **'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'** + String get toolsHasheousHint; + + /// No description provided for @toolsWatchStopped. + /// + /// In en, this message translates to: + /// **'Watch stopped.'** + String get toolsWatchStopped; + + /// No description provided for @toolsWatchNeedFolders. + /// + /// In en, this message translates to: + /// **'Select both an input and an output folder first.'** + String get toolsWatchNeedFolders; + + /// No description provided for @toolsChooseFolder. + /// + /// In en, this message translates to: + /// **'Choose folder…'** + String get toolsChooseFolder; + + /// No description provided for @toolsWatchIntro. + /// + /// In en, this message translates to: + /// **'Automatically convert ROMs as they land in a folder.'** + String get toolsWatchIntro; + + /// No description provided for @toolsInputFolder. + /// + /// In en, this message translates to: + /// **'Input Folder'** + String get toolsInputFolder; + + /// No description provided for @toolsOutputFolder. + /// + /// In en, this message translates to: + /// **'Output Folder'** + String get toolsOutputFolder; + + /// No description provided for @toolsTargetFormat. + /// + /// In en, this message translates to: + /// **'Target Format'** + String get toolsTargetFormat; + + /// No description provided for @toolsDeleteSource. + /// + /// In en, this message translates to: + /// **'Delete source after conversion'** + String get toolsDeleteSource; + + /// No description provided for @toolsStopWatching. + /// + /// In en, this message translates to: + /// **'Stop Watching'** + String get toolsStopWatching; + + /// No description provided for @toolsStartWatching. + /// + /// In en, this message translates to: + /// **'Start Watching'** + String get toolsStartWatching; + + /// No description provided for @toolsActive. + /// + /// In en, this message translates to: + /// **'Active'** + String get toolsActive; + + /// No description provided for @toolsLiveLog. + /// + /// In en, this message translates to: + /// **'Live Log'** + String get toolsLiveLog; + + /// No description provided for @toolsNoActivity. + /// + /// In en, this message translates to: + /// **'No activity yet.'** + String get toolsNoActivity; + + /// No description provided for @themeSaved. + /// + /// In en, this message translates to: + /// **'Theme \"{name}\" saved!'** + String themeSaved(String name); } class _AppLocalizationsDelegate diff --git a/gui/lib/l10n/app_localizations_ar.dart b/gui/lib/l10n/app_localizations_ar.dart index 21ca3ce..404b53c 100644 --- a/gui/lib/l10n/app_localizations_ar.dart +++ b/gui/lib/l10n/app_localizations_ar.dart @@ -470,4 +470,663 @@ class AppLocalizationsAr extends AppLocalizations { @override String get raSaveCredentials => 'حفظ'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_de.dart b/gui/lib/l10n/app_localizations_de.dart index 1d38519..d6af924 100644 --- a/gui/lib/l10n/app_localizations_de.dart +++ b/gui/lib/l10n/app_localizations_de.dart @@ -472,4 +472,663 @@ class AppLocalizationsDe extends AppLocalizations { @override String get raSaveCredentials => 'Save'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_en.dart b/gui/lib/l10n/app_localizations_en.dart index 191ddc3..02e7a32 100644 --- a/gui/lib/l10n/app_localizations_en.dart +++ b/gui/lib/l10n/app_localizations_en.dart @@ -472,4 +472,663 @@ class AppLocalizationsEn extends AppLocalizations { @override String get raSaveCredentials => 'Save'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_es.dart b/gui/lib/l10n/app_localizations_es.dart index a2429be..a091075 100644 --- a/gui/lib/l10n/app_localizations_es.dart +++ b/gui/lib/l10n/app_localizations_es.dart @@ -479,4 +479,663 @@ class AppLocalizationsEs extends AppLocalizations { @override String get raSaveCredentials => 'Guardar'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_fr.dart b/gui/lib/l10n/app_localizations_fr.dart index d88ce11..a809a4e 100644 --- a/gui/lib/l10n/app_localizations_fr.dart +++ b/gui/lib/l10n/app_localizations_fr.dart @@ -479,4 +479,663 @@ class AppLocalizationsFr extends AppLocalizations { @override String get raSaveCredentials => 'Enregistrer'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_it.dart b/gui/lib/l10n/app_localizations_it.dart index fc4656e..c21996a 100644 --- a/gui/lib/l10n/app_localizations_it.dart +++ b/gui/lib/l10n/app_localizations_it.dart @@ -472,4 +472,663 @@ class AppLocalizationsIt extends AppLocalizations { @override String get raSaveCredentials => 'Save'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_ja.dart b/gui/lib/l10n/app_localizations_ja.dart index 475d387..d200458 100644 --- a/gui/lib/l10n/app_localizations_ja.dart +++ b/gui/lib/l10n/app_localizations_ja.dart @@ -465,4 +465,663 @@ class AppLocalizationsJa extends AppLocalizations { @override String get raSaveCredentials => '保存'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_pt.dart b/gui/lib/l10n/app_localizations_pt.dart index 359f2c3..97f5378 100644 --- a/gui/lib/l10n/app_localizations_pt.dart +++ b/gui/lib/l10n/app_localizations_pt.dart @@ -478,4 +478,663 @@ class AppLocalizationsPt extends AppLocalizations { @override String get raSaveCredentials => 'Salvar'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_ru.dart b/gui/lib/l10n/app_localizations_ru.dart index 0f4d1dd..0879b80 100644 --- a/gui/lib/l10n/app_localizations_ru.dart +++ b/gui/lib/l10n/app_localizations_ru.dart @@ -472,4 +472,663 @@ class AppLocalizationsRu extends AppLocalizations { @override String get raSaveCredentials => 'Save'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_tr.dart b/gui/lib/l10n/app_localizations_tr.dart index 291ee0c..dce3d13 100644 --- a/gui/lib/l10n/app_localizations_tr.dart +++ b/gui/lib/l10n/app_localizations_tr.dart @@ -472,4 +472,663 @@ class AppLocalizationsTr extends AppLocalizations { @override String get raSaveCredentials => 'Save'; + + @override + String get navPatch => 'Patch'; + + @override + String get navTools => 'Tools'; + + @override + String get navPlugins => 'Plugins'; + + @override + String get mediaTypeTitle => 'Unrecognized Media Type'; + + @override + String mediaTypeBody(String file) { + return 'Unrecognized Media Type: Is this game a CD or DVD?\n\nFile: $file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => 'Cancel'; + + @override + String get commonOk => 'OK'; + + @override + String get commonAdd => 'Add'; + + @override + String get commonDone => 'Done'; + + @override + String get commonApply => 'Apply'; + + @override + String get commonRemove => 'Remove'; + + @override + String get commonInstall => 'Install'; + + @override + String get pluginsTabInstalled => 'Installed Plugins 📦'; + + @override + String get pluginsTabStore => 'Plugin Store 🌐🛒'; + + @override + String get pluginsTabStudio => 'Create / Studio 🛠️'; + + @override + String get pluginsDropTitle => 'Drag & Drop .orplug Archive Here'; + + @override + String get pluginsDropSubtitle => + 'Install custom ROM tools, extensions, and formats'; + + @override + String get pluginsBrowse => 'Browse .orplug File'; + + @override + String pluginsInstalledHeading(int count) { + return 'Installed Plugins ($count)'; + } + + @override + String get pluginsEmptyTitle => 'No Plugins Installed Yet'; + + @override + String get pluginsEmptyBody => + 'Drop an .orplug package above or explore community plugins in the Plugin Store.'; + + @override + String get pluginsUninstall => 'Uninstall'; + + @override + String get pluginsUninstallTitle => 'Uninstall Plugin'; + + @override + String pluginsUninstallBody(String name, String id) { + return 'Are you sure you want to uninstall \"$name\" ($id)?'; + } + + @override + String get pluginsInstallFailed => 'Install failed'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name is already installed'; + } + + @override + String pluginsInstalledToast(String name) { + return '$name installed'; + } + + @override + String get storeTitle => 'Plugin Marketplace'; + + @override + String get storeRefresh => 'Refresh catalogue'; + + @override + String get storeSubtitleLive => + 'Official and community plugins, served live from the store.'; + + @override + String get storeSubtitleCached => + 'Showing the last cached catalogue. Reconnect to refresh.'; + + @override + String get storeBadgeLive => 'Live'; + + @override + String get storeBadgeOffline => 'Offline'; + + @override + String get storeSearchHint => 'Search plugins, publishers, routes…'; + + @override + String get storeAll => 'All'; + + @override + String get storeOfflineTitle => 'ROMéo is offline'; + + @override + String get storeEmptyTitle => 'No plugins published yet'; + + @override + String get storeNoMatchTitle => 'No plugins match your filters'; + + @override + String get storeOfflineBody => + 'The store could not be reached and no cached copy exists. Check your connection and refresh.'; + + @override + String get storeEmptyBody => 'Check back soon — new plugins land often.'; + + @override + String get storeNoMatchBody => 'Try a different search term or category.'; + + @override + String get storeVerifiedPublisher => 'Verified publisher'; + + @override + String get storeInstalled => 'Installed'; + + @override + String storeByPublisher(String name) { + return 'by $name'; + } + + @override + String storeCoreMin(String version) { + return 'core ≥ $version'; + } + + @override + String get deepLinkTitle => 'Install plugin from link?'; + + @override + String get deepLinkBody => + 'An openrom:// link wants to install a plugin. Review it before continuing.'; + + @override + String get deepLinkPlugin => 'Plugin'; + + @override + String get deepLinkId => 'ID'; + + @override + String get deepLinkVersion => 'Version'; + + @override + String get deepLinkPublisher => 'Publisher'; + + @override + String get deepLinkCategory => 'Category'; + + @override + String get deepLinkRequiresCore => 'Requires core'; + + @override + String get deepLinkVerified => + 'The download is verified against the published SHA-256 before installation.'; + + @override + String get deepLinkNotFoundTitle => 'Plugin not found'; + + @override + String deepLinkNotFoundBody(String id) { + return 'No plugin with the id \"$id\" was found in the store catalogue.'; + } + + @override + String get studioTitle => 'Visual .orplug Builder Studio'; + + @override + String get studioIntro => + 'Start a new plugin or open an existing project folder.'; + + @override + String get studioNew => 'New'; + + @override + String get studioOpen => 'Open'; + + @override + String get studioRescan => 'Rescan project'; + + @override + String get studioIdentity => 'Identity'; + + @override + String get studioPluginId => 'Plugin ID'; + + @override + String get studioDisplayName => 'Display Name'; + + @override + String get studioVersion => 'Version (SemVer)'; + + @override + String get studioMinCore => 'Min Core Version'; + + @override + String get studioCategory => 'Category'; + + @override + String get studioPublisher => 'Publisher'; + + @override + String get studioPublisherId => 'Publisher ID'; + + @override + String get studioPublisherName => 'Publisher Name'; + + @override + String get studioVerified => 'Verified'; + + @override + String get studioVerifiedTip => + 'Verified publishers get the blue check in the store'; + + @override + String get studioDescriptionRoutes => 'Description & Routes'; + + @override + String get studioDescription => 'Description'; + + @override + String get studioRouteHint => 'Add route (e.g. ISO -> WUA)'; + + @override + String get studioNoRoutes => 'No routes yet.'; + + @override + String get studioBinaries => 'Binaries'; + + @override + String get studioBinariesHelp => + 'Attach one executable per platform. SHA-256 hashes are computed automatically when you save or build.'; + + @override + String get studioNotSet => 'not set'; + + @override + String get studioReplace => 'Replace'; + + @override + String get studioExecutionArgs => 'Execution Arguments'; + + @override + String get studioPlaceholders => + 'Placeholders: bin (executable) · in (input) · out (output) · outdir (output dir) · cue (cue sheet)'; + + @override + String get studioArgsTemplate => 'Argument template'; + + @override + String get studioBuild => 'Build'; + + @override + String get studioSaveManifest => 'Save Manifest'; + + @override + String get studioValidate => 'Validate'; + + @override + String get studioBuildPackage => 'Build .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return 'Last build: $path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => 'Copy marketplace JSON'; + + @override + String get studioMarketplaceCopied => 'Marketplace JSON copied'; + + @override + String get studioManifestValid => 'Manifest is valid'; + + @override + String get studioValidationIssues => 'Validation issues'; + + @override + String get studioBuiltTitle => 'Built .orplug'; + + @override + String get studioArchive => 'Archive'; + + @override + String get studioSize => 'Size'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes bytes'; + } + + @override + String get studioMarketplaceEntry => + 'Marketplace entry (paste into the store catalogue):'; + + @override + String get studioCopyJson => 'Copy JSON'; + + @override + String get studioNewProjectTitle => 'Select where to create the plugin'; + + @override + String get studioOpenProjectTitle => 'Select a plugin project folder'; + + @override + String get studioDefaultName => 'My Tool'; + + @override + String get themeEditorTitle => 'Theme Editor'; + + @override + String get themeCustomSkin => 'Custom Skin'; + + @override + String get themeCustomTheme => 'Custom Theme'; + + @override + String get themeThemeName => 'Theme Name'; + + @override + String get themePickWallpaper => 'Choose a wallpaper (GIF, PNG, JPG or WebP)'; + + @override + String get themePickDropzone => 'Choose a dropzone illustration (GIF or PNG)'; + + @override + String get themePickFont => 'Choose a UI font (TTF or OTF)'; + + @override + String get themeImportSkinBundle => 'Import an .orskin bundle'; + + @override + String get themeExportSkinBundle => 'Export .orskin bundle'; + + @override + String get themeImportShort => 'Import .orskin'; + + @override + String get themeExportShort => 'Export .orskin'; + + @override + String themeImportFailed(String error) { + return 'Import failed: $error'; + } + + @override + String themeExportFailed(String error) { + return 'Export failed: $error'; + } + + @override + String themeImported(String name) { + return 'Imported skin \"$name\"'; + } + + @override + String themeExported(String path) { + return 'Exported $path'; + } + + @override + String get themePickColor => 'Pick Color'; + + @override + String get themeHue => 'Hue'; + + @override + String get themeSaturation => 'Saturation'; + + @override + String get themeValue => 'Value'; + + @override + String get themeColors => 'Colors'; + + @override + String get themeBackground => 'Background'; + + @override + String get themeSurface => 'Surface'; + + @override + String get themeAccent => 'Accent'; + + @override + String get themeTextPrimary => 'Text Primary'; + + @override + String get themeTextSecondary => 'Text Secondary'; + + @override + String get themeSidebarBg => 'Sidebar Background'; + + @override + String get themeCardBg => 'Card Background'; + + @override + String get themeTerminalBg => 'Terminal Background'; + + @override + String get themeTerminalText => 'Terminal Text'; + + @override + String get themeGeometry => 'Skin Geometry & Wallpaper'; + + @override + String get themeCornerRadius => 'Corner Radius'; + + @override + String get themeWallpaperOpacity => 'Wallpaper Opacity'; + + @override + String get themeWallpaperBlur => 'Wallpaper Blur'; + + @override + String get themeChooseWallpaper => 'Choose Wallpaper'; + + @override + String get themeChooseDropzone => 'Choose Dropzone'; + + @override + String get themeChooseFont => 'Choose Font'; + + @override + String get themeSidebarTabs => 'Sidebar Tabs'; + + @override + String get themeSidebarTabsHelp => + 'Uncheck a tab to hide it from the sidebar and navigation.'; + + @override + String get themeSaveTheme => 'Save Theme'; + + @override + String get themeLivePreview => 'Live Preview'; + + @override + String get settingsLanguage => 'Language'; + + @override + String get settingsAudioCodec => 'CD Audio Codec (CHD)'; + + @override + String get settingsCodecFlac => 'Lossless (FLAC) - Recommended'; + + @override + String get settingsCodecVorbis => 'Max Compression (Vorbis)'; + + @override + String get settingsVerifySub => + 'Runs chdman verify on newly created CHD files'; + + @override + String get settingsSameFolder => 'Same folder as source file'; + + @override + String get settingsSelectDir => 'Select directory...'; + + @override + String get settingsThemeSystem => 'System'; + + @override + String get settingsThemeLight => 'Light'; + + @override + String get settingsThemeDark => 'Dark'; + + @override + String get settingsUpdateError => 'Error checking for updates'; + + @override + String get settingsRaSaved => 'RetroAchievements credentials saved'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => 'Enable Hasheous hash lookup'; + + @override + String get settingsHasheousSub => + 'Identifies games by transmitting the ROM SHA-1 to hasheous.org. Off by default; only your file hash is sent.'; + + @override + String get batchTitle => 'Batch Complete! 🎉'; + + @override + String batchSaved(String amount) { + return 'You just saved $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'games', + one: 'game', + ); + return '($percent reduction) across $count $_temp0!'; + } + + @override + String batchAllProcessed(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: 'files', + one: 'file', + ); + return 'All $count $_temp0 processed successfully!'; + } + + @override + String get batchAwesome => 'Awesome!'; + + @override + String get hasheousUnknown => 'Unknown title'; + + @override + String hasheousMore(int count) { + return '+ $count more'; + } + + @override + String hasheousVerifiedIn(String source) { + return 'Verified in $source'; + } + + @override + String get hasheousNoMatch => 'No match found in preservation databases.'; + + @override + String get toolsTabCue => 'CUE Editor'; + + @override + String get toolsTabRenamer => 'ROM Renamer'; + + @override + String get toolsTab1g1r => '1G1R Cleaner'; + + @override + String get toolsTabHasher => 'ROM Hasher'; + + @override + String get toolsWatchTitle => 'Watch Folder'; + + @override + String get toolsHasherIntro => + 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.'; + + @override + String get toolsHasherDrop => 'Drag & drop a ROM here, or click to browse'; + + @override + String get toolsChooseFile => 'Choose File'; + + @override + String get toolsComputeHashes => 'Compute Hashes'; + + @override + String get toolsResults => 'Results'; + + @override + String get toolsCopyAll => 'Copy All'; + + @override + String get toolsFileSize => 'File Size'; + + @override + String get toolsIdentifying => 'Identifying…'; + + @override + String get toolsIdentifyGame => 'Identify Game (Hasheous)'; + + @override + String get toolsHasheousHint => + 'Sends the file SHA-1 to hasheous.org. Enable in Settings → Online Features.'; + + @override + String get toolsWatchStopped => 'Watch stopped.'; + + @override + String get toolsWatchNeedFolders => + 'Select both an input and an output folder first.'; + + @override + String get toolsChooseFolder => 'Choose folder…'; + + @override + String get toolsWatchIntro => + 'Automatically convert ROMs as they land in a folder.'; + + @override + String get toolsInputFolder => 'Input Folder'; + + @override + String get toolsOutputFolder => 'Output Folder'; + + @override + String get toolsTargetFormat => 'Target Format'; + + @override + String get toolsDeleteSource => 'Delete source after conversion'; + + @override + String get toolsStopWatching => 'Stop Watching'; + + @override + String get toolsStartWatching => 'Start Watching'; + + @override + String get toolsActive => 'Active'; + + @override + String get toolsLiveLog => 'Live Log'; + + @override + String get toolsNoActivity => 'No activity yet.'; + + @override + String themeSaved(String name) { + return 'Theme \"$name\" saved!'; + } } diff --git a/gui/lib/l10n/app_localizations_zh.dart b/gui/lib/l10n/app_localizations_zh.dart index 7cb3e12..310ac44 100644 --- a/gui/lib/l10n/app_localizations_zh.dart +++ b/gui/lib/l10n/app_localizations_zh.dart @@ -464,466 +464,1728 @@ class AppLocalizationsZh extends AppLocalizations { @override String get raSaveCredentials => '保存'; + + @override + String get navPatch => '应用补丁'; + + @override + String get navTools => '工具'; + + @override + String get navPlugins => '插件'; + + @override + String get mediaTypeTitle => '无法识别媒体类型'; + + @override + String mediaTypeBody(String file) { + return '无法识别媒体类型:这个游戏是 CD 还是 DVD?\n\n文件:$file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => '取消'; + + @override + String get commonOk => '确定'; + + @override + String get commonAdd => '添加'; + + @override + String get commonDone => '完成'; + + @override + String get commonApply => '应用'; + + @override + String get commonRemove => '移除'; + + @override + String get commonInstall => '安装'; + + @override + String get pluginsTabInstalled => '已安装插件 📦'; + + @override + String get pluginsTabStore => '插件商店 🌐🛒'; + + @override + String get pluginsTabStudio => '创建 / 工作室 🛠️'; + + @override + String get pluginsDropTitle => '将 .orplug 压缩包拖放到这里'; + + @override + String get pluginsDropSubtitle => '安装自定义 ROM 工具、扩展和格式'; + + @override + String get pluginsBrowse => '浏览 .orplug 文件'; + + @override + String pluginsInstalledHeading(int count) { + return '已安装插件($count)'; + } + + @override + String get pluginsEmptyTitle => '尚未安装任何插件'; + + @override + String get pluginsEmptyBody => '将 .orplug 包拖放到上方,或到插件商店浏览社区插件。'; + + @override + String get pluginsUninstall => '卸载'; + + @override + String get pluginsUninstallTitle => '卸载插件'; + + @override + String pluginsUninstallBody(String name, String id) { + return '确定要卸载“$name”($id)吗?'; + } + + @override + String get pluginsInstallFailed => '安装失败'; + + @override + String pluginsAlreadyInstalled(String name) { + return '$name 已经安装过了'; + } + + @override + String pluginsInstalledToast(String name) { + return '已安装 $name'; + } + + @override + String get storeTitle => '插件市集'; + + @override + String get storeRefresh => '刷新目录'; + + @override + String get storeSubtitleLive => '由商店实时提供的官方与社区插件。'; + + @override + String get storeSubtitleCached => '当前显示上次缓存的目录,重新连接后可更新。'; + + @override + String get storeBadgeLive => '在线'; + + @override + String get storeBadgeOffline => '离线'; + + @override + String get storeSearchHint => '搜索插件、发布者、转换路径…'; + + @override + String get storeAll => '全部'; + + @override + String get storeOfflineTitle => 'ROMéo 离线了'; + + @override + String get storeEmptyTitle => '还没有任何插件上架'; + + @override + String get storeNoMatchTitle => '没有符合筛选条件的插件'; + + @override + String get storeOfflineBody => '无法连接到商店,且本地没有缓存。请检查网络连接后刷新。'; + + @override + String get storeEmptyBody => '敬请期待,新插件会陆续上架。'; + + @override + String get storeNoMatchBody => '换个关键词或分类试试。'; + + @override + String get storeVerifiedPublisher => '已验证发布者'; + + @override + String get storeInstalled => '已安装'; + + @override + String storeByPublisher(String name) { + return '作者:$name'; + } + + @override + String storeCoreMin(String version) { + return '核心 ≥ $version'; + } + + @override + String get deepLinkTitle => '要从链接安装插件吗?'; + + @override + String get deepLinkBody => '有 openrom:// 链接请求安装插件,请先确认内容再继续。'; + + @override + String get deepLinkPlugin => '插件'; + + @override + String get deepLinkId => '标识符'; + + @override + String get deepLinkVersion => '版本'; + + @override + String get deepLinkPublisher => '发布者'; + + @override + String get deepLinkCategory => '分类'; + + @override + String get deepLinkRequiresCore => '需要核心版本'; + + @override + String get deepLinkVerified => '安装前会使用商店公布的 SHA-256 校验下载文件。'; + + @override + String get deepLinkNotFoundTitle => '找不到插件'; + + @override + String deepLinkNotFoundBody(String id) { + return '商店目录中找不到标识符为“$id”的插件。'; + } + + @override + String get studioTitle => '可视化 .orplug 制作工作室'; + + @override + String get studioIntro => '创建新插件,或打开现有的项目文件夹。'; + + @override + String get studioNew => '新建'; + + @override + String get studioOpen => '打开'; + + @override + String get studioRescan => '重新扫描项目'; + + @override + String get studioIdentity => '基本信息'; + + @override + String get studioPluginId => '插件标识符'; + + @override + String get studioDisplayName => '显示名称'; + + @override + String get studioVersion => '版本(SemVer)'; + + @override + String get studioMinCore => '最低核心版本'; + + @override + String get studioCategory => '分类'; + + @override + String get studioPublisher => '发布者'; + + @override + String get studioPublisherId => '发布者标识符'; + + @override + String get studioPublisherName => '发布者名称'; + + @override + String get studioVerified => '已验证'; + + @override + String get studioVerifiedTip => '已验证的发布者会在商店显示蓝色勾选标记。'; + + @override + String get studioDescriptionRoutes => '说明与转换路径'; + + @override + String get studioDescription => '说明'; + + @override + String get studioRouteHint => '添加转换路径(例如 ISO -> WUA)'; + + @override + String get studioNoRoutes => '尚未添加任何转换路径。'; + + @override + String get studioBinaries => '可执行文件'; + + @override + String get studioBinariesHelp => '每个平台附加一个可执行文件。保存或构建时会自动计算 SHA-256。'; + + @override + String get studioNotSet => '未设置'; + + @override + String get studioReplace => '替换'; + + @override + String get studioExecutionArgs => '执行参数'; + + @override + String get studioPlaceholders => + '预留字段:bin(可执行文件)、in(输入)、out(输出)、outdir(输出目录)、cue(cue 文件)'; + + @override + String get studioArgsTemplate => '参数模板'; + + @override + String get studioBuild => '构建'; + + @override + String get studioSaveManifest => '保存清单'; + + @override + String get studioValidate => '校验'; + + @override + String get studioBuildPackage => '构建 .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return '上次构建:$path · sha256 $sha'; + } + + @override + String get studioCopyMarketplace => '复制市集 JSON'; + + @override + String get studioMarketplaceCopied => '已复制市集 JSON'; + + @override + String get studioManifestValid => '清单有效'; + + @override + String get studioValidationIssues => '校验问题'; + + @override + String get studioBuiltTitle => '已构建 .orplug'; + + @override + String get studioArchive => '压缩包'; + + @override + String get studioSize => '大小'; + + @override + String studioSizeBytes(int bytes) { + return '$bytes 字节'; + } + + @override + String get studioMarketplaceEntry => '商店条目(粘贴到商店目录):'; + + @override + String get studioCopyJson => '复制 JSON'; + + @override + String get studioNewProjectTitle => '选择插件的创建位置'; + + @override + String get studioOpenProjectTitle => '选择插件项目文件夹'; + + @override + String get studioDefaultName => '我的工具'; + + @override + String get themeEditorTitle => '主题编辑器'; + + @override + String get themeCustomSkin => '自定义外观'; + + @override + String get themeCustomTheme => '自定义主题'; + + @override + String get themeThemeName => '主题名称'; + + @override + String get themePickWallpaper => '选择壁纸(GIF、PNG、JPG 或 WebP)'; + + @override + String get themePickDropzone => '选择拖放区插图(GIF 或 PNG)'; + + @override + String get themePickFont => '选择界面字体(TTF 或 OTF)'; + + @override + String get themeImportSkinBundle => '导入 .orskin 外观包'; + + @override + String get themeExportSkinBundle => '导出 .orskin 外观包'; + + @override + String get themeImportShort => '导入 .orskin'; + + @override + String get themeExportShort => '导出 .orskin'; + + @override + String themeImportFailed(String error) { + return '导入失败:$error'; + } + + @override + String themeExportFailed(String error) { + return '导出失败:$error'; + } + + @override + String themeImported(String name) { + return '已导入外观“$name”'; + } + + @override + String themeExported(String path) { + return '已导出 $path'; + } + + @override + String get themePickColor => '选择颜色'; + + @override + String get themeHue => '色相'; + + @override + String get themeSaturation => '饱和度'; + + @override + String get themeValue => '明度'; + + @override + String get themeColors => '颜色'; + + @override + String get themeBackground => '背景'; + + @override + String get themeSurface => '表面色'; + + @override + String get themeAccent => '强调色'; + + @override + String get themeTextPrimary => '主要文字'; + + @override + String get themeTextSecondary => '次要文字'; + + @override + String get themeSidebarBg => '侧边栏背景'; + + @override + String get themeCardBg => '卡片背景'; + + @override + String get themeTerminalBg => '终端背景'; + + @override + String get themeTerminalText => '终端文字'; + + @override + String get themeGeometry => '外观几何与壁纸'; + + @override + String get themeCornerRadius => '圆角半径'; + + @override + String get themeWallpaperOpacity => '壁纸不透明度'; + + @override + String get themeWallpaperBlur => '壁纸模糊'; + + @override + String get themeChooseWallpaper => '选择壁纸'; + + @override + String get themeChooseDropzone => '选择拖放区'; + + @override + String get themeChooseFont => '选择字体'; + + @override + String get themeSidebarTabs => '侧边栏标签页'; + + @override + String get themeSidebarTabsHelp => '取消勾选即可从侧边栏和导航中隐藏。'; + + @override + String get themeSaveTheme => '保存主题'; + + @override + String get themeLivePreview => '实时预览'; + + @override + String get settingsLanguage => '语言'; + + @override + String get settingsAudioCodec => 'CD 音频编码(CHD)'; + + @override + String get settingsCodecFlac => '无损(FLAC)-推荐'; + + @override + String get settingsCodecVorbis => '最大压缩(Vorbis)'; + + @override + String get settingsVerifySub => '对新建的 CHD 文件运行 chdman verify'; + + @override + String get settingsSameFolder => '与源文件相同的文件夹'; + + @override + String get settingsSelectDir => '选择文件夹…'; + + @override + String get settingsThemeSystem => '跟随系统'; + + @override + String get settingsThemeLight => '浅色'; + + @override + String get settingsThemeDark => '深色'; + + @override + String get settingsUpdateError => '检查更新时出错'; + + @override + String get settingsRaSaved => '已保存 RetroAchievements 凭据'; + + @override + String get settingsHasheous => 'Hasheous'; + + @override + String get settingsHasheousEnable => '启用 Hasheous 哈希查询'; + + @override + String get settingsHasheousSub => + '将 ROM 的 SHA-1 发送至 hasheous.org 来识别游戏。默认关闭,仅发送文件哈希。'; + + @override + String get batchTitle => '批量处理完成!🎉'; + + @override + String batchSaved(String amount) { + return '你刚刚节省了 $amount'; + } + + @override + String batchSavedDetail(String percent, int count) { + return '(缩减 $percent)共 $count 个游戏!'; + } + + @override + String batchAllProcessed(int count) { + return '全部 $count 个文件处理完成!'; + } + + @override + String get batchAwesome => '太棒了!'; + + @override + String get hasheousUnknown => '未知标题'; + + @override + String hasheousMore(int count) { + return '另有 $count 个来源'; + } + + @override + String hasheousVerifiedIn(String source) { + return '已在 $source 验证'; + } + + @override + String get hasheousNoMatch => '在保存数据库中找不到匹配项。'; + + @override + String get toolsTabCue => 'CUE 编辑器'; + + @override + String get toolsTabRenamer => 'ROM 重命名'; + + @override + String get toolsTab1g1r => '1G1R 清理器'; + + @override + String get toolsTabHasher => 'ROM 哈希计算'; + + @override + String get toolsWatchTitle => '监视文件夹'; + + @override + String get toolsHasherIntro => '单次流式计算 CRC32、MD5、SHA-1 和 SHA-256。'; + + @override + String get toolsHasherDrop => '将 ROM 拖放到这里,或点击浏览'; + + @override + String get toolsChooseFile => '选择文件'; + + @override + String get toolsComputeHashes => '计算哈希'; + + @override + String get toolsResults => '结果'; + + @override + String get toolsCopyAll => '全部复制'; + + @override + String get toolsFileSize => '文件大小'; + + @override + String get toolsIdentifying => '识别中…'; + + @override + String get toolsIdentifyGame => '识别游戏(Hasheous)'; + + @override + String get toolsHasheousHint => + '会将文件的 SHA-1 发送至 hasheous.org。请在“设置 → 在线功能”中启用。'; + + @override + String get toolsWatchStopped => '已停止监视。'; + + @override + String get toolsWatchNeedFolders => '请先选择输入和输出文件夹。'; + + @override + String get toolsChooseFolder => '选择文件夹…'; + + @override + String get toolsWatchIntro => '自动转换进入文件夹的 ROM。'; + + @override + String get toolsInputFolder => '输入文件夹'; + + @override + String get toolsOutputFolder => '输出文件夹'; + + @override + String get toolsTargetFormat => '目标格式'; + + @override + String get toolsDeleteSource => '转换后删除源文件'; + + @override + String get toolsStopWatching => '停止监视'; + + @override + String get toolsStartWatching => '开始监视'; + + @override + String get toolsActive => '运行中'; + + @override + String get toolsLiveLog => '实时日志'; + + @override + String get toolsNoActivity => '尚无活动。'; + + @override + String themeSaved(String name) { + return '已保存主题“$name”!'; + } } -/// The translations for Chinese, as used in Taiwan (`zh_TW`). -class AppLocalizationsZhTw extends AppLocalizationsZh { - AppLocalizationsZhTw() : super('zh_TW'); +/// The translations for Chinese, as used in Taiwan (`zh_TW`). +class AppLocalizationsZhTw extends AppLocalizationsZh { + AppLocalizationsZhTw() : super('zh_TW'); + + @override + String get appTitle => 'OpenROM'; + + @override + String get appSubtitle => '萬用 ROM 轉換工具'; + + @override + String get convertButton => '轉換'; + + @override + String convertButtonWithCount(int count) { + return '轉換($count 個檔案)'; + } + + @override + String get dropZoneHint => '將 ROM 檔案拖曳至此'; + + @override + String get dropZoneSubHint => '或點擊瀏覽'; + + @override + String get settingsTitle => '轉換設定'; + + @override + String get outputFormat => '輸出格式'; + + @override + String get compressionLevel => '壓縮等級'; + + @override + String get compressionNormal => '標準'; + + @override + String get compressionHigh => '高'; + + @override + String get compressionMax => '最高'; + + @override + String get postProcessing => '後續處理'; + + @override + String get verifyAfterConversion => '轉換後驗證'; + + @override + String get outputDestination => '輸出位置'; + + @override + String get browse => '瀏覽'; + + @override + String get statusWaiting => '等待中...'; + + @override + String get statusConverting => '轉換中...'; + + @override + String get statusDone => '完成'; + + @override + String get statusFailed => '失敗'; + + @override + String get aboutTitle => '關於 OpenROM'; + + @override + String get settingsScreen => '設定'; + + @override + String get aboutScreen => '關於'; + + @override + String get themeScreen => '主題'; + + @override + String get errorCoreNotFound => '應用程式資料夾中缺少 openrom-core。'; + + @override + String get errorUnsupportedFormat => '此檔案格式無法使用選擇的輸出格式進行轉換。'; + + @override + String get errorDiskSpace => '可用空間不足以完成此次轉換。'; + + @override + String get errorToolFailed => '轉換工具(chdman/maxcso)未預期結束。'; + + @override + String get errorConversionFailed => '轉換在完成前停止。'; + + @override + String get errorFileNotFound => '輸入檔案已被移動或刪除。'; + + @override + String get errorOutputDirNotFound => '選擇的輸出資料夾已不存在。'; + + @override + String get errorPermissionDenied => 'OpenROM 無法寫入輸出資料夾。'; + + @override + String get errorCorruptedFile => '檔案似乎已損毀或為 0 bytes。'; + + @override + String get errorUnknown => '發生錯誤。這可能是 Bug。'; + + @override + String get errorDetailsLabel => '詳細資料'; + + @override + String get retryButton => '重試'; + + @override + String get closeButton => '關閉'; + + @override + String get reportBugButton => '回報問題'; + + @override + String get clearQueue => '清除佇列'; + + @override + String get removeFile => '移除'; + + @override + String get openOutputFolder => '開啟輸出資料夾'; + + @override + String get patcherTitle => 'ROM 修補器'; + + @override + String get patcherRomFile => 'ROM 檔案'; + + @override + String get patcherPatchFile => '修補檔案'; + + @override + String get patcherOutputFile => '輸出檔案'; + + @override + String get patcherSameFolder => '與 ROM 相同資料夾'; + + @override + String get patcherIgnoreChecksum => '忽略總和檢查錯誤'; + + @override + String get patcherApplyButton => '套用修補'; + + @override + String get patcherSuccess => '修補成功!'; + + @override + String get patcherFormat => '格式'; + + @override + String get patcherChecksumPassed => '通過'; + + @override + String get patcherChecksumSkipped => '略過'; + + @override + String get patcherDropHint => '將 ROM 與修補檔案拖曳至此'; + + @override + String get toolsTitle => '工具'; + + @override + String get compressorTitle => 'ROM 壓縮器'; + + @override + String get compressorAddFiles => '新增檔案'; + + @override + String get compressorAddFolder => '新增資料夾'; + + @override + String get compressorOutputFormat => '輸出格式'; + + @override + String get compressorLevel => '壓縮等級'; + + @override + String get compressorLevelFast => '快速'; + + @override + String get compressorLevelNormal => '標準'; + + @override + String get compressorLevelUltra => '極致'; + + @override + String get compressorDeleteSource => '完成後刪除來源'; + + @override + String get compressorSameFolder => '與來源相同資料夾'; + + @override + String compressorButton(int count) { + return '壓縮($count 個檔案)'; + } + + @override + String get compressorSkipped => '略過(已壓縮)'; + + @override + String get m3uTitle => 'M3U 產生器'; + + @override + String get m3uDropHint => '將光碟檔案拖曳至此'; + + @override + String get m3uOutputLabel => '輸出資料夾'; + + @override + String get m3uButton => '產生 M3U'; + + @override + String m3uSuccess(String filename) { + return '已建立:$filename'; + } + + @override + String get cueGeneratorTitle => 'CUE 產生器'; + + @override + String get cueGeneratorBinFile => 'BIN 檔案'; + + @override + String get cueGeneratorDetectedMode => '偵測模式'; + + @override + String get cueGeneratorButton => '產生 CUE'; + + @override + String cueGeneratorSuccess(String filename) { + return '已建立:$filename'; + } + + @override + String get binMergerTitle => 'BIN 合併器'; + + @override + String get binMergerCueFile => 'CUE 檔案(多音軌)'; + + @override + String binMergerDetected(int count) { + return '偵測到:$count 個 BIN 檔案'; + } + + @override + String get binMergerButton => '合併 BIN'; + + @override + String binMergerSuccess(String filename) { + return '已合併:$filename'; + } + + @override + String get headerRemoverTitle => '檔頭移除器'; + + @override + String get headerRemoverSystem => '系統'; + + @override + String get headerRemoverFound => '找到檔頭'; + + @override + String get headerRemoverNotFound => '找不到檔頭'; + + @override + String get headerRemoverConfidence => '信心度'; + + @override + String get headerRemoverBackup => '保留備份(.bak)'; + + @override + String get headerRemoverButton => '移除檔頭'; + + @override + String headerRemoverSuccess(String filename) { + return '乾淨的 ROM:$filename'; + } + + @override + String get headerRemoverNoHeader => '未偵測到檔頭。'; + + @override + String get dreamcastTitle => 'Dreamcast'; + + @override + String get dreamcastDcpTab => '套用 DCP'; + + @override + String get dreamcastIpbinTab => 'IP.BIN 編輯器'; + + @override + String get dreamcastGdiTab => 'GDI 資訊'; + + @override + String get dreamcastDiscDir => '光碟目錄'; + + @override + String get dreamcastDcpFile => 'DCP 修補檔案'; + + @override + String get dreamcastOutputDir => '輸出目錄'; + + @override + String get dreamcastApplyButton => '套用 DCP 修補'; + + @override + String get dreamcastApplySuccess => 'DCP 修補成功套用!'; + + @override + String get dreamcastIpbinFile => 'IP.BIN 或 GDI 檔案'; + + @override + String get dreamcastIpbinLoad => '載入'; + + @override + String get dreamcastIpbinSave => '儲存變更'; + + @override + String get dreamcastIpbinTitle => '遊戲名稱'; + + @override + String get dreamcastIpbinProductNumber => '產品編號'; + + @override + String get dreamcastIpbinVersion => '版本'; + + @override + String get dreamcastIpbinDate => '發售日期'; + + @override + String get dreamcastIpbinRegion => '區域'; + + @override + String get dreamcastIpbinRegionJapan => '日本'; + + @override + String get dreamcastIpbinRegionUSA => '美國'; + + @override + String get dreamcastIpbinRegionEurope => '歐洲'; + + @override + String get dreamcastIpbinRegionFree => '全區'; + + @override + String get dreamcastIpbinVga => '啟用 VGA'; + + @override + String get dreamcastIpbinSaveSuccess => 'IP.BIN 已成功儲存!'; + + @override + String get dreamcastGdiFile => 'GDI 檔案'; + + @override + String get dreamcastGdiLoad => '載入 GDI'; + + @override + String get dreamcastGdiTracks => '軌道列表'; + + @override + String get dreamcastGdiTrackNum => '軌道'; + + @override + String get dreamcastGdiTrackLba => 'LBA'; + + @override + String get dreamcastGdiTrackType => '類型'; + + @override + String get dreamcastGdiTrackSize => '磁區大小'; + + @override + String get dreamcastGdiTrackFile => '檔案'; + + @override + String get dreamcastGdiAudio => '音訊'; + + @override + String get dreamcastGdiData => '資料'; + + @override + String get dreamcastSameFolder => '與來源相同資料夾'; + + @override + String get dreamcastBrowse => '瀏覽'; + + @override + String get onlineFeaturesSection => '線上功能'; + + @override + String get onlineFeaturesSub => '所有功能均為選擇性啟用。未經您同意,不會收集任何資料。'; + + @override + String get autoUpdateTitle => '自動檢查更新'; + + @override + String get autoUpdateSub => '啟動時在 GitHub 上檢查新版本'; + + @override + String get autoUpdateCheckNow => '立即檢查'; + + @override + String autoUpdateUpToDate(String version) { + return '已是最新版本($version)'; + } + + @override + String autoUpdateAvailable(String version) { + return '有可用更新:v$version'; + } + + @override + String get autoUpdateDownload => '下載'; + + @override + String get raSection => 'RetroAchievements'; + + @override + String get raEnabledTitle => '啟用 RetroAchievements 雜湊檢查'; + + @override + String get raEnabledSub => '載入前檢查您的 ROM 是否受支援'; + + @override + String get raUsername => '使用者名稱'; + + @override + String get raApiKey => 'API 金鑰'; + + @override + String get raApiKeyHint => '於 retroachievements.org/settings 取得您的金鑰'; + + @override + String get raHashChecking => '檢查雜湊中...'; + + @override + String raHashFound(String title, int count) { + return '✅ 已支援 — $title($count 個成就)'; + } + + @override + String get raHashNotFound => '⚠️ 在 RetroAchievements 上找不到'; + + @override + String raHashError(String msg) { + return '錯誤:$msg'; + } + + @override + String get raViewGame => '在 RA 上檢視'; + + @override + String get raSaveCredentials => '儲存'; + + @override + String get navPatch => '套用修補'; + + @override + String get navTools => '工具'; + + @override + String get navPlugins => '外掛'; + + @override + String get mediaTypeTitle => '無法辨識媒體類型'; + + @override + String mediaTypeBody(String file) { + return '無法辨識媒體類型:這個遊戲是 CD 還是 DVD?\n\n檔案:$file'; + } + + @override + String get mediaCd => 'CD'; + + @override + String get mediaDvd => 'DVD'; + + @override + String get commonCancel => '取消'; + + @override + String get commonOk => '確定'; + + @override + String get commonAdd => '新增'; + + @override + String get commonDone => '完成'; + + @override + String get commonApply => '套用'; @override - String get appTitle => 'OpenROM'; + String get commonRemove => '移除'; @override - String get appSubtitle => '萬用 ROM 轉換工具'; + String get commonInstall => '安裝'; @override - String get convertButton => '轉換'; + String get pluginsTabInstalled => '已安裝外掛 📦'; @override - String convertButtonWithCount(int count) { - return '轉換($count 個檔案)'; + String get pluginsTabStore => '外掛商店 🌐🛒'; + + @override + String get pluginsTabStudio => '建立 / 工作室 🛠️'; + + @override + String get pluginsDropTitle => '將 .orplug 壓縮包拖放到這裡'; + + @override + String get pluginsDropSubtitle => '安裝自訂 ROM 工具、擴充功能與格式'; + + @override + String get pluginsBrowse => '瀏覽 .orplug 檔案'; + + @override + String pluginsInstalledHeading(int count) { + return '已安裝外掛($count)'; } @override - String get dropZoneHint => '將 ROM 檔案拖曳至此'; + String get pluginsEmptyTitle => '尚未安裝任何外掛'; @override - String get dropZoneSubHint => '或點擊瀏覽'; + String get pluginsEmptyBody => '將 .orplug 套件拖放到上方,或到外掛商店探索社群外掛。'; @override - String get settingsTitle => '轉換設定'; + String get pluginsUninstall => '解除安裝'; @override - String get outputFormat => '輸出格式'; + String get pluginsUninstallTitle => '解除安裝外掛'; @override - String get compressionLevel => '壓縮等級'; + String pluginsUninstallBody(String name, String id) { + return '確定要解除安裝「$name」($id)嗎?'; + } @override - String get compressionNormal => '標準'; + String get pluginsInstallFailed => '安裝失敗'; @override - String get compressionHigh => '高'; + String pluginsAlreadyInstalled(String name) { + return '$name 已經安裝過了'; + } @override - String get compressionMax => '最高'; + String pluginsInstalledToast(String name) { + return '已安裝 $name'; + } @override - String get postProcessing => '後續處理'; + String get storeTitle => '外掛市集'; @override - String get verifyAfterConversion => '轉換後驗證'; + String get storeRefresh => '重新整理目錄'; @override - String get outputDestination => '輸出位置'; + String get storeSubtitleLive => '由商店即時提供的官方與社群外掛。'; @override - String get browse => '瀏覽'; + String get storeSubtitleCached => '目前顯示上次快取的目錄,重新連線後可更新。'; @override - String get statusWaiting => '等待中...'; + String get storeBadgeLive => '線上'; @override - String get statusConverting => '轉換中...'; + String get storeBadgeOffline => '離線'; @override - String get statusDone => '完成'; + String get storeSearchHint => '搜尋外掛、發佈者、轉換路徑…'; @override - String get statusFailed => '失敗'; + String get storeAll => '全部'; @override - String get aboutTitle => '關於 OpenROM'; + String get storeOfflineTitle => 'ROMéo 離線了'; @override - String get settingsScreen => '設定'; + String get storeEmptyTitle => '還沒有任何外掛上架'; @override - String get aboutScreen => '關於'; + String get storeNoMatchTitle => '沒有符合條件的外掛'; @override - String get themeScreen => '主題'; + String get storeOfflineBody => '無法連線到商店,而且本機沒有快取。請檢查網路連線後重新整理。'; @override - String get errorCoreNotFound => '應用程式資料夾中缺少 openrom-core。'; + String get storeEmptyBody => '敬請期待,新外掛會陸續上架。'; @override - String get errorUnsupportedFormat => '此檔案格式無法使用選擇的輸出格式進行轉換。'; + String get storeNoMatchBody => '換個關鍵字或分類試試看。'; @override - String get errorDiskSpace => '可用空間不足以完成此次轉換。'; + String get storeVerifiedPublisher => '已驗證發佈者'; @override - String get errorToolFailed => '轉換工具(chdman/maxcso)未預期結束。'; + String get storeInstalled => '已安裝'; @override - String get errorConversionFailed => '轉換在完成前停止。'; + String storeByPublisher(String name) { + return '作者:$name'; + } @override - String get errorFileNotFound => '輸入檔案已被移動或刪除。'; + String storeCoreMin(String version) { + return '核心 ≥ $version'; + } @override - String get errorOutputDirNotFound => '選擇的輸出資料夾已不存在。'; + String get deepLinkTitle => '要從連結安裝外掛嗎?'; @override - String get errorPermissionDenied => 'OpenROM 無法寫入輸出資料夾。'; + String get deepLinkBody => '有 openrom:// 連結要求安裝外掛,請先確認內容再繼續。'; @override - String get errorCorruptedFile => '檔案似乎已損毀或為 0 bytes。'; + String get deepLinkPlugin => '外掛'; @override - String get errorUnknown => '發生錯誤。這可能是 Bug。'; + String get deepLinkId => '識別碼'; @override - String get errorDetailsLabel => '詳細資料'; + String get deepLinkVersion => '版本'; @override - String get retryButton => '重試'; + String get deepLinkPublisher => '發佈者'; @override - String get closeButton => '關閉'; + String get deepLinkCategory => '分類'; @override - String get reportBugButton => '回報問題'; + String get deepLinkRequiresCore => '需要核心版本'; @override - String get clearQueue => '清除佇列'; + String get deepLinkVerified => '安裝前會以商店公佈的 SHA-256 驗證下載檔案。'; @override - String get removeFile => '移除'; + String get deepLinkNotFoundTitle => '找不到外掛'; @override - String get openOutputFolder => '開啟輸出資料夾'; + String deepLinkNotFoundBody(String id) { + return '商店目錄中找不到識別碼為「$id」的外掛。'; + } @override - String get patcherTitle => 'ROM 修補器'; + String get studioTitle => '視覺化 .orplug 製作工作室'; @override - String get patcherRomFile => 'ROM 檔案'; + String get studioIntro => '建立新外掛,或開啟現有的專案資料夾。'; @override - String get patcherPatchFile => '修補檔案'; + String get studioNew => '新增'; @override - String get patcherOutputFile => '輸出檔案'; + String get studioOpen => '開啟'; @override - String get patcherSameFolder => '與 ROM 相同資料夾'; + String get studioRescan => '重新掃描專案'; @override - String get patcherIgnoreChecksum => '忽略總和檢查錯誤'; + String get studioIdentity => '基本資料'; @override - String get patcherApplyButton => '套用修補'; + String get studioPluginId => '外掛識別碼'; @override - String get patcherSuccess => '修補成功!'; + String get studioDisplayName => '顯示名稱'; @override - String get patcherFormat => '格式'; + String get studioVersion => '版本(SemVer)'; @override - String get patcherChecksumPassed => '通過'; + String get studioMinCore => '最低核心版本'; @override - String get patcherChecksumSkipped => '略過'; + String get studioCategory => '分類'; @override - String get patcherDropHint => '將 ROM 與修補檔案拖曳至此'; + String get studioPublisher => '發佈者'; @override - String get toolsTitle => '工具'; + String get studioPublisherId => '發佈者識別碼'; @override - String get compressorTitle => 'ROM 壓縮器'; + String get studioPublisherName => '發佈者名稱'; @override - String get compressorAddFiles => '新增檔案'; + String get studioVerified => '已驗證'; @override - String get compressorAddFolder => '新增資料夾'; + String get studioVerifiedTip => '已驗證的發佈者會在商店顯示藍色勾選標記。'; @override - String get compressorOutputFormat => '輸出格式'; + String get studioDescriptionRoutes => '說明與轉換路徑'; @override - String get compressorLevel => '壓縮等級'; + String get studioDescription => '說明'; @override - String get compressorLevelFast => '快速'; + String get studioRouteHint => '新增轉換路徑(例如 ISO -> WUA)'; @override - String get compressorLevelNormal => '標準'; + String get studioNoRoutes => '尚未新增任何轉換路徑。'; @override - String get compressorLevelUltra => '極致'; + String get studioBinaries => '執行檔'; @override - String get compressorDeleteSource => '完成後刪除來源'; + String get studioBinariesHelp => '每個平台附加一個執行檔。儲存或建置時會自動計算 SHA-256。'; @override - String get compressorSameFolder => '與來源相同資料夾'; + String get studioNotSet => '未設定'; @override - String compressorButton(int count) { - return '壓縮($count 個檔案)'; - } + String get studioReplace => '替換'; @override - String get compressorSkipped => '略過(已壓縮)'; + String get studioExecutionArgs => '執行參數'; @override - String get m3uTitle => 'M3U 產生器'; + String get studioPlaceholders => + '預留欄位:bin(執行檔)、in(輸入)、out(輸出)、outdir(輸出目錄)、cue(cue 檔)'; @override - String get m3uDropHint => '將光碟檔案拖曳至此'; + String get studioArgsTemplate => '參數範本'; @override - String get m3uOutputLabel => '輸出資料夾'; + String get studioBuild => '建置'; @override - String get m3uButton => '產生 M3U'; + String get studioSaveManifest => '儲存資訊清單'; @override - String m3uSuccess(String filename) { - return '已建立:$filename'; + String get studioValidate => '驗證'; + + @override + String get studioBuildPackage => '建置 .orplug'; + + @override + String studioLastBuild(String path, String sha) { + return '上次建置:$path · sha256 $sha'; } @override - String get cueGeneratorTitle => 'CUE 產生器'; + String get studioCopyMarketplace => '複製市集 JSON'; @override - String get cueGeneratorBinFile => 'BIN 檔案'; + String get studioMarketplaceCopied => '已複製市集 JSON'; @override - String get cueGeneratorDetectedMode => '偵測模式'; + String get studioManifestValid => '資訊清單有效'; @override - String get cueGeneratorButton => '產生 CUE'; + String get studioValidationIssues => '驗證問題'; @override - String cueGeneratorSuccess(String filename) { - return '已建立:$filename'; - } + String get studioBuiltTitle => '已建置 .orplug'; @override - String get binMergerTitle => 'BIN 合併器'; + String get studioArchive => '壓縮包'; @override - String get binMergerCueFile => 'CUE 檔案(多音軌)'; + String get studioSize => '大小'; @override - String binMergerDetected(int count) { - return '偵測到:$count 個 BIN 檔案'; + String studioSizeBytes(int bytes) { + return '$bytes 位元組'; } @override - String get binMergerButton => '合併 BIN'; + String get studioMarketplaceEntry => '市集項目(貼到商店目錄):'; @override - String binMergerSuccess(String filename) { - return '已合併:$filename'; - } + String get studioCopyJson => '複製 JSON'; @override - String get headerRemoverTitle => '檔頭移除器'; + String get studioNewProjectTitle => '選擇外掛的建立位置'; @override - String get headerRemoverSystem => '系統'; + String get studioOpenProjectTitle => '選擇外掛專案資料夾'; @override - String get headerRemoverFound => '找到檔頭'; + String get studioDefaultName => '我的工具'; @override - String get headerRemoverNotFound => '找不到檔頭'; + String get themeEditorTitle => '主題編輯器'; @override - String get headerRemoverConfidence => '信心度'; + String get themeCustomSkin => '自訂外觀'; @override - String get headerRemoverBackup => '保留備份(.bak)'; + String get themeCustomTheme => '自訂主題'; @override - String get headerRemoverButton => '移除檔頭'; + String get themeThemeName => '主題名稱'; @override - String headerRemoverSuccess(String filename) { - return '乾淨的 ROM:$filename'; + String get themePickWallpaper => '選擇桌布(GIF、PNG、JPG 或 WebP)'; + + @override + String get themePickDropzone => '選擇拖放區插圖(GIF 或 PNG)'; + + @override + String get themePickFont => '選擇介面字型(TTF 或 OTF)'; + + @override + String get themeImportSkinBundle => '匯入 .orskin 外觀包'; + + @override + String get themeExportSkinBundle => '匯出 .orskin 外觀包'; + + @override + String get themeImportShort => '匯入 .orskin'; + + @override + String get themeExportShort => '匯出 .orskin'; + + @override + String themeImportFailed(String error) { + return '匯入失敗:$error'; } @override - String get headerRemoverNoHeader => '未偵測到檔頭。'; + String themeExportFailed(String error) { + return '匯出失敗:$error'; + } @override - String get dreamcastTitle => 'Dreamcast'; + String themeImported(String name) { + return '已匯入外觀「$name」'; + } @override - String get dreamcastDcpTab => '套用 DCP'; + String themeExported(String path) { + return '已匯出 $path'; + } @override - String get dreamcastIpbinTab => 'IP.BIN 編輯器'; + String get themePickColor => '選擇顏色'; @override - String get dreamcastGdiTab => 'GDI 資訊'; + String get themeHue => '色相'; @override - String get dreamcastDiscDir => '光碟目錄'; + String get themeSaturation => '飽和度'; @override - String get dreamcastDcpFile => 'DCP 修補檔案'; + String get themeValue => '明度'; @override - String get dreamcastOutputDir => '輸出目錄'; + String get themeColors => '顏色'; @override - String get dreamcastApplyButton => '套用 DCP 修補'; + String get themeBackground => '背景'; @override - String get dreamcastApplySuccess => 'DCP 修補成功套用!'; + String get themeSurface => '表面色'; @override - String get dreamcastIpbinFile => 'IP.BIN 或 GDI 檔案'; + String get themeAccent => '強調色'; @override - String get dreamcastIpbinLoad => '載入'; + String get themeTextPrimary => '主要文字'; @override - String get dreamcastIpbinSave => '儲存變更'; + String get themeTextSecondary => '次要文字'; @override - String get dreamcastIpbinTitle => '遊戲名稱'; + String get themeSidebarBg => '側邊欄背景'; @override - String get dreamcastIpbinProductNumber => '產品編號'; + String get themeCardBg => '卡片背景'; @override - String get dreamcastIpbinVersion => '版本'; + String get themeTerminalBg => '終端機背景'; @override - String get dreamcastIpbinDate => '發售日期'; + String get themeTerminalText => '終端機文字'; @override - String get dreamcastIpbinRegion => '區域'; + String get themeGeometry => '外觀幾何與桌布'; @override - String get dreamcastIpbinRegionJapan => '日本'; + String get themeCornerRadius => '圓角半徑'; @override - String get dreamcastIpbinRegionUSA => '美國'; + String get themeWallpaperOpacity => '桌布不透明度'; @override - String get dreamcastIpbinRegionEurope => '歐洲'; + String get themeWallpaperBlur => '桌布模糊'; @override - String get dreamcastIpbinRegionFree => '全區'; + String get themeChooseWallpaper => '選擇桌布'; @override - String get dreamcastIpbinVga => '啟用 VGA'; + String get themeChooseDropzone => '選擇拖放區'; @override - String get dreamcastIpbinSaveSuccess => 'IP.BIN 已成功儲存!'; + String get themeChooseFont => '選擇字型'; @override - String get dreamcastGdiFile => 'GDI 檔案'; + String get themeSidebarTabs => '側邊欄分頁'; @override - String get dreamcastGdiLoad => '載入 GDI'; + String get themeSidebarTabsHelp => '取消勾選即可從側邊欄與導覽中隱藏。'; @override - String get dreamcastGdiTracks => '軌道列表'; + String get themeSaveTheme => '儲存主題'; @override - String get dreamcastGdiTrackNum => '軌道'; + String get themeLivePreview => '即時預覽'; @override - String get dreamcastGdiTrackLba => 'LBA'; + String get settingsLanguage => '語言'; @override - String get dreamcastGdiTrackType => '類型'; + String get settingsAudioCodec => 'CD 音訊編碼(CHD)'; @override - String get dreamcastGdiTrackSize => '磁區大小'; + String get settingsCodecFlac => '無損(FLAC)-建議使用'; @override - String get dreamcastGdiTrackFile => '檔案'; + String get settingsCodecVorbis => '最大壓縮(Vorbis)'; @override - String get dreamcastGdiAudio => '音訊'; + String get settingsVerifySub => '對新建立的 CHD 檔案執行 chdman verify'; @override - String get dreamcastGdiData => '資料'; + String get settingsSameFolder => '與來源檔案相同的資料夾'; @override - String get dreamcastSameFolder => '與來源相同資料夾'; + String get settingsSelectDir => '選擇資料夾…'; @override - String get dreamcastBrowse => '瀏覽'; + String get settingsThemeSystem => '跟隨系統'; @override - String get onlineFeaturesSection => '線上功能'; + String get settingsThemeLight => '淺色'; @override - String get onlineFeaturesSub => '所有功能均為選擇性啟用。未經您同意,不會收集任何資料。'; + String get settingsThemeDark => '深色'; @override - String get autoUpdateTitle => '自動檢查更新'; + String get settingsUpdateError => '檢查更新時發生錯誤'; @override - String get autoUpdateSub => '啟動時在 GitHub 上檢查新版本'; + String get settingsRaSaved => '已儲存 RetroAchievements 認證'; @override - String get autoUpdateCheckNow => '立即檢查'; + String get settingsHasheous => 'Hasheous'; @override - String autoUpdateUpToDate(String version) { - return '已是最新版本($version)'; + String get settingsHasheousEnable => '啟用 Hasheous 雜湊查詢'; + + @override + String get settingsHasheousSub => + '將 ROM 的 SHA-1 傳送至 hasheous.org 來辨識遊戲。預設關閉,只會傳送檔案雜湊。'; + + @override + String get batchTitle => '批次處理完成!🎉'; + + @override + String batchSaved(String amount) { + return '你剛剛節省了 $amount'; } @override - String autoUpdateAvailable(String version) { - return '有可用更新:v$version'; + String batchSavedDetail(String percent, int count) { + return '(縮減 $percent)共 $count 個遊戲!'; } @override - String get autoUpdateDownload => '下載'; + String batchAllProcessed(int count) { + return '全部 $count 個檔案處理完成!'; + } @override - String get raSection => 'RetroAchievements'; + String get batchAwesome => '太棒了!'; @override - String get raEnabledTitle => '啟用 RetroAchievements 雜湊檢查'; + String get hasheousUnknown => '未知標題'; @override - String get raEnabledSub => '載入前檢查您的 ROM 是否受支援'; + String hasheousMore(int count) { + return '另有 $count 個來源'; + } @override - String get raUsername => '使用者名稱'; + String hasheousVerifiedIn(String source) { + return '已在 $source 驗證'; + } @override - String get raApiKey => 'API 金鑰'; + String get hasheousNoMatch => '在保存資料庫中找不到相符項目。'; @override - String get raApiKeyHint => '於 retroachievements.org/settings 取得您的金鑰'; + String get toolsTabCue => 'CUE 編輯器'; @override - String get raHashChecking => '檢查雜湊中...'; + String get toolsTabRenamer => 'ROM 重新命名'; @override - String raHashFound(String title, int count) { - return '✅ 已支援 — $title($count 個成就)'; - } + String get toolsTab1g1r => '1G1R 整理器'; @override - String get raHashNotFound => '⚠️ 在 RetroAchievements 上找不到'; + String get toolsTabHasher => 'ROM 雜湊計算'; @override - String raHashError(String msg) { - return '錯誤:$msg'; - } + String get toolsWatchTitle => '監看資料夾'; @override - String get raViewGame => '在 RA 上檢視'; + String get toolsHasherIntro => '以單次串流計算 CRC32、MD5、SHA-1 與 SHA-256。'; @override - String get raSaveCredentials => '儲存'; + String get toolsHasherDrop => '將 ROM 拖放到這裡,或點擊瀏覽'; + + @override + String get toolsChooseFile => '選擇檔案'; + + @override + String get toolsComputeHashes => '計算雜湊'; + + @override + String get toolsResults => '結果'; + + @override + String get toolsCopyAll => '全部複製'; + + @override + String get toolsFileSize => '檔案大小'; + + @override + String get toolsIdentifying => '辨識中…'; + + @override + String get toolsIdentifyGame => '辨識遊戲(Hasheous)'; + + @override + String get toolsHasheousHint => + '會將檔案的 SHA-1 傳送至 hasheous.org。請在「設定 → 線上功能」中啟用。'; + + @override + String get toolsWatchStopped => '已停止監看。'; + + @override + String get toolsWatchNeedFolders => '請先選擇輸入與輸出資料夾。'; + + @override + String get toolsChooseFolder => '選擇資料夾…'; + + @override + String get toolsWatchIntro => '自動轉換進入資料夾的 ROM。'; + + @override + String get toolsInputFolder => '輸入資料夾'; + + @override + String get toolsOutputFolder => '輸出資料夾'; + + @override + String get toolsTargetFormat => '目標格式'; + + @override + String get toolsDeleteSource => '轉換後刪除來源檔'; + + @override + String get toolsStopWatching => '停止監看'; + + @override + String get toolsStartWatching => '開始監看'; + + @override + String get toolsActive => '運作中'; + + @override + String get toolsLiveLog => '即時記錄'; + + @override + String get toolsNoActivity => '尚無活動。'; + + @override + String themeSaved(String name) { + return '已儲存主題「$name」!'; + } } diff --git a/gui/lib/l10n/app_localizations_zh_TW.dart b/gui/lib/l10n/app_localizations_zh_TW.dart deleted file mode 100644 index 217dba4..0000000 --- a/gui/lib/l10n/app_localizations_zh_TW.dart +++ /dev/null @@ -1,467 +0,0 @@ -// ignore: unused_import -import 'package:intl/intl.dart' as intl; -import 'app_localizations.dart'; - -// ignore_for_file: type=lint - -/// The translations for Chinese, as used in Taiwan (`zh_TW`). -class AppLocalizationsZhTw extends AppLocalizations { - AppLocalizationsZhTw([String locale = 'zh_TW']) : super(locale); - - @override - String get appTitle => 'OpenROM'; - - @override - String get appSubtitle => '萬用 ROM 轉換工具'; - - @override - String get convertButton => '轉換'; - - @override - String convertButtonWithCount(int count) { - return '轉換($count 個檔案)'; - } - - @override - String get dropZoneHint => '將 ROM 檔案拖曳至此'; - - @override - String get dropZoneSubHint => '或點擊瀏覽'; - - @override - String get settingsTitle => '轉換設定'; - - @override - String get outputFormat => '輸出格式'; - - @override - String get compressionLevel => '壓縮等級'; - - @override - String get compressionNormal => '標準'; - - @override - String get compressionHigh => '高'; - - @override - String get compressionMax => '最高'; - - @override - String get postProcessing => '後續處理'; - - @override - String get verifyAfterConversion => '轉換後驗證'; - - @override - String get outputDestination => '輸出位置'; - - @override - String get browse => '瀏覽'; - - @override - String get statusWaiting => '等待中...'; - - @override - String get statusConverting => '轉換中...'; - - @override - String get statusDone => '完成'; - - @override - String get statusFailed => '失敗'; - - @override - String get aboutTitle => '關於 OpenROM'; - - @override - String get settingsScreen => '設定'; - - @override - String get aboutScreen => '關於'; - - @override - String get themeScreen => '主題'; - - @override - String get errorCoreNotFound => '應用程式資料夾中缺少 openrom-core。'; - - @override - String get errorUnsupportedFormat => '此檔案格式無法使用選擇的輸出格式進行轉換。'; - - @override - String get errorDiskSpace => '可用空間不足以完成此次轉換。'; - - @override - String get errorToolFailed => '轉換工具(chdman/maxcso)未預期結束。'; - - @override - String get errorConversionFailed => '轉換在完成前停止。'; - - @override - String get errorFileNotFound => '輸入檔案已被移動或刪除。'; - - @override - String get errorOutputDirNotFound => '選擇的輸出資料夾已不存在。'; - - @override - String get errorPermissionDenied => 'OpenROM 無法寫入輸出資料夾。'; - - @override - String get errorCorruptedFile => '檔案似乎已損毀或為 0 bytes。'; - - @override - String get errorUnknown => '發生錯誤。這可能是 Bug。'; - - @override - String get errorDetailsLabel => '詳細資料'; - - @override - String get retryButton => '重試'; - - @override - String get closeButton => '關閉'; - - @override - String get reportBugButton => '回報問題'; - - @override - String get clearQueue => '清除佇列'; - - @override - String get removeFile => '移除'; - - @override - String get openOutputFolder => '開啟輸出資料夾'; - - @override - String get patcherTitle => 'ROM 修補器'; - - @override - String get patcherRomFile => 'ROM 檔案'; - - @override - String get patcherPatchFile => '修補檔案'; - - @override - String get patcherOutputFile => '輸出檔案'; - - @override - String get patcherSameFolder => '與 ROM 相同資料夾'; - - @override - String get patcherIgnoreChecksum => '忽略總和檢查錯誤'; - - @override - String get patcherApplyButton => '套用修補'; - - @override - String get patcherSuccess => '修補成功!'; - - @override - String get patcherFormat => '格式'; - - @override - String get patcherChecksumPassed => '通過'; - - @override - String get patcherChecksumSkipped => '略過'; - - @override - String get patcherDropHint => '將 ROM 與修補檔案拖曳至此'; - - @override - String get toolsTitle => '工具'; - - @override - String get compressorTitle => 'ROM 壓縮器'; - - @override - String get compressorAddFiles => '新增檔案'; - - @override - String get compressorAddFolder => '新增資料夾'; - - @override - String get compressorOutputFormat => '輸出格式'; - - @override - String get compressorLevel => '壓縮等級'; - - @override - String get compressorLevelFast => '快速'; - - @override - String get compressorLevelNormal => '標準'; - - @override - String get compressorLevelUltra => '極致'; - - @override - String get compressorDeleteSource => '完成後刪除來源'; - - @override - String get compressorSameFolder => '與來源相同資料夾'; - - @override - String compressorButton(int count) { - return '壓縮($count 個檔案)'; - } - - @override - String get compressorSkipped => '略過(已壓縮)'; - - @override - String get m3uTitle => 'M3U 產生器'; - - @override - String get m3uDropHint => '將光碟檔案拖曳至此'; - - @override - String get m3uOutputLabel => '輸出資料夾'; - - @override - String get m3uButton => '產生 M3U'; - - @override - String m3uSuccess(String filename) { - return '已建立:$filename'; - } - - @override - String get cueGeneratorTitle => 'CUE 產生器'; - - @override - String get cueGeneratorBinFile => 'BIN 檔案'; - - @override - String get cueGeneratorDetectedMode => '偵測模式'; - - @override - String get cueGeneratorButton => '產生 CUE'; - - @override - String cueGeneratorSuccess(String filename) { - return '已建立:$filename'; - } - - @override - String get binMergerTitle => 'BIN 合併器'; - - @override - String get binMergerCueFile => 'CUE 檔案(多音軌)'; - - @override - String binMergerDetected(int count) { - return '偵測到:$count 個 BIN 檔案'; - } - - @override - String get binMergerButton => '合併 BIN'; - - @override - String binMergerSuccess(String filename) { - return '已合併:$filename'; - } - - @override - String get headerRemoverTitle => '檔頭移除器'; - - @override - String get headerRemoverSystem => '系統'; - - @override - String get headerRemoverFound => '找到檔頭'; - - @override - String get headerRemoverNotFound => '找不到檔頭'; - - @override - String get headerRemoverConfidence => '信心度'; - - @override - String get headerRemoverBackup => '保留備份(.bak)'; - - @override - String get headerRemoverButton => '移除檔頭'; - - @override - String headerRemoverSuccess(String filename) { - return '乾淨的 ROM:$filename'; - } - - @override - String get headerRemoverNoHeader => '未偵測到檔頭。'; - - @override - String get dreamcastTitle => 'Dreamcast'; - - @override - String get dreamcastDcpTab => '套用 DCP'; - - @override - String get dreamcastIpbinTab => 'IP.BIN 編輯器'; - - @override - String get dreamcastGdiTab => 'GDI 資訊'; - - @override - String get dreamcastDiscDir => '光碟目錄'; - - @override - String get dreamcastDcpFile => 'DCP 修補檔案'; - - @override - String get dreamcastOutputDir => '輸出目錄'; - - @override - String get dreamcastApplyButton => '套用 DCP 修補'; - - @override - String get dreamcastApplySuccess => 'DCP 修補成功套用!'; - - @override - String get dreamcastIpbinFile => 'IP.BIN 或 GDI 檔案'; - - @override - String get dreamcastIpbinLoad => '載入'; - - @override - String get dreamcastIpbinSave => '儲存變更'; - - @override - String get dreamcastIpbinTitle => '遊戲名稱'; - - @override - String get dreamcastIpbinProductNumber => '產品編號'; - - @override - String get dreamcastIpbinVersion => '版本'; - - @override - String get dreamcastIpbinDate => '發售日期'; - - @override - String get dreamcastIpbinRegion => '區域'; - - @override - String get dreamcastIpbinRegionJapan => '日本'; - - @override - String get dreamcastIpbinRegionUSA => '美國'; - - @override - String get dreamcastIpbinRegionEurope => '歐洲'; - - @override - String get dreamcastIpbinRegionFree => '全區'; - - @override - String get dreamcastIpbinVga => '啟用 VGA'; - - @override - String get dreamcastIpbinSaveSuccess => 'IP.BIN 已成功儲存!'; - - @override - String get dreamcastGdiFile => 'GDI 檔案'; - - @override - String get dreamcastGdiLoad => '載入 GDI'; - - @override - String get dreamcastGdiTracks => '軌道列表'; - - @override - String get dreamcastGdiTrackNum => '軌道'; - - @override - String get dreamcastGdiTrackLba => 'LBA'; - - @override - String get dreamcastGdiTrackType => '類型'; - - @override - String get dreamcastGdiTrackSize => '磁區大小'; - - @override - String get dreamcastGdiTrackFile => '檔案'; - - @override - String get dreamcastGdiAudio => '音訊'; - - @override - String get dreamcastGdiData => '資料'; - - @override - String get dreamcastSameFolder => '與來源相同資料夾'; - - @override - String get dreamcastBrowse => '瀏覽'; - - @override - String get onlineFeaturesSection => '線上功能'; - - @override - String get onlineFeaturesSub => '所有功能均為選擇性啟用。未經您同意,不會收集任何資料。'; - - @override - String get autoUpdateTitle => '自動檢查更新'; - - @override - String get autoUpdateSub => '啟動時在 GitHub 上檢查新版本'; - - @override - String get autoUpdateCheckNow => '立即檢查'; - - @override - String autoUpdateUpToDate(String version) { - return '已是最新版本($version)'; - } - - @override - String autoUpdateAvailable(String version) { - return '有可用更新:v$version'; - } - - @override - String get autoUpdateDownload => '下載'; - - @override - String get raSection => 'RetroAchievements'; - - @override - String get raEnabledTitle => '啟用 RetroAchievements 雜湊檢查'; - - @override - String get raEnabledSub => '載入前檢查您的 ROM 是否受支援'; - - @override - String get raUsername => '使用者名稱'; - - @override - String get raApiKey => 'API 金鑰'; - - @override - String get raApiKeyHint => '於 retroachievements.org/settings 取得您的金鑰'; - - @override - String get raHashChecking => '檢查雜湊中...'; - - @override - String raHashFound(String title, int count) { - return '✅ 已支援 — $title($count 個成就)'; - } - - @override - String get raHashNotFound => '⚠️ 在 RetroAchievements 上找不到'; - - @override - String raHashError(String msg) { - return '錯誤:$msg'; - } - - @override - String get raViewGame => '在 RA 上檢視'; - - @override - String get raSaveCredentials => '儲存'; -} diff --git a/gui/lib/l10n/app_zh.arb b/gui/lib/l10n/app_zh.arb index e72e6bf..ef3c2f0 100644 --- a/gui/lib/l10n/app_zh.arb +++ b/gui/lib/l10n/app_zh.arb @@ -224,5 +224,201 @@ } }, "raViewGame": "在 RA 上查看", - "raSaveCredentials": "保存" + "raSaveCredentials": "保存", + "navPatch": "应用补丁", + "navTools": "工具", + "navPlugins": "插件", + "mediaTypeTitle": "无法识别媒体类型", + "mediaTypeBody": "无法识别媒体类型:这个游戏是 CD 还是 DVD?\n\n文件:{file}", + "mediaCd": "CD", + "mediaDvd": "DVD", + "commonCancel": "取消", + "commonOk": "确定", + "commonAdd": "添加", + "commonDone": "完成", + "commonApply": "应用", + "commonRemove": "移除", + "commonInstall": "安装", + "pluginsTabInstalled": "已安装插件 📦", + "pluginsTabStore": "插件商店 🌐🛒", + "pluginsTabStudio": "创建 / 工作室 🛠️", + "pluginsDropTitle": "将 .orplug 压缩包拖放到这里", + "pluginsDropSubtitle": "安装自定义 ROM 工具、扩展和格式", + "pluginsBrowse": "浏览 .orplug 文件", + "pluginsInstalledHeading": "已安装插件({count})", + "pluginsEmptyTitle": "尚未安装任何插件", + "pluginsEmptyBody": "将 .orplug 包拖放到上方,或到插件商店浏览社区插件。", + "pluginsUninstall": "卸载", + "pluginsUninstallTitle": "卸载插件", + "pluginsUninstallBody": "确定要卸载“{name}”({id})吗?", + "pluginsInstallFailed": "安装失败", + "pluginsAlreadyInstalled": "{name} 已经安装过了", + "pluginsInstalledToast": "已安装 {name}", + "storeTitle": "插件市集", + "storeRefresh": "刷新目录", + "storeSubtitleLive": "由商店实时提供的官方与社区插件。", + "storeSubtitleCached": "当前显示上次缓存的目录,重新连接后可更新。", + "storeBadgeLive": "在线", + "storeBadgeOffline": "离线", + "storeSearchHint": "搜索插件、发布者、转换路径…", + "storeAll": "全部", + "storeOfflineTitle": "ROMéo 离线了", + "storeEmptyTitle": "还没有任何插件上架", + "storeNoMatchTitle": "没有符合筛选条件的插件", + "storeOfflineBody": "无法连接到商店,且本地没有缓存。请检查网络连接后刷新。", + "storeEmptyBody": "敬请期待,新插件会陆续上架。", + "storeNoMatchBody": "换个关键词或分类试试。", + "storeVerifiedPublisher": "已验证发布者", + "storeInstalled": "已安装", + "storeByPublisher": "作者:{name}", + "storeCoreMin": "核心 ≥ {version}", + "deepLinkTitle": "要从链接安装插件吗?", + "deepLinkBody": "有 openrom:// 链接请求安装插件,请先确认内容再继续。", + "deepLinkPlugin": "插件", + "deepLinkId": "标识符", + "deepLinkVersion": "版本", + "deepLinkPublisher": "发布者", + "deepLinkCategory": "分类", + "deepLinkRequiresCore": "需要核心版本", + "deepLinkVerified": "安装前会使用商店公布的 SHA-256 校验下载文件。", + "deepLinkNotFoundTitle": "找不到插件", + "deepLinkNotFoundBody": "商店目录中找不到标识符为“{id}”的插件。", + "studioTitle": "可视化 .orplug 制作工作室", + "studioIntro": "创建新插件,或打开现有的项目文件夹。", + "studioNew": "新建", + "studioOpen": "打开", + "studioRescan": "重新扫描项目", + "studioIdentity": "基本信息", + "studioPluginId": "插件标识符", + "studioDisplayName": "显示名称", + "studioVersion": "版本(SemVer)", + "studioMinCore": "最低核心版本", + "studioCategory": "分类", + "studioPublisher": "发布者", + "studioPublisherId": "发布者标识符", + "studioPublisherName": "发布者名称", + "studioVerified": "已验证", + "studioVerifiedTip": "已验证的发布者会在商店显示蓝色勾选标记。", + "studioDescriptionRoutes": "说明与转换路径", + "studioDescription": "说明", + "studioRouteHint": "添加转换路径(例如 ISO -> WUA)", + "studioNoRoutes": "尚未添加任何转换路径。", + "studioBinaries": "可执行文件", + "studioBinariesHelp": "每个平台附加一个可执行文件。保存或构建时会自动计算 SHA-256。", + "studioNotSet": "未设置", + "studioReplace": "替换", + "studioExecutionArgs": "执行参数", + "studioPlaceholders": "预留字段:bin(可执行文件)、in(输入)、out(输出)、outdir(输出目录)、cue(cue 文件)", + "studioArgsTemplate": "参数模板", + "studioBuild": "构建", + "studioSaveManifest": "保存清单", + "studioValidate": "校验", + "studioBuildPackage": "构建 .orplug", + "studioLastBuild": "上次构建:{path} · sha256 {sha}", + "studioCopyMarketplace": "复制市集 JSON", + "studioMarketplaceCopied": "已复制市集 JSON", + "studioManifestValid": "清单有效", + "studioValidationIssues": "校验问题", + "studioBuiltTitle": "已构建 .orplug", + "studioArchive": "压缩包", + "studioSize": "大小", + "studioSizeBytes": "{bytes} 字节", + "studioMarketplaceEntry": "商店条目(粘贴到商店目录):", + "studioCopyJson": "复制 JSON", + "studioNewProjectTitle": "选择插件的创建位置", + "studioOpenProjectTitle": "选择插件项目文件夹", + "studioDefaultName": "我的工具", + "themeEditorTitle": "主题编辑器", + "themeCustomSkin": "自定义外观", + "themeCustomTheme": "自定义主题", + "themeThemeName": "主题名称", + "themePickWallpaper": "选择壁纸(GIF、PNG、JPG 或 WebP)", + "themePickDropzone": "选择拖放区插图(GIF 或 PNG)", + "themePickFont": "选择界面字体(TTF 或 OTF)", + "themeImportSkinBundle": "导入 .orskin 外观包", + "themeExportSkinBundle": "导出 .orskin 外观包", + "themeImportShort": "导入 .orskin", + "themeExportShort": "导出 .orskin", + "themeImportFailed": "导入失败:{error}", + "themeExportFailed": "导出失败:{error}", + "themeImported": "已导入外观“{name}”", + "themeExported": "已导出 {path}", + "themePickColor": "选择颜色", + "themeHue": "色相", + "themeSaturation": "饱和度", + "themeValue": "明度", + "themeColors": "颜色", + "themeBackground": "背景", + "themeSurface": "表面色", + "themeAccent": "强调色", + "themeTextPrimary": "主要文字", + "themeTextSecondary": "次要文字", + "themeSidebarBg": "侧边栏背景", + "themeCardBg": "卡片背景", + "themeTerminalBg": "终端背景", + "themeTerminalText": "终端文字", + "themeGeometry": "外观几何与壁纸", + "themeCornerRadius": "圆角半径", + "themeWallpaperOpacity": "壁纸不透明度", + "themeWallpaperBlur": "壁纸模糊", + "themeChooseWallpaper": "选择壁纸", + "themeChooseDropzone": "选择拖放区", + "themeChooseFont": "选择字体", + "themeSidebarTabs": "侧边栏标签页", + "themeSidebarTabsHelp": "取消勾选即可从侧边栏和导航中隐藏。", + "themeSaveTheme": "保存主题", + "themeLivePreview": "实时预览", + "settingsLanguage": "语言", + "settingsAudioCodec": "CD 音频编码(CHD)", + "settingsCodecFlac": "无损(FLAC)-推荐", + "settingsCodecVorbis": "最大压缩(Vorbis)", + "settingsVerifySub": "对新建的 CHD 文件运行 chdman verify", + "settingsSameFolder": "与源文件相同的文件夹", + "settingsSelectDir": "选择文件夹…", + "settingsThemeSystem": "跟随系统", + "settingsThemeLight": "浅色", + "settingsThemeDark": "深色", + "settingsUpdateError": "检查更新时出错", + "settingsRaSaved": "已保存 RetroAchievements 凭据", + "settingsHasheous": "Hasheous", + "settingsHasheousEnable": "启用 Hasheous 哈希查询", + "settingsHasheousSub": "将 ROM 的 SHA-1 发送至 hasheous.org 来识别游戏。默认关闭,仅发送文件哈希。", + "batchTitle": "批量处理完成!🎉", + "batchSaved": "你刚刚节省了 {amount}", + "batchSavedDetail": "(缩减 {percent})共 {count} 个游戏!", + "batchAllProcessed": "全部 {count} 个文件处理完成!", + "batchAwesome": "太棒了!", + "hasheousUnknown": "未知标题", + "hasheousMore": "另有 {count} 个来源", + "hasheousVerifiedIn": "已在 {source} 验证", + "hasheousNoMatch": "在保存数据库中找不到匹配项。", + "toolsTabCue": "CUE 编辑器", + "toolsTabRenamer": "ROM 重命名", + "toolsTab1g1r": "1G1R 清理器", + "toolsTabHasher": "ROM 哈希计算", + "toolsWatchTitle": "监视文件夹", + "toolsHasherIntro": "单次流式计算 CRC32、MD5、SHA-1 和 SHA-256。", + "toolsHasherDrop": "将 ROM 拖放到这里,或点击浏览", + "toolsChooseFile": "选择文件", + "toolsComputeHashes": "计算哈希", + "toolsResults": "结果", + "toolsCopyAll": "全部复制", + "toolsFileSize": "文件大小", + "toolsIdentifying": "识别中…", + "toolsIdentifyGame": "识别游戏(Hasheous)", + "toolsHasheousHint": "会将文件的 SHA-1 发送至 hasheous.org。请在“设置 → 在线功能”中启用。", + "toolsWatchStopped": "已停止监视。", + "toolsWatchNeedFolders": "请先选择输入和输出文件夹。", + "toolsChooseFolder": "选择文件夹…", + "toolsWatchIntro": "自动转换进入文件夹的 ROM。", + "toolsInputFolder": "输入文件夹", + "toolsOutputFolder": "输出文件夹", + "toolsTargetFormat": "目标格式", + "toolsDeleteSource": "转换后删除源文件", + "toolsStopWatching": "停止监视", + "toolsStartWatching": "开始监视", + "toolsActive": "运行中", + "toolsLiveLog": "实时日志", + "toolsNoActivity": "尚无活动。", + "themeSaved": "已保存主题“{name}”!" } diff --git a/gui/lib/l10n/app_zh_TW.arb b/gui/lib/l10n/app_zh_TW.arb index e1dd52c..377d6d3 100644 --- a/gui/lib/l10n/app_zh_TW.arb +++ b/gui/lib/l10n/app_zh_TW.arb @@ -224,5 +224,201 @@ } }, "raViewGame": "在 RA 上檢視", - "raSaveCredentials": "儲存" + "raSaveCredentials": "儲存", + "navPatch": "套用修補", + "navTools": "工具", + "navPlugins": "外掛", + "mediaTypeTitle": "無法辨識媒體類型", + "mediaTypeBody": "無法辨識媒體類型:這個遊戲是 CD 還是 DVD?\n\n檔案:{file}", + "mediaCd": "CD", + "mediaDvd": "DVD", + "commonCancel": "取消", + "commonOk": "確定", + "commonAdd": "新增", + "commonDone": "完成", + "commonApply": "套用", + "commonRemove": "移除", + "commonInstall": "安裝", + "pluginsTabInstalled": "已安裝外掛 📦", + "pluginsTabStore": "外掛商店 🌐🛒", + "pluginsTabStudio": "建立 / 工作室 🛠️", + "pluginsDropTitle": "將 .orplug 壓縮包拖放到這裡", + "pluginsDropSubtitle": "安裝自訂 ROM 工具、擴充功能與格式", + "pluginsBrowse": "瀏覽 .orplug 檔案", + "pluginsInstalledHeading": "已安裝外掛({count})", + "pluginsEmptyTitle": "尚未安裝任何外掛", + "pluginsEmptyBody": "將 .orplug 套件拖放到上方,或到外掛商店探索社群外掛。", + "pluginsUninstall": "解除安裝", + "pluginsUninstallTitle": "解除安裝外掛", + "pluginsUninstallBody": "確定要解除安裝「{name}」({id})嗎?", + "pluginsInstallFailed": "安裝失敗", + "pluginsAlreadyInstalled": "{name} 已經安裝過了", + "pluginsInstalledToast": "已安裝 {name}", + "storeTitle": "外掛市集", + "storeRefresh": "重新整理目錄", + "storeSubtitleLive": "由商店即時提供的官方與社群外掛。", + "storeSubtitleCached": "目前顯示上次快取的目錄,重新連線後可更新。", + "storeBadgeLive": "線上", + "storeBadgeOffline": "離線", + "storeSearchHint": "搜尋外掛、發佈者、轉換路徑…", + "storeAll": "全部", + "storeOfflineTitle": "ROMéo 離線了", + "storeEmptyTitle": "還沒有任何外掛上架", + "storeNoMatchTitle": "沒有符合條件的外掛", + "storeOfflineBody": "無法連線到商店,而且本機沒有快取。請檢查網路連線後重新整理。", + "storeEmptyBody": "敬請期待,新外掛會陸續上架。", + "storeNoMatchBody": "換個關鍵字或分類試試看。", + "storeVerifiedPublisher": "已驗證發佈者", + "storeInstalled": "已安裝", + "storeByPublisher": "作者:{name}", + "storeCoreMin": "核心 ≥ {version}", + "deepLinkTitle": "要從連結安裝外掛嗎?", + "deepLinkBody": "有 openrom:// 連結要求安裝外掛,請先確認內容再繼續。", + "deepLinkPlugin": "外掛", + "deepLinkId": "識別碼", + "deepLinkVersion": "版本", + "deepLinkPublisher": "發佈者", + "deepLinkCategory": "分類", + "deepLinkRequiresCore": "需要核心版本", + "deepLinkVerified": "安裝前會以商店公佈的 SHA-256 驗證下載檔案。", + "deepLinkNotFoundTitle": "找不到外掛", + "deepLinkNotFoundBody": "商店目錄中找不到識別碼為「{id}」的外掛。", + "studioTitle": "視覺化 .orplug 製作工作室", + "studioIntro": "建立新外掛,或開啟現有的專案資料夾。", + "studioNew": "新增", + "studioOpen": "開啟", + "studioRescan": "重新掃描專案", + "studioIdentity": "基本資料", + "studioPluginId": "外掛識別碼", + "studioDisplayName": "顯示名稱", + "studioVersion": "版本(SemVer)", + "studioMinCore": "最低核心版本", + "studioCategory": "分類", + "studioPublisher": "發佈者", + "studioPublisherId": "發佈者識別碼", + "studioPublisherName": "發佈者名稱", + "studioVerified": "已驗證", + "studioVerifiedTip": "已驗證的發佈者會在商店顯示藍色勾選標記。", + "studioDescriptionRoutes": "說明與轉換路徑", + "studioDescription": "說明", + "studioRouteHint": "新增轉換路徑(例如 ISO -> WUA)", + "studioNoRoutes": "尚未新增任何轉換路徑。", + "studioBinaries": "執行檔", + "studioBinariesHelp": "每個平台附加一個執行檔。儲存或建置時會自動計算 SHA-256。", + "studioNotSet": "未設定", + "studioReplace": "替換", + "studioExecutionArgs": "執行參數", + "studioPlaceholders": "預留欄位:bin(執行檔)、in(輸入)、out(輸出)、outdir(輸出目錄)、cue(cue 檔)", + "studioArgsTemplate": "參數範本", + "studioBuild": "建置", + "studioSaveManifest": "儲存資訊清單", + "studioValidate": "驗證", + "studioBuildPackage": "建置 .orplug", + "studioLastBuild": "上次建置:{path} · sha256 {sha}", + "studioCopyMarketplace": "複製市集 JSON", + "studioMarketplaceCopied": "已複製市集 JSON", + "studioManifestValid": "資訊清單有效", + "studioValidationIssues": "驗證問題", + "studioBuiltTitle": "已建置 .orplug", + "studioArchive": "壓縮包", + "studioSize": "大小", + "studioSizeBytes": "{bytes} 位元組", + "studioMarketplaceEntry": "市集項目(貼到商店目錄):", + "studioCopyJson": "複製 JSON", + "studioNewProjectTitle": "選擇外掛的建立位置", + "studioOpenProjectTitle": "選擇外掛專案資料夾", + "studioDefaultName": "我的工具", + "themeEditorTitle": "主題編輯器", + "themeCustomSkin": "自訂外觀", + "themeCustomTheme": "自訂主題", + "themeThemeName": "主題名稱", + "themePickWallpaper": "選擇桌布(GIF、PNG、JPG 或 WebP)", + "themePickDropzone": "選擇拖放區插圖(GIF 或 PNG)", + "themePickFont": "選擇介面字型(TTF 或 OTF)", + "themeImportSkinBundle": "匯入 .orskin 外觀包", + "themeExportSkinBundle": "匯出 .orskin 外觀包", + "themeImportShort": "匯入 .orskin", + "themeExportShort": "匯出 .orskin", + "themeImportFailed": "匯入失敗:{error}", + "themeExportFailed": "匯出失敗:{error}", + "themeImported": "已匯入外觀「{name}」", + "themeExported": "已匯出 {path}", + "themePickColor": "選擇顏色", + "themeHue": "色相", + "themeSaturation": "飽和度", + "themeValue": "明度", + "themeColors": "顏色", + "themeBackground": "背景", + "themeSurface": "表面色", + "themeAccent": "強調色", + "themeTextPrimary": "主要文字", + "themeTextSecondary": "次要文字", + "themeSidebarBg": "側邊欄背景", + "themeCardBg": "卡片背景", + "themeTerminalBg": "終端機背景", + "themeTerminalText": "終端機文字", + "themeGeometry": "外觀幾何與桌布", + "themeCornerRadius": "圓角半徑", + "themeWallpaperOpacity": "桌布不透明度", + "themeWallpaperBlur": "桌布模糊", + "themeChooseWallpaper": "選擇桌布", + "themeChooseDropzone": "選擇拖放區", + "themeChooseFont": "選擇字型", + "themeSidebarTabs": "側邊欄分頁", + "themeSidebarTabsHelp": "取消勾選即可從側邊欄與導覽中隱藏。", + "themeSaveTheme": "儲存主題", + "themeLivePreview": "即時預覽", + "settingsLanguage": "語言", + "settingsAudioCodec": "CD 音訊編碼(CHD)", + "settingsCodecFlac": "無損(FLAC)-建議使用", + "settingsCodecVorbis": "最大壓縮(Vorbis)", + "settingsVerifySub": "對新建立的 CHD 檔案執行 chdman verify", + "settingsSameFolder": "與來源檔案相同的資料夾", + "settingsSelectDir": "選擇資料夾…", + "settingsThemeSystem": "跟隨系統", + "settingsThemeLight": "淺色", + "settingsThemeDark": "深色", + "settingsUpdateError": "檢查更新時發生錯誤", + "settingsRaSaved": "已儲存 RetroAchievements 認證", + "settingsHasheous": "Hasheous", + "settingsHasheousEnable": "啟用 Hasheous 雜湊查詢", + "settingsHasheousSub": "將 ROM 的 SHA-1 傳送至 hasheous.org 來辨識遊戲。預設關閉,只會傳送檔案雜湊。", + "batchTitle": "批次處理完成!🎉", + "batchSaved": "你剛剛節省了 {amount}", + "batchSavedDetail": "(縮減 {percent})共 {count} 個遊戲!", + "batchAllProcessed": "全部 {count} 個檔案處理完成!", + "batchAwesome": "太棒了!", + "hasheousUnknown": "未知標題", + "hasheousMore": "另有 {count} 個來源", + "hasheousVerifiedIn": "已在 {source} 驗證", + "hasheousNoMatch": "在保存資料庫中找不到相符項目。", + "toolsTabCue": "CUE 編輯器", + "toolsTabRenamer": "ROM 重新命名", + "toolsTab1g1r": "1G1R 整理器", + "toolsTabHasher": "ROM 雜湊計算", + "toolsWatchTitle": "監看資料夾", + "toolsHasherIntro": "以單次串流計算 CRC32、MD5、SHA-1 與 SHA-256。", + "toolsHasherDrop": "將 ROM 拖放到這裡,或點擊瀏覽", + "toolsChooseFile": "選擇檔案", + "toolsComputeHashes": "計算雜湊", + "toolsResults": "結果", + "toolsCopyAll": "全部複製", + "toolsFileSize": "檔案大小", + "toolsIdentifying": "辨識中…", + "toolsIdentifyGame": "辨識遊戲(Hasheous)", + "toolsHasheousHint": "會將檔案的 SHA-1 傳送至 hasheous.org。請在「設定 → 線上功能」中啟用。", + "toolsWatchStopped": "已停止監看。", + "toolsWatchNeedFolders": "請先選擇輸入與輸出資料夾。", + "toolsChooseFolder": "選擇資料夾…", + "toolsWatchIntro": "自動轉換進入資料夾的 ROM。", + "toolsInputFolder": "輸入資料夾", + "toolsOutputFolder": "輸出資料夾", + "toolsTargetFormat": "目標格式", + "toolsDeleteSource": "轉換後刪除來源檔", + "toolsStopWatching": "停止監看", + "toolsStartWatching": "開始監看", + "toolsActive": "運作中", + "toolsLiveLog": "即時記錄", + "toolsNoActivity": "尚無活動。", + "themeSaved": "已儲存主題「{name}」!" } diff --git a/gui/lib/models/batch_stats.dart b/gui/lib/models/batch_stats.dart index c98f100..a3378b5 100644 --- a/gui/lib/models/batch_stats.dart +++ b/gui/lib/models/batch_stats.dart @@ -19,9 +19,8 @@ class BatchStats { int get bytesSaved => totalOriginalBytes - totalOutputBytes; - double get savedPercentage => totalOriginalBytes <= 0 - ? 0.0 - : (bytesSaved / totalOriginalBytes) * 100.0; + double get savedPercentage => + totalOriginalBytes <= 0 ? 0.0 : (bytesSaved / totalOriginalBytes) * 100.0; /// True only when the batch genuinely shrank the data. bool get hasSavings => bytesSaved > 0; diff --git a/gui/lib/screens/plugins_screen.dart b/gui/lib/screens/plugins_screen.dart index f8033f0..7219c1b 100644 --- a/gui/lib/screens/plugins_screen.dart +++ b/gui/lib/screens/plugins_screen.dart @@ -9,6 +9,7 @@ import 'package:openrom_core/openrom_core.dart'; import '../controllers/plugin_builder_controller.dart'; import '../controllers/plugin_controller.dart'; +import '../l10n/app_localizations.dart'; import '../models/theme_config.dart'; import '../services/deeplink_service.dart'; import '../widgets/deep_link_dialog.dart'; @@ -40,6 +41,8 @@ class _PluginsScreenState extends State StreamSubscription? _deepLinkSub; bool _isDragging = false; + AppLocalizations get _l10n => AppLocalizations.of(context); + @override void initState() { super.initState(); @@ -106,7 +109,7 @@ class _PluginsScreenState extends State if (_controller.isPluginInstalled(listing.id)) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar(content: Text('${listing.name} is already installed')), + SnackBar(content: Text(_l10n.pluginsAlreadyInstalled(listing.name))), ); return; } @@ -123,8 +126,8 @@ class _PluginsScreenState extends State ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: Text(ok - ? '${listing.name} installed' - : _controller.errorMessage ?? 'Install failed'), + ? _l10n.pluginsInstalledToast(listing.name) + : _controller.errorMessage ?? _l10n.pluginsInstallFailed), ), ); } @@ -166,18 +169,18 @@ class _PluginsScreenState extends State indicatorColor: theme.accent, labelColor: theme.accent, unselectedLabelColor: theme.textSecondary, - tabs: const [ + tabs: [ Tab( - icon: Icon(Icons.extension_outlined), - text: 'Installed Plugins 📦', + icon: const Icon(Icons.extension_outlined), + text: _l10n.pluginsTabInstalled, ), Tab( - icon: Icon(Icons.storefront_outlined), - text: 'Plugin Store 🌐🛒', + icon: const Icon(Icons.storefront_outlined), + text: _l10n.pluginsTabStore, ), Tab( - icon: Icon(Icons.handyman_outlined), - text: 'Create / Studio 🛠️', + icon: const Icon(Icons.handyman_outlined), + text: _l10n.pluginsTabStudio, ), ], ), @@ -262,7 +265,7 @@ class _PluginsScreenState extends State ), const SizedBox(height: 10), Text( - 'Drag & Drop .orplug Archive Here', + _l10n.pluginsDropTitle, style: TextStyle( color: theme.textPrimary, fontSize: 16, @@ -271,7 +274,7 @@ class _PluginsScreenState extends State ), const SizedBox(height: 4), Text( - 'Install custom ROM tools, extensions, and formats', + _l10n.pluginsDropSubtitle, style: TextStyle( color: theme.textSecondary, fontSize: 13, @@ -289,8 +292,8 @@ class _PluginsScreenState extends State ), onPressed: () => _controller.pickAndInstallPlugin(), icon: const Icon(Icons.folder_open), - label: const Text( - 'Browse .orplug File', + label: Text( + _l10n.pluginsBrowse, style: TextStyle(fontWeight: FontWeight.bold), ), ), @@ -300,7 +303,7 @@ class _PluginsScreenState extends State const SizedBox(height: 24), Text( - 'Installed Plugins (${_controller.installedPlugins.length})', + _l10n.pluginsInstalledHeading(_controller.installedPlugins.length), style: TextStyle( color: theme.textPrimary, fontSize: 18, @@ -337,7 +340,7 @@ class _PluginsScreenState extends State ), const SizedBox(height: 12), Text( - 'No Plugins Installed Yet', + _l10n.pluginsEmptyTitle, style: TextStyle( color: theme.textPrimary, fontSize: 16, @@ -346,7 +349,7 @@ class _PluginsScreenState extends State ), const SizedBox(height: 6), Text( - 'Drop an .orplug package above or explore community plugins in the Plugin Store.', + _l10n.pluginsEmptyBody, textAlign: TextAlign.center, style: TextStyle( color: theme.textSecondary, @@ -446,7 +449,7 @@ class _PluginsScreenState extends State ), onPressed: () => _confirmUninstall(plugin, theme), icon: const Icon(Icons.delete_outline, size: 18), - label: const Text('Uninstall'), + label: Text(_l10n.pluginsUninstall), ), ], ), @@ -502,18 +505,18 @@ class _PluginsScreenState extends State builder: (ctx) => AlertDialog( backgroundColor: theme.surface, title: Text( - 'Uninstall Plugin', + _l10n.pluginsUninstallTitle, style: TextStyle(color: theme.textPrimary), ), content: Text( - 'Are you sure you want to uninstall "${plugin.name}" (${plugin.id})?', + _l10n.pluginsUninstallBody(plugin.name, plugin.id), style: TextStyle(color: theme.textSecondary), ), actions: [ TextButton( onPressed: () => Navigator.of(ctx).pop(), child: Text( - 'Cancel', + _l10n.commonCancel, style: TextStyle(color: theme.textSecondary), ), ), @@ -526,7 +529,7 @@ class _PluginsScreenState extends State Navigator.of(ctx).pop(); await _controller.uninstallPlugin(plugin.id); }, - child: const Text('Uninstall'), + child: Text(_l10n.pluginsUninstall), ), ], ), diff --git a/gui/lib/screens/settings_screen.dart b/gui/lib/screens/settings_screen.dart index d0cf93d..76750c1 100644 --- a/gui/lib/screens/settings_screen.dart +++ b/gui/lib/screens/settings_screen.dart @@ -86,10 +86,11 @@ class _SettingsScreenState extends State { } Future _importSkinBundle() async { + final l10n = AppLocalizations.of(context); final picked = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: const ['orskin'], - dialogTitle: 'Import an .orskin skin bundle', + dialogTitle: l10n.themeImportSkinBundle, ); final path = picked?.files.single.path; if (path == null) return; @@ -100,19 +101,20 @@ class _SettingsScreenState extends State { SnackBar( content: Text( result.isOk - ? 'Imported skin "${result.value!.name}"' - : 'Import failed: ${result.error}', + ? l10n.themeImported(result.value!.name) + : l10n.themeImportFailed('${result.error}'), ), ), ); } Future _exportCurrentSkin() async { + final l10n = AppLocalizations.of(context); final theme = widget.themeService.currentTheme; final suggested = '${theme.name.replaceAll(RegExp(r'[^A-Za-z0-9]+'), '-')}.orskin'; final out = await FilePicker.platform.saveFile( - dialogTitle: 'Export current theme as .orskin', + dialogTitle: l10n.themeExportSkinBundle, fileName: suggested, type: FileType.custom, allowedExtensions: const ['orskin'], @@ -129,8 +131,8 @@ class _SettingsScreenState extends State { SnackBar( content: Text( result.isOk - ? 'Exported ${result.value!.path}' - : 'Export failed: ${result.error}', + ? l10n.themeExported(result.value!.path) + : l10n.themeExportFailed('${result.error}'), ), ), ); @@ -154,8 +156,7 @@ class _SettingsScreenState extends State { _raUsername = prefs.getString(OnlinePrefs.raUsername) ?? ''; _raApiKey = prefs.getString(OnlinePrefs.raApiKey) ?? ''; - _hasheousEnabled = - prefs.getBool(OnlinePrefs.hasheousEnabled) ?? false; + _hasheousEnabled = prefs.getBool(OnlinePrefs.hasheousEnabled) ?? false; _raUsernameController.text = _raUsername; _raApiKeyController.text = _raApiKey; @@ -278,7 +279,7 @@ class _SettingsScreenState extends State { const SizedBox(height: 24), // Language Selector - _buildSectionTitle('Language'), + _buildSectionTitle(l10n.settingsLanguage), Container( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4), decoration: BoxDecoration( @@ -364,12 +365,12 @@ class _SettingsScreenState extends State { const SizedBox(height: 24), // CD Audio Codec - _buildSectionTitle('CD Audio Codec (CHD)'), + _buildSectionTitle(l10n.settingsAudioCodec), Wrap( spacing: 12, children: [ ChoiceChip( - label: const Text('Lossless (FLAC) - Recommended'), + label: Text(l10n.settingsCodecFlac), selected: _selectedAudioCodec == 'flac', selectedColor: theme.accent, backgroundColor: theme.surface, @@ -387,7 +388,7 @@ class _SettingsScreenState extends State { }, ), ChoiceChip( - label: const Text('Max Compression (Vorbis)'), + label: Text(l10n.settingsCodecVorbis), selected: _selectedAudioCodec == 'vorbis', selectedColor: theme.accent, backgroundColor: theme.surface, @@ -418,7 +419,7 @@ class _SettingsScreenState extends State { style: TextStyle(color: theme.textPrimary), ), subtitle: Text( - 'Runs chdman verify on newly created CHD files', + l10n.settingsVerifySub, style: TextStyle(color: theme.textSecondary), ), value: _verifyAfterConversion, @@ -437,7 +438,7 @@ class _SettingsScreenState extends State { color: Colors.transparent, child: CheckboxListTile( title: Text( - 'Same folder as source file', + l10n.settingsSameFolder, style: TextStyle(color: theme.textPrimary), ), value: _sameFolderAsSource, @@ -464,7 +465,7 @@ class _SettingsScreenState extends State { ), child: Text( _outputDestination.isEmpty - ? 'Select directory...' + ? l10n.settingsSelectDir : _outputDestination, style: TextStyle(color: theme.textPrimary), ), @@ -490,21 +491,21 @@ class _SettingsScreenState extends State { _buildSectionTitle(l10n.themeScreen), const SizedBox(height: 12), SegmentedButton( - segments: const [ + segments: [ ButtonSegment( value: ThemeMode.system, - label: Text('System'), - icon: Icon(Icons.brightness_auto), + label: Text(l10n.settingsThemeSystem), + icon: const Icon(Icons.brightness_auto), ), ButtonSegment( value: ThemeMode.light, - label: Text('Light'), - icon: Icon(Icons.light_mode), + label: Text(l10n.settingsThemeLight), + icon: const Icon(Icons.light_mode), ), ButtonSegment( value: ThemeMode.dark, - label: Text('Dark'), - icon: Icon(Icons.dark_mode), + label: Text(l10n.settingsThemeDark), + icon: const Icon(Icons.dark_mode), ), ], selected: {widget.themeService.themeMode}, @@ -582,7 +583,7 @@ class _SettingsScreenState extends State { children: [ OutlinedButton.icon( icon: const Icon(Icons.file_download_outlined), - label: const Text('Import .orskin'), + label: Text(l10n.themeImportShort), style: OutlinedButton.styleFrom( foregroundColor: theme.accent, side: BorderSide(color: theme.border), @@ -591,7 +592,7 @@ class _SettingsScreenState extends State { ), OutlinedButton.icon( icon: const Icon(Icons.file_upload_outlined), - label: const Text('Export .orskin'), + label: Text(l10n.themeExportShort), style: OutlinedButton.styleFrom( foregroundColor: theme.accent, side: BorderSide(color: theme.border), @@ -686,7 +687,7 @@ class _SettingsScreenState extends State { ), ] else if (_updateStatus == 'error') Text( - 'Error checking for updates', + l10n.settingsUpdateError, style: TextStyle(color: Colors.redAccent, fontSize: 13), ), ], @@ -775,10 +776,8 @@ class _SettingsScreenState extends State { onPressed: () { _saveSettings(); ScaffoldMessenger.of(context).showSnackBar( - const SnackBar( - content: Text( - 'RetroAchievements credentials saved', - ), + SnackBar( + content: Text(l10n.settingsRaSaved), ), ); }, @@ -798,17 +797,16 @@ class _SettingsScreenState extends State { const SizedBox(height: 24), // Sub-section C: Hasheous hash lookup - _buildSectionTitle('Hasheous'), + _buildSectionTitle(l10n.settingsHasheous), Material( color: Colors.transparent, child: SwitchListTile( title: Text( - 'Enable Hasheous hash lookup', + l10n.settingsHasheousEnable, style: TextStyle(color: theme.textPrimary), ), subtitle: Text( - 'Identifies games by transmitting the ROM SHA-1 to ' - 'hasheous.org. Off by default; only your file hash is sent.', + l10n.settingsHasheousSub, style: TextStyle(color: theme.textSecondary), ), value: _hasheousEnabled, diff --git a/gui/lib/screens/theme_editor_screen.dart b/gui/lib/screens/theme_editor_screen.dart index eab16de..a953909 100644 --- a/gui/lib/screens/theme_editor_screen.dart +++ b/gui/lib/screens/theme_editor_screen.dart @@ -6,6 +6,7 @@ import 'dart:io'; import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; +import '../l10n/app_localizations.dart'; import '../models/skin_manifest.dart'; import '../models/theme_config.dart'; import '../services/theme_service.dart'; @@ -28,6 +29,8 @@ class _ThemeEditorScreenState extends State { late ThemeConfig _edited; late TextEditingController _nameController; + AppLocalizations get _l10n => AppLocalizations.of(context); + @override void initState() { super.initState(); @@ -51,7 +54,7 @@ class _ThemeEditorScreenState extends State { /// Applies the in-progress edits to the live theme service. ThemeConfig _currentEdits() => _edited.copyWith( name: _nameController.text.trim().isEmpty - ? 'Custom Skin' + ? _l10n.themeCustomSkin : _nameController.text.trim(), ); @@ -59,7 +62,7 @@ class _ThemeEditorScreenState extends State { final result = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: const ['gif', 'png', 'jpg', 'jpeg', 'webp'], - dialogTitle: 'Choose a wallpaper (GIF, PNG, JPG or WebP)', + dialogTitle: _l10n.themePickWallpaper, ); final path = result?.files.single.path; if (path == null) return; @@ -70,7 +73,7 @@ class _ThemeEditorScreenState extends State { final result = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: const ['gif', 'png'], - dialogTitle: 'Choose a dropzone illustration (GIF or PNG)', + dialogTitle: _l10n.themePickDropzone, ); final path = result?.files.single.path; if (path == null) return; @@ -81,7 +84,7 @@ class _ThemeEditorScreenState extends State { final result = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: const ['ttf', 'otf'], - dialogTitle: 'Choose a UI font (TTF or OTF)', + dialogTitle: _l10n.themePickFont, ); final path = result?.files.single.path; if (path == null) return; @@ -104,21 +107,21 @@ class _ThemeEditorScreenState extends State { final result = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: const ['orskin'], - dialogTitle: 'Import an .orskin bundle', + dialogTitle: _l10n.themeImportSkinBundle, ); final path = result?.files.single.path; if (path == null) return; final imported = await widget.themeService.importSkin(File(path)); if (!imported.isOk) { - _snack('Import failed: ${imported.error}'); + _snack(_l10n.themeImportFailed('${imported.error}')); return; } setState(() { _edited = imported.value!.theme; _nameController.text = _edited.name; }); - _snack('Imported skin "${imported.value!.name}"'); + _snack(_l10n.themeImported(imported.value!.name)); } Future _exportSkin() async { @@ -126,7 +129,7 @@ class _ThemeEditorScreenState extends State { final suggested = '${theme.name.replaceAll(RegExp(r'[^A-Za-z0-9]+'), '-')}' '.orskin'; final out = await FilePicker.platform.saveFile( - dialogTitle: 'Export .orskin bundle', + dialogTitle: _l10n.themeExportSkinBundle, fileName: suggested, type: FileType.custom, allowedExtensions: const ['orskin'], @@ -143,10 +146,10 @@ class _ThemeEditorScreenState extends State { font: _fileOrNull(theme.fontPath), ); if (!exported.isOk) { - _snack('Export failed: ${exported.error}'); + _snack(_l10n.themeExportFailed('${exported.error}')); return; } - _snack('Exported ${exported.value!.path}'); + _snack(_l10n.themeExported(exported.value!.path)); } static File? _fileOrNull(String? path) { @@ -163,7 +166,7 @@ class _ThemeEditorScreenState extends State { builder: (ctx) => AlertDialog( backgroundColor: widget.theme.surface, title: Text( - 'Pick Color', + _l10n.themePickColor, style: TextStyle(color: widget.theme.textPrimary), ), content: SizedBox( @@ -173,13 +176,14 @@ class _ThemeEditorScreenState extends State { mainAxisSize: MainAxisSize.min, children: [ // Hue slider - _buildSlider('Hue', HSVColor.fromColor(temp).hue, 0, 360, (v) { + _buildSlider( + _l10n.themeHue, HSVColor.fromColor(temp).hue, 0, 360, (v) { setInner(() { temp = HSVColor.fromColor(temp).withHue(v).toColor(); }); }, temp), _buildSlider( - 'Saturation', + _l10n.themeSaturation, HSVColor.fromColor(temp).saturation, 0, 1, @@ -192,7 +196,8 @@ class _ThemeEditorScreenState extends State { }, temp, ), - _buildSlider('Value', HSVColor.fromColor(temp).value, 0, 1, ( + _buildSlider( + _l10n.themeValue, HSVColor.fromColor(temp).value, 0, 1, ( v, ) { setInner(() { @@ -216,7 +221,7 @@ class _ThemeEditorScreenState extends State { TextButton( onPressed: () => Navigator.pop(ctx), child: Text( - 'Cancel', + _l10n.commonCancel, style: TextStyle(color: widget.theme.textSecondary), ), ), @@ -228,7 +233,8 @@ class _ThemeEditorScreenState extends State { Navigator.pop(ctx); onPicked(temp); }, - child: const Text('Apply', style: TextStyle(color: Colors.white)), + child: Text(_l10n.commonApply, + style: const TextStyle(color: Colors.white)), ), ], ), @@ -296,7 +302,7 @@ class _ThemeEditorScreenState extends State { const SizedBox(width: 8), TextButton.icon( icon: const Icon(Icons.clear), - label: const Text('Remove'), + label: Text(_l10n.commonRemove), style: TextButton.styleFrom(foregroundColor: t.textSecondary), onPressed: onClear, ), @@ -443,7 +449,7 @@ class _ThemeEditorScreenState extends State { borderRadius: BorderRadius.circular(t.borderRadius / 2), ), child: Text( - 'Convert', + _l10n.convertButton, style: TextStyle( color: Colors.white, fontSize: 11, @@ -470,7 +476,7 @@ class _ThemeEditorScreenState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'Theme Editor', + _l10n.themeEditorTitle, style: TextStyle( color: t.textPrimary, fontSize: 24, @@ -488,7 +494,7 @@ class _ThemeEditorScreenState extends State { children: [ // Theme name field Text( - 'Theme Name', + _l10n.themeThemeName, style: TextStyle( color: t.accent, fontSize: 14, @@ -524,7 +530,7 @@ class _ThemeEditorScreenState extends State { children: [ OutlinedButton.icon( icon: const Icon(Icons.file_download_outlined), - label: const Text('Import .orskin'), + label: Text(_l10n.themeImportShort), style: OutlinedButton.styleFrom( foregroundColor: t.accent, ), @@ -533,7 +539,7 @@ class _ThemeEditorScreenState extends State { const SizedBox(width: 12), OutlinedButton.icon( icon: const Icon(Icons.file_upload_outlined), - label: const Text('Export .orskin'), + label: Text(_l10n.themeExportShort), style: OutlinedButton.styleFrom( foregroundColor: t.accent, ), @@ -543,7 +549,7 @@ class _ThemeEditorScreenState extends State { ), const SizedBox(height: 20), Text( - 'Colors', + _l10n.themeColors, style: TextStyle( color: t.accent, fontSize: 14, @@ -552,53 +558,53 @@ class _ThemeEditorScreenState extends State { ), const SizedBox(height: 8), _buildColorRow( - 'Background', + _l10n.themeBackground, _edited.background, (c) => _edited = _edited.copyWith(background: c), ), _buildColorRow( - 'Surface', + _l10n.themeSurface, _edited.surface, (c) => _edited = _edited.copyWith(surface: c), ), _buildColorRow( - 'Accent', + _l10n.themeAccent, _edited.accent, (c) => _edited = _edited.copyWith(accent: c), ), _buildColorRow( - 'Text Primary', + _l10n.themeTextPrimary, _edited.textPrimary, (c) => _edited = _edited.copyWith(textPrimary: c), ), _buildColorRow( - 'Text Secondary', + _l10n.themeTextSecondary, _edited.textSecondary, (c) => _edited = _edited.copyWith(textSecondary: c), ), _buildColorRow( - 'Sidebar Background', + _l10n.themeSidebarBg, _edited.sidebarBg, (c) => _edited = _edited.copyWith(sidebarBg: c), ), _buildColorRow( - 'Card Background', + _l10n.themeCardBg, _edited.cardBg, (c) => _edited = _edited.copyWith(cardBg: c), ), _buildColorRow( - 'Terminal Background', + _l10n.themeTerminalBg, _edited.terminalBg, (c) => _edited = _edited.copyWith(terminalBg: c), ), _buildColorRow( - 'Terminal Text', + _l10n.themeTerminalText, _edited.terminalText, (c) => _edited = _edited.copyWith(terminalText: c), ), const SizedBox(height: 24), Text( - 'Skin Geometry & Wallpaper', + _l10n.themeGeometry, style: TextStyle( color: t.accent, fontSize: 14, @@ -607,7 +613,7 @@ class _ThemeEditorScreenState extends State { ), const SizedBox(height: 8), _buildSlider( - 'Corner Radius', + _l10n.themeCornerRadius, _edited.borderRadius, 0, 24, @@ -617,7 +623,7 @@ class _ThemeEditorScreenState extends State { t.accent, ), _buildSlider( - 'Wallpaper Opacity', + _l10n.themeWallpaperOpacity, _edited.wallpaperOpacity, 0, 1, @@ -627,7 +633,7 @@ class _ThemeEditorScreenState extends State { t.accent, ), _buildSlider( - 'Wallpaper Blur', + _l10n.themeWallpaperBlur, _edited.wallpaperBlur, 0, 20, @@ -640,7 +646,7 @@ class _ThemeEditorScreenState extends State { _assetPickerRow( t, icon: Icons.wallpaper, - label: 'Choose Wallpaper', + label: _l10n.themeChooseWallpaper, current: _edited.wallpaperPath, onPick: _pickWallpaper, onClear: () => setState( @@ -650,7 +656,7 @@ class _ThemeEditorScreenState extends State { _assetPickerRow( t, icon: Icons.animation, - label: 'Choose Dropzone', + label: _l10n.themeChooseDropzone, current: _edited.dropzonePath, onPick: _pickDropzone, onClear: () => setState( @@ -660,7 +666,7 @@ class _ThemeEditorScreenState extends State { _assetPickerRow( t, icon: Icons.text_fields, - label: 'Choose Font', + label: _l10n.themeChooseFont, current: _edited.fontPath, onPick: _pickFont, onClear: () => setState( @@ -669,7 +675,7 @@ class _ThemeEditorScreenState extends State { ), const SizedBox(height: 24), Text( - 'Sidebar Tabs', + _l10n.themeSidebarTabs, style: TextStyle( color: t.accent, fontSize: 14, @@ -678,7 +684,7 @@ class _ThemeEditorScreenState extends State { ), const SizedBox(height: 4), Text( - 'Uncheck a tab to hide it from the sidebar and navigation.', + _l10n.themeSidebarTabsHelp, style: TextStyle(color: t.textSecondary, fontSize: 12), ), const SizedBox(height: 8), @@ -710,9 +716,9 @@ class _ThemeEditorScreenState extends State { const SizedBox(height: 24), ElevatedButton.icon( icon: const Icon(Icons.save, color: Colors.white), - label: const Text( - 'Save Theme', - style: TextStyle(color: Colors.white), + label: Text( + _l10n.themeSaveTheme, + style: const TextStyle(color: Colors.white), ), style: ElevatedButton.styleFrom( backgroundColor: t.accent, @@ -720,7 +726,7 @@ class _ThemeEditorScreenState extends State { onPressed: () async { final saved = _edited.copyWith( name: _nameController.text.trim().isEmpty - ? 'Custom Theme' + ? _l10n.themeCustomTheme : _nameController.text.trim(), ); await widget.themeService.saveCustomTheme(saved); @@ -728,7 +734,7 @@ class _ThemeEditorScreenState extends State { if (context.mounted) { ScaffoldMessenger.of(context).showSnackBar( SnackBar( - content: Text('Theme "${saved.name}" saved!'), + content: Text(_l10n.themeSaved(saved.name)), ), ); } @@ -743,7 +749,7 @@ class _ThemeEditorScreenState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'Live Preview', + _l10n.themeLivePreview, style: TextStyle( color: t.accent, fontSize: 14, diff --git a/gui/lib/screens/tools_screen.dart b/gui/lib/screens/tools_screen.dart index c1a7867..7e520c9 100644 --- a/gui/lib/screens/tools_screen.dart +++ b/gui/lib/screens/tools_screen.dart @@ -84,22 +84,25 @@ class _ToolsScreenState extends State icon: const Icon(Icons.content_cut_outlined), text: l10n.headerRemoverTitle, ), - Tab(icon: const Icon(Icons.edit_document), text: 'CUE Editor'), + Tab( + icon: const Icon(Icons.edit_document), + text: l10n.toolsTabCue, + ), Tab( icon: const Icon(Icons.drive_file_rename_outline), - text: 'ROM Renamer', + text: l10n.toolsTabRenamer, ), Tab( icon: const Icon(Icons.cleaning_services_outlined), - text: '1G1R Cleaner', + text: l10n.toolsTab1g1r, ), Tab( icon: const Icon(Icons.fingerprint), - text: 'ROM Hasher', + text: l10n.toolsTabHasher, ), Tab( icon: const Icon(Icons.folder_shared_outlined), - text: 'Watch Folder', + text: l10n.toolsWatchTitle, ), ], ), @@ -2907,6 +2910,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { @override Widget build(BuildContext context) { + final l10n = AppLocalizations.of(context); final theme = widget.theme; return DropTarget( @@ -2932,7 +2936,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { Icon(Icons.fingerprint, color: theme.accent, size: 28), const SizedBox(width: 10), Text( - 'ROM Hasher', + l10n.toolsTabHasher, style: TextStyle( fontSize: 20, fontWeight: FontWeight.bold, @@ -2943,7 +2947,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { ), const SizedBox(height: 4), Text( - 'Compute CRC32, MD5, SHA-1 and SHA-256 in a single streaming pass.', + l10n.toolsHasherIntro, style: TextStyle(fontSize: 12, color: theme.textSecondary), ), const SizedBox(height: 16), @@ -2976,7 +2980,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { const SizedBox(height: 10), Text( _filePath == null - ? 'Drag & drop a ROM here, or click to browse' + ? l10n.toolsHasherDrop : p.basename(_filePath!), style: TextStyle( fontSize: 14, @@ -3007,7 +3011,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { ElevatedButton.icon( onPressed: _pickFile, icon: const Icon(Icons.folder_open, size: 16), - label: const Text('Choose File'), + label: Text(l10n.toolsChooseFile), style: ElevatedButton.styleFrom( backgroundColor: theme.surface, foregroundColor: theme.textPrimary, @@ -3024,7 +3028,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { child: CircularProgressIndicator(strokeWidth: 2), ) : const Icon(Icons.fingerprint, size: 16), - label: const Text('Compute Hashes'), + label: Text(l10n.toolsComputeHashes), style: ElevatedButton.styleFrom( backgroundColor: theme.accent, foregroundColor: Colors.black, @@ -3064,7 +3068,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { Row( children: [ Text( - 'Results', + l10n.toolsResults, style: TextStyle( fontSize: 16, fontWeight: FontWeight.bold, @@ -3075,7 +3079,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { TextButton.icon( onPressed: _copyAll, icon: const Icon(Icons.copy_all, size: 16), - label: const Text('Copy All'), + label: Text(l10n.toolsCopyAll), ), ], ), @@ -3089,7 +3093,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { ), child: Column( children: [ - _hashRow('File Size', + _hashRow(l10n.toolsFileSize, '${_result!.size} bytes (${_result!.sizeHuman})'), _hashRow('CRC32', _result!.crc32), _hashRow('MD5', _result!.md5), @@ -3111,6 +3115,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { /// "Identify Game (Hasheous)" action plus its loading / result / no-match /// states, shown beneath the hash cards. Widget _buildIdentifySection() { + final l10n = AppLocalizations.of(context); final theme = widget.theme; final lookup = _identify; @@ -3132,7 +3137,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { ) : const Icon(Icons.travel_explore, size: 16), label: Text( - _isIdentifying ? 'Identifying…' : 'Identify Game (Hasheous)', + _isIdentifying ? l10n.toolsIdentifying : l10n.toolsIdentifyGame, ), style: ElevatedButton.styleFrom( backgroundColor: theme.accent, @@ -3143,8 +3148,7 @@ class _RomHasherTabState extends State<_RomHasherTab> { if (!_hasheousEnabled) Expanded( child: Text( - 'Sends the file SHA-1 to hasheous.org. Enable in Settings → ' - 'Online Features.', + l10n.toolsHasheousHint, style: TextStyle(fontSize: 11, color: theme.textSecondary), ), ), @@ -3210,7 +3214,14 @@ class _WatchFolderTab extends StatefulWidget { class _WatchFolderTabState extends State<_WatchFolderTab> with SingleTickerProviderStateMixin { - static const List _formats = ['CHD', 'RVZ', 'CSO', 'ECM', 'ISO', 'BIN/CUE']; + static const List _formats = [ + 'CHD', + 'RVZ', + 'CSO', + 'ECM', + 'ISO', + 'BIN/CUE' + ]; final WatchFolderSession _session = WatchFolderSession(); final List _logLines = []; @@ -3222,6 +3233,8 @@ class _WatchFolderTabState extends State<_WatchFolderTab> bool _isWatching = false; bool _isStarting = false; + AppLocalizations get _l10n => AppLocalizations.of(context); + // Runs only while watching; a permanently repeating controller would make // `pumpAndSettle` never settle in widget tests. late final AnimationController _pulseController = AnimationController( @@ -3262,16 +3275,14 @@ class _WatchFolderTabState extends State<_WatchFolderTab> if (mounted) { _pulseController.stop(); setState(() => _isWatching = false); - _appendLog('Watch stopped.'); + _appendLog(_l10n.toolsWatchStopped); } return; } if (_inputDir.isEmpty || _outputDir.isEmpty) { ScaffoldMessenger.of(context).showSnackBar( - const SnackBar( - content: Text('Select both an input and an output folder first.'), - ), + SnackBar(content: Text(_l10n.toolsWatchNeedFolders)), ); return; } @@ -3359,7 +3370,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> const SizedBox(width: 10), Expanded( child: Text( - value.isEmpty ? 'Choose folder…' : value, + value.isEmpty ? _l10n.toolsChooseFolder : value, maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( @@ -3380,6 +3391,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> @override Widget build(BuildContext context) { + final l10n = AppLocalizations.of(context); final theme = widget.theme; return Container( @@ -3395,7 +3407,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> color: theme.accent, size: 28), const SizedBox(width: 10), Text( - 'Watch Folder', + l10n.toolsWatchTitle, style: TextStyle( fontSize: 20, fontWeight: FontWeight.bold, @@ -3406,26 +3418,26 @@ class _WatchFolderTabState extends State<_WatchFolderTab> ), const SizedBox(height: 4), Text( - 'Automatically convert ROMs as they land in a folder.', + l10n.toolsWatchIntro, style: TextStyle(fontSize: 12, color: theme.textSecondary), ), const SizedBox(height: 20), _dirPicker( - label: 'Input Folder', + label: l10n.toolsInputFolder, value: _inputDir, onPick: _pickInput, ), const SizedBox(height: 16), _dirPicker( - label: 'Output Folder', + label: l10n.toolsOutputFolder, value: _outputDir, onPick: _pickOutput, ), const SizedBox(height: 20), Text( - 'Target Format', + l10n.toolsTargetFormat, style: TextStyle( fontSize: 13, fontWeight: FontWeight.bold, @@ -3445,8 +3457,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> backgroundColor: theme.surface, labelStyle: TextStyle( color: selected ? Colors.black : theme.textPrimary, - fontWeight: - selected ? FontWeight.bold : FontWeight.normal, + fontWeight: selected ? FontWeight.bold : FontWeight.normal, ), onSelected: (_) => setState(() => _format = fmt), ); @@ -3463,7 +3474,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> ), const SizedBox(width: 8), Text( - 'Delete source after conversion', + l10n.toolsDeleteSource, style: TextStyle(fontSize: 13, color: theme.textPrimary), ), ], @@ -3485,7 +3496,9 @@ class _WatchFolderTabState extends State<_WatchFolderTab> _isWatching ? Icons.stop : Icons.play_arrow, size: 18, ), - label: Text(_isWatching ? 'Stop Watching' : 'Start Watching'), + label: Text(_isWatching + ? l10n.toolsStopWatching + : l10n.toolsStartWatching), style: ElevatedButton.styleFrom( backgroundColor: _isWatching ? Colors.redAccent : theme.accent, @@ -3509,7 +3522,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> if (_isWatching) ...[ const SizedBox(width: 8), Text( - 'Active', + l10n.toolsActive, style: TextStyle( fontSize: 13, fontWeight: FontWeight.bold, @@ -3522,7 +3535,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> const SizedBox(height: 20), Text( - 'Live Log', + l10n.toolsLiveLog, style: TextStyle( fontSize: 13, fontWeight: FontWeight.bold, @@ -3541,7 +3554,7 @@ class _WatchFolderTabState extends State<_WatchFolderTab> ), child: _logLines.isEmpty ? Text( - 'No activity yet.', + l10n.toolsNoActivity, style: TextStyle( fontSize: 12, color: theme.textSecondary, diff --git a/gui/lib/widgets/batch_complete_dialog.dart b/gui/lib/widgets/batch_complete_dialog.dart index 42df18b..25afae2 100644 --- a/gui/lib/widgets/batch_complete_dialog.dart +++ b/gui/lib/widgets/batch_complete_dialog.dart @@ -56,7 +56,7 @@ class BatchCompleteDialog extends StatelessWidget { const RomeoMascot(asset: RomeoAssets.success, size: 120), const SizedBox(height: 16), Text( - 'Batch Complete! 🎉', + l10n.batchTitle, textAlign: TextAlign.center, style: TextStyle( fontSize: 20, @@ -79,7 +79,7 @@ class BatchCompleteDialog extends StatelessWidget { Icon(Icons.savings_outlined, color: theme.accent, size: 32), const SizedBox(height: 8), Text( - 'You just saved ${stats.bytesSavedReadable}', + l10n.batchSaved(stats.bytesSavedReadable), textAlign: TextAlign.center, style: TextStyle( fontSize: 16, @@ -89,8 +89,10 @@ class BatchCompleteDialog extends StatelessWidget { ), const SizedBox(height: 4), Text( - '(${stats.savedPercentageReadable} reduction) ' - 'across $jobs ${jobs == 1 ? "game" : "games"}!', + l10n.batchSavedDetail( + stats.savedPercentageReadable, + jobs, + ), textAlign: TextAlign.center, style: TextStyle(fontSize: 13, color: theme.textSecondary), ), @@ -99,8 +101,7 @@ class BatchCompleteDialog extends StatelessWidget { color: theme.accent, size: 32), const SizedBox(height: 8), Text( - 'All $jobs ${jobs == 1 ? "file" : "files"} ' - 'processed successfully!', + l10n.batchAllProcessed(jobs), textAlign: TextAlign.center, style: TextStyle( fontSize: 15, @@ -128,7 +129,7 @@ class BatchCompleteDialog extends StatelessWidget { backgroundColor: theme.accent, foregroundColor: Colors.black, ), - child: const Text('Awesome!'), + child: Text(l10n.batchAwesome), ), ], ); diff --git a/gui/lib/widgets/deep_link_dialog.dart b/gui/lib/widgets/deep_link_dialog.dart index 07aa07a..8801852 100644 --- a/gui/lib/widgets/deep_link_dialog.dart +++ b/gui/lib/widgets/deep_link_dialog.dart @@ -4,6 +4,7 @@ import 'package:flutter/material.dart'; import 'package:openrom_core/openrom_core.dart'; +import '../l10n/app_localizations.dart'; import '../models/theme_config.dart'; /// Keys used by widget tests to drive the deep-link dialog. @@ -24,6 +25,7 @@ Future showDeepLinkInstallDialog({ required ThemeConfig theme, required StoreListing listing, }) async { + final l10n = AppLocalizations.of(context); final confirmed = await showDialog( context: context, barrierDismissible: true, @@ -35,7 +37,7 @@ Future showDeepLinkInstallDialog({ const SizedBox(width: 8), Expanded( child: Text( - 'Install plugin from link?', + l10n.deepLinkTitle, style: TextStyle(color: theme.textPrimary), ), ), @@ -48,19 +50,18 @@ Future showDeepLinkInstallDialog({ crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'An openrom:// link wants to install a plugin. Review it before ' - 'continuing.', + l10n.deepLinkBody, style: TextStyle(color: theme.textSecondary, fontSize: 13), ), const SizedBox(height: 14), - _row(theme, 'Plugin', listing.name), - _row(theme, 'ID', listing.id), - _row(theme, 'Version', listing.version), - _row(theme, 'Publisher', listing.publisherName), - _row(theme, 'Category', listing.category), + _row(theme, l10n.deepLinkPlugin, listing.name), + _row(theme, l10n.deepLinkId, listing.id), + _row(theme, l10n.deepLinkVersion, listing.version), + _row(theme, l10n.deepLinkPublisher, listing.publisherName), + _row(theme, l10n.deepLinkCategory, listing.category), if (listing.minCoreVersion != null && listing.minCoreVersion!.isNotEmpty) - _row(theme, 'Requires core', listing.minCoreVersion!), + _row(theme, l10n.deepLinkRequiresCore, listing.minCoreVersion!), const SizedBox(height: 12), Container( padding: const EdgeInsets.all(10), @@ -75,8 +76,7 @@ Future showDeepLinkInstallDialog({ const SizedBox(width: 8), Expanded( child: Text( - 'The download is verified against the store\'s published ' - 'SHA-256 before installation.', + l10n.deepLinkVerified, style: TextStyle(color: theme.textSecondary, fontSize: 11), ), @@ -91,7 +91,7 @@ Future showDeepLinkInstallDialog({ TextButton( key: DeepLinkDialogKeys.cancel, onPressed: () => Navigator.of(ctx).pop(false), - child: const Text('Cancel'), + child: Text(l10n.commonCancel), ), ElevatedButton.icon( key: DeepLinkDialogKeys.install, @@ -101,7 +101,7 @@ Future showDeepLinkInstallDialog({ ), onPressed: () => Navigator.of(ctx).pop(true), icon: const Icon(Icons.download, size: 18), - label: const Text('Install'), + label: Text(l10n.commonInstall), ), ], ), @@ -115,6 +115,7 @@ Future showDeepLinkNotFoundDialog({ required ThemeConfig theme, required DeepLinkTarget target, }) { + final l10n = AppLocalizations.of(context); return showDialog( context: context, builder: (ctx) => AlertDialog( @@ -124,14 +125,13 @@ Future showDeepLinkNotFoundDialog({ const Icon(Icons.link_off, color: Colors.orangeAccent), const SizedBox(width: 8), Expanded( - child: Text('Plugin not found', + child: Text(l10n.deepLinkNotFoundTitle, style: TextStyle(color: theme.textPrimary)), ), ], ), content: Text( - 'No plugin with the id "${target.id}" was found in the store ' - 'catalogue.', + l10n.deepLinkNotFoundBody(target.id), style: TextStyle(color: theme.textSecondary, fontSize: 13), ), actions: [ @@ -141,7 +141,7 @@ Future showDeepLinkNotFoundDialog({ foregroundColor: Colors.black, ), onPressed: () => Navigator.of(ctx).pop(), - child: const Text('OK'), + child: Text(l10n.commonOk), ), ], ), diff --git a/gui/lib/widgets/hasheous_result_card.dart b/gui/lib/widgets/hasheous_result_card.dart index 957f350..c47ec58 100644 --- a/gui/lib/widgets/hasheous_result_card.dart +++ b/gui/lib/widgets/hasheous_result_card.dart @@ -5,6 +5,8 @@ import 'package:flutter/material.dart'; import 'package:openrom_core/openrom_core.dart' show HasheousGameMatch, HasheousLookupResult; +import '../l10n/app_localizations.dart'; + /// High-contrast illustrated card for a successful Hasheous match. /// /// Shows the game title, platform/region, and a `Verified in ` badge with @@ -38,6 +40,7 @@ class HasheousResultCard extends StatelessWidget { @override Widget build(BuildContext context) { + final l10n = AppLocalizations.of(context); const glow = Color(0xFF3DDC97); // green/cyan const cyan = Color(0xFF2EC4B6); @@ -73,7 +76,9 @@ class HasheousResultCard extends StatelessWidget { const SizedBox(width: 10), Expanded( child: Text( - match.gameName.isEmpty ? 'Unknown title' : match.gameName, + match.gameName.isEmpty + ? l10n.hasheousUnknown + : match.gameName, style: const TextStyle( fontSize: 18, fontWeight: FontWeight.bold, @@ -117,7 +122,7 @@ class HasheousResultCard extends StatelessWidget { const SizedBox(width: 8), Flexible( child: Text( - '+ ${sources.length - 1} more', + l10n.hasheousMore(sources.length - 1), style: const TextStyle(fontSize: 11, color: Colors.white54), ), ), @@ -138,6 +143,7 @@ class VerifiedBadge extends StatelessWidget { @override Widget build(BuildContext context) { + final l10n = AppLocalizations.of(context); const glow = Color(0xFF3DDC97); return Container( padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6), @@ -155,7 +161,7 @@ class VerifiedBadge extends StatelessWidget { const Icon(Icons.verified, size: 15, color: glow), const SizedBox(width: 6), Text( - 'Verified in $sourceDat', + l10n.hasheousVerifiedIn(sourceDat), style: const TextStyle( fontSize: 12, fontWeight: FontWeight.bold, @@ -174,6 +180,7 @@ class HasheousNoMatchBanner extends StatelessWidget { @override Widget build(BuildContext context) { + final l10n = AppLocalizations.of(context); return Container( width: double.infinity, padding: const EdgeInsets.all(14), @@ -182,14 +189,14 @@ class HasheousNoMatchBanner extends StatelessWidget { borderRadius: BorderRadius.circular(10), border: Border.all(color: Colors.white12), ), - child: const Row( + child: Row( children: [ - Icon(Icons.search_off, color: Colors.white54, size: 20), - SizedBox(width: 10), + const Icon(Icons.search_off, color: Colors.white54, size: 20), + const SizedBox(width: 10), Expanded( child: Text( - 'No match found in preservation databases.', - style: TextStyle(fontSize: 13, color: Colors.white70), + l10n.hasheousNoMatch, + style: const TextStyle(fontSize: 13, color: Colors.white70), ), ), ], diff --git a/gui/lib/widgets/orplug_builder_studio.dart b/gui/lib/widgets/orplug_builder_studio.dart index 464fe87..cd4605a 100644 --- a/gui/lib/widgets/orplug_builder_studio.dart +++ b/gui/lib/widgets/orplug_builder_studio.dart @@ -7,6 +7,7 @@ import 'package:flutter/services.dart'; import 'package:openrom_core/openrom_core.dart'; import '../controllers/plugin_builder_controller.dart'; +import '../l10n/app_localizations.dart'; import '../models/theme_config.dart'; /// Keys used by widget tests to drive the studio. @@ -56,6 +57,8 @@ class _OrplugBuilderStudioState extends State { bool _ownsController = false; final _idCtrl = TextEditingController(); + + AppLocalizations get _l10n => AppLocalizations.of(context); final _nameCtrl = TextEditingController(); final _versionCtrl = TextEditingController(); final _minCoreCtrl = TextEditingController(); @@ -116,7 +119,7 @@ class _OrplugBuilderStudioState extends State { } Future _newProject() async { - final parent = await _pickDirectory('Select where to create the plugin'); + final parent = await _pickDirectory(_l10n.studioNewProjectTitle); if (parent == null) return; final id = _idCtrl.text.trim().isEmpty ? 'my-tool' @@ -129,7 +132,7 @@ class _OrplugBuilderStudioState extends State { } Future _openProject() async { - final dir = await _pickDirectory('Select a plugin project folder'); + final dir = await _pickDirectory(_l10n.studioOpenProjectTitle); if (dir == null) return; await _controller.openProject(dir); _syncFieldsFromController(); @@ -167,7 +170,8 @@ class _OrplugBuilderStudioState extends State { children: [ Icon(Icons.check_circle, color: theme.accent), const SizedBox(width: 8), - Text('Built .orplug', style: TextStyle(color: theme.textPrimary)), + Text(_l10n.studioBuiltTitle, + style: TextStyle(color: theme.textPrimary)), ], ), content: SizedBox( @@ -176,12 +180,13 @@ class _OrplugBuilderStudioState extends State { mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ - _kv('Archive', res.outputPath ?? '—', theme), - _kv('Size', '${res.archiveSize} bytes', theme), + _kv(_l10n.studioArchive, res.outputPath ?? '—', theme), + _kv(_l10n.studioSize, _l10n.studioSizeBytes(res.archiveSize), + theme), _kv('SHA-256', res.archiveSha256 ?? '—', theme, mono: true), const SizedBox(height: 12), Text( - 'Marketplace entry (paste into the store catalogue):', + _l10n.studioMarketplaceEntry, style: TextStyle(color: theme.textSecondary, fontSize: 12), ), const SizedBox(height: 6), @@ -211,11 +216,11 @@ class _OrplugBuilderStudioState extends State { ClipboardData(text: _controller.marketplaceJson ?? ''), ); ScaffoldMessenger.of(ctx).showSnackBar( - const SnackBar(content: Text('Marketplace JSON copied')), + SnackBar(content: Text(_l10n.studioMarketplaceCopied)), ); }, icon: const Icon(Icons.copy), - label: const Text('Copy JSON'), + label: Text(_l10n.studioCopyJson), ), ElevatedButton( style: ElevatedButton.styleFrom( @@ -223,7 +228,7 @@ class _OrplugBuilderStudioState extends State { foregroundColor: Colors.black, ), onPressed: () => Navigator.of(ctx).pop(), - child: const Text('Done'), + child: Text(_l10n.commonDone), ), ], ), @@ -265,14 +270,14 @@ class _OrplugBuilderStudioState extends State { children: [ _header(theme), const SizedBox(height: 16), - _card(theme, 'Identity', [ + _card(theme, _l10n.studioIdentity, [ Row( children: [ Expanded( child: _field( theme, BuilderStudioKeys.idField, - 'Plugin ID', + _l10n.studioPluginId, _idCtrl, hint: 'my-tool', onChanged: (v) => _controller.setIdentity(id: v), @@ -283,9 +288,9 @@ class _OrplugBuilderStudioState extends State { child: _field( theme, BuilderStudioKeys.nameField, - 'Display Name', + _l10n.studioDisplayName, _nameCtrl, - hint: 'My Tool', + hint: _l10n.studioDefaultName, onChanged: (v) => _controller.setIdentity(name: v), ), ), @@ -298,7 +303,7 @@ class _OrplugBuilderStudioState extends State { child: _field( theme, BuilderStudioKeys.versionField, - 'Version (SemVer)', + _l10n.studioVersion, _versionCtrl, hint: '1.0.0', onChanged: _controller.setVersion, @@ -309,7 +314,7 @@ class _OrplugBuilderStudioState extends State { child: _field( theme, BuilderStudioKeys.minCoreField, - 'Min Core Version', + _l10n.studioMinCore, _minCoreCtrl, hint: '3.9.0', onChanged: _controller.setMinCoreVersion, @@ -321,14 +326,14 @@ class _OrplugBuilderStudioState extends State { ), ]), const SizedBox(height: 12), - _card(theme, 'Publisher', [ + _card(theme, _l10n.studioPublisher, [ Row( children: [ Expanded( child: _field( theme, BuilderStudioKeys.publisherIdField, - 'Publisher ID', + _l10n.studioPublisherId, _pubIdCtrl, onChanged: (v) => _controller.setPublisher(id: v), ), @@ -338,17 +343,17 @@ class _OrplugBuilderStudioState extends State { child: _field( theme, BuilderStudioKeys.publisherNameField, - 'Publisher Name', + _l10n.studioPublisherName, _pubNameCtrl, onChanged: (v) => _controller.setPublisher(name: v), ), ), const SizedBox(width: 12), Tooltip( - message: 'Verified publishers get the blue check in the store', + message: _l10n.studioVerifiedTip, child: Column( children: [ - Text('Verified', + Text(_l10n.studioVerified, style: TextStyle( color: theme.textSecondary, fontSize: 12)), Switch( @@ -363,11 +368,11 @@ class _OrplugBuilderStudioState extends State { ), ]), const SizedBox(height: 12), - _card(theme, 'Description & Routes', [ + _card(theme, _l10n.studioDescriptionRoutes, [ _field( theme, BuilderStudioKeys.descriptionField, - 'Description', + _l10n.studioDescription, _descCtrl, maxLines: 2, onChanged: _controller.setDescription, @@ -380,7 +385,7 @@ class _OrplugBuilderStudioState extends State { child: _field( theme, BuilderStudioKeys.routeField, - 'Add route (e.g. ISO -> WUA)', + _l10n.studioRouteHint, _routeCtrl, onSubmitted: (v) { _controller.addRoute(v); @@ -401,7 +406,7 @@ class _OrplugBuilderStudioState extends State { _controller.addRoute(_routeCtrl.text); _routeCtrl.clear(); }, - child: const Text('Add'), + child: Text(_l10n.commonAdd), ), ), ], @@ -412,7 +417,7 @@ class _OrplugBuilderStudioState extends State { runSpacing: 4, children: _controller.routes.isEmpty ? [ - Text('No routes yet.', + Text(_l10n.studioNoRoutes, style: TextStyle( color: theme.textSecondary, fontSize: 12)), ] @@ -422,17 +427,16 @@ class _OrplugBuilderStudioState extends State { const SizedBox(height: 12), _binariesCard(theme), const SizedBox(height: 12), - _card(theme, 'Execution Arguments', [ + _card(theme, _l10n.studioExecutionArgs, [ Text( - 'Placeholders: {bin} executable · {in} input · {out} output · ' - '{outdir} output dir · {cue} cue sheet', + _l10n.studioPlaceholders, style: TextStyle(color: theme.textSecondary, fontSize: 12), ), const SizedBox(height: 8), _field( theme, BuilderStudioKeys.argsField, - 'Argument template', + _l10n.studioArgsTemplate, _argsCtrl, hint: 'convert --input {in} --output {out}', onChanged: _controller.setArgsTemplate, @@ -468,7 +472,7 @@ class _OrplugBuilderStudioState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'Visual .orplug Builder Studio', + _l10n.studioTitle, style: TextStyle( color: theme.textPrimary, fontSize: 16, @@ -477,9 +481,7 @@ class _OrplugBuilderStudioState extends State { ), const SizedBox(height: 2), Text( - dir.isEmpty - ? 'Start a new plugin or open an existing project folder.' - : dir, + dir.isEmpty ? _l10n.studioIntro : dir, maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle(color: theme.textSecondary, fontSize: 12), @@ -493,7 +495,7 @@ class _OrplugBuilderStudioState extends State { style: OutlinedButton.styleFrom(foregroundColor: theme.accent), onPressed: _controller.isBusy ? null : _newProject, icon: const Icon(Icons.add, size: 18), - label: const Text('New'), + label: Text(_l10n.studioNew), ), const SizedBox(width: 8), OutlinedButton.icon( @@ -501,13 +503,13 @@ class _OrplugBuilderStudioState extends State { style: OutlinedButton.styleFrom(foregroundColor: theme.accent), onPressed: _controller.isBusy ? null : _openProject, icon: const Icon(Icons.folder_open, size: 18), - label: const Text('Open'), + label: Text(_l10n.studioOpen), ), if (dir.isNotEmpty) ...[ const SizedBox(width: 8), IconButton( key: BuilderStudioKeys.refresh, - tooltip: 'Rescan project', + tooltip: _l10n.studioRescan, onPressed: _controller.isBusy ? null : _controller.refresh, icon: Icon(Icons.refresh, color: theme.textSecondary), ), @@ -527,7 +529,7 @@ class _OrplugBuilderStudioState extends State { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Category', + Text(_l10n.studioCategory, style: TextStyle(color: theme.textSecondary, fontSize: 12)), const SizedBox(height: 6), DropdownButtonFormField( @@ -563,10 +565,9 @@ class _OrplugBuilderStudioState extends State { } Widget _binariesCard(ThemeConfig theme) { - return _card(theme, 'Binaries', [ + return _card(theme, _l10n.studioBinaries, [ Text( - 'Attach one executable per platform. SHA-256 hashes are computed ' - 'automatically when you save or build.', + _l10n.studioBinariesHelp, style: TextStyle(color: theme.textSecondary, fontSize: 12), ), const SizedBox(height: 10), @@ -594,7 +595,7 @@ class _OrplugBuilderStudioState extends State { ), Expanded( child: bin == null - ? Text('not set', + ? Text(_l10n.studioNotSet, style: TextStyle(color: theme.textSecondary, fontSize: 12)) : Row( children: [ @@ -623,11 +624,11 @@ class _OrplugBuilderStudioState extends State { }, icon: Icon(bin == null ? Icons.upload_file : Icons.swap_horiz, size: 16), - label: Text(bin == null ? 'Add' : 'Replace'), + label: Text(bin == null ? _l10n.commonAdd : _l10n.studioReplace), ), if (bin != null) IconButton( - tooltip: 'Remove', + tooltip: _l10n.commonRemove, onPressed: _controller.isBusy ? null : () async { @@ -644,7 +645,7 @@ class _OrplugBuilderStudioState extends State { Widget _actionsCard(ThemeConfig theme) { final busy = _controller.isBusy; - return _card(theme, 'Build', [ + return _card(theme, _l10n.studioBuild, [ Row( children: [ ElevatedButton.icon( @@ -657,7 +658,7 @@ class _OrplugBuilderStudioState extends State { ? null : () => _controller.saveManifest(), icon: const Icon(Icons.save_outlined, size: 18), - label: const Text('Save Manifest'), + label: Text(_l10n.studioSaveManifest), ), const SizedBox(width: 10), ElevatedButton.icon( @@ -670,7 +671,7 @@ class _OrplugBuilderStudioState extends State { ? null : _controller.validate, icon: const Icon(Icons.rule, size: 18), - label: const Text('Validate'), + label: Text(_l10n.studioValidate), ), const SizedBox(width: 10), ElevatedButton.icon( @@ -681,7 +682,7 @@ class _OrplugBuilderStudioState extends State { ), onPressed: busy || !_controller.canBuild ? null : _build, icon: const Icon(Icons.inventory_2_outlined, size: 18), - label: const Text('Build .orplug'), + label: Text(_l10n.studioBuildPackage), ), const Spacer(), if (busy) @@ -710,20 +711,22 @@ class _OrplugBuilderStudioState extends State { children: [ Expanded( child: Text( - 'Last build: ${_controller.packOutputPath} · ' - 'sha256 ${_controller.packResult!.archiveSha256}', + _l10n.studioLastBuild( + _controller.packOutputPath!, + _controller.packResult!.archiveSha256!, + ), style: TextStyle(color: theme.textSecondary, fontSize: 11), ), ), IconButton( key: BuilderStudioKeys.copyMarketplace, - tooltip: 'Copy marketplace JSON', + tooltip: _l10n.studioCopyMarketplace, onPressed: () { Clipboard.setData( ClipboardData(text: _controller.marketplaceJson ?? ''), ); ScaffoldMessenger.of(context).showSnackBar( - const SnackBar(content: Text('Marketplace JSON copied')), + SnackBar(content: Text(_l10n.studioMarketplaceCopied)), ); }, icon: @@ -755,7 +758,7 @@ class _OrplugBuilderStudioState extends State { size: 18, color: ok ? theme.accent : Colors.redAccent), const SizedBox(width: 8), Text( - ok ? 'Manifest is valid' : 'Validation issues', + ok ? _l10n.studioManifestValid : _l10n.studioValidationIssues, style: TextStyle( color: theme.textPrimary, fontWeight: FontWeight.bold, diff --git a/gui/lib/widgets/sidebar.dart b/gui/lib/widgets/sidebar.dart index 2409844..bd48744 100644 --- a/gui/lib/widgets/sidebar.dart +++ b/gui/lib/widgets/sidebar.dart @@ -69,7 +69,7 @@ class Sidebar extends StatelessWidget { index: 4, id: 'plugins', icon: Icons.extension_outlined, - tooltip: 'Plugins', + tooltip: l10n.navPlugins, ), _NavItem( index: 5, diff --git a/gui/lib/widgets/storefront_view.dart b/gui/lib/widgets/storefront_view.dart index 2e111a5..b017689 100644 --- a/gui/lib/widgets/storefront_view.dart +++ b/gui/lib/widgets/storefront_view.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:openrom_core/openrom_core.dart'; import '../controllers/plugin_controller.dart'; +import '../l10n/app_localizations.dart'; import '../models/theme_config.dart'; /// Keys used by widget tests to drive the storefront. @@ -37,6 +38,8 @@ class StorefrontView extends StatefulWidget { class _StorefrontViewState extends State { final _searchCtrl = TextEditingController(); + AppLocalizations get _l10n => AppLocalizations.of(context); + @override void dispose() { _searchCtrl.dispose(); @@ -63,7 +66,7 @@ class _StorefrontViewState extends State { Icon(Icons.storefront, color: theme.accent, size: 24), const SizedBox(width: 8), Text( - 'Plugin Marketplace', + _l10n.storeTitle, style: TextStyle( color: theme.textPrimary, fontSize: 18, @@ -75,7 +78,7 @@ class _StorefrontViewState extends State { const Spacer(), IconButton( key: StorefrontKeys.refresh, - tooltip: 'Refresh catalogue', + tooltip: _l10n.storeRefresh, onPressed: controller.isLoading ? null : () => controller.fetchLiveStore(force: true), @@ -86,8 +89,8 @@ class _StorefrontViewState extends State { const SizedBox(height: 4), Text( controller.storeIsLive - ? 'Official and community plugins, served live from the store.' - : 'Showing the last cached catalogue. Reconnect to refresh.', + ? _l10n.storeSubtitleLive + : _l10n.storeSubtitleCached, style: TextStyle(color: theme.textSecondary, fontSize: 12), ), const SizedBox(height: 12), @@ -124,7 +127,7 @@ class _StorefrontViewState extends State { size: 13, color: color), const SizedBox(width: 5), Text( - live ? 'Live' : 'Offline', + live ? _l10n.storeBadgeLive : _l10n.storeBadgeOffline, style: TextStyle( color: color, fontSize: 11, fontWeight: FontWeight.w600), ), @@ -141,7 +144,7 @@ class _StorefrontViewState extends State { onChanged: controller.setStoreQuery, decoration: InputDecoration( isDense: true, - hintText: 'Search plugins, publishers, routes…', + hintText: _l10n.storeSearchHint, hintStyle: TextStyle( color: theme.textSecondary.withValues(alpha: 0.6), fontSize: 13), prefixIcon: Icon(Icons.search, size: 18, color: theme.textSecondary), @@ -177,7 +180,7 @@ class _StorefrontViewState extends State { spacing: 8, runSpacing: 4, children: [ - _chip(theme, 'All', selected == null, () { + _chip(theme, _l10n.storeAll, selected == null, () { controller.setStoreCategory(null); }, key: StorefrontKeys.category('all')), ...categories.map((c) { @@ -260,10 +263,10 @@ class _StorefrontViewState extends State { const SizedBox(height: 16), Text( offline - ? 'ROMéo is offline' + ? _l10n.storeOfflineTitle : controller.storeQuery.isEmpty - ? 'No plugins published yet' - : 'No plugins match your filters', + ? _l10n.storeEmptyTitle + : _l10n.storeNoMatchTitle, style: TextStyle( color: theme.textPrimary, fontSize: 16, @@ -273,11 +276,10 @@ class _StorefrontViewState extends State { const SizedBox(height: 6), Text( offline - ? 'The store could not be reached and no cached copy exists. ' - 'Check your connection and refresh.' + ? _l10n.storeOfflineBody : controller.storeQuery.isEmpty - ? 'Check back soon — new plugins land often.' - : 'Try a different search term or category.', + ? _l10n.storeEmptyBody + : _l10n.storeNoMatchBody, textAlign: TextAlign.center, style: TextStyle(color: theme.textSecondary, fontSize: 13), ), @@ -339,9 +341,9 @@ class _StorefrontViewState extends State { _pill(theme, listing.category), if (listing.publisherVerified) ...[ const SizedBox(width: 6), - const Tooltip( - message: 'Verified publisher', - child: Icon(Icons.verified, + Tooltip( + message: _l10n.storeVerifiedPublisher, + child: const Icon(Icons.verified, color: Color(0xFF00E5FF), size: 16), ), ], @@ -349,7 +351,7 @@ class _StorefrontViewState extends State { ), const SizedBox(height: 4), Text( - 'by ${listing.publisherName}', + _l10n.storeByPublisher(listing.publisherName), style: TextStyle(color: theme.textSecondary, fontSize: 12), ), @@ -404,7 +406,7 @@ class _StorefrontViewState extends State { Padding( padding: const EdgeInsets.only(right: 12), child: Text( - 'core ≥ ${listing.minCoreVersion}', + _l10n.storeCoreMin(listing.minCoreVersion!), style: TextStyle(color: theme.textSecondary, fontSize: 11), ), ), @@ -413,7 +415,7 @@ class _StorefrontViewState extends State { children: [ Icon(Icons.check_circle, size: 16, color: theme.accent), const SizedBox(width: 6), - Text('Installed', + Text(_l10n.storeInstalled, style: TextStyle(color: theme.accent, fontSize: 12)), ], ) @@ -432,7 +434,7 @@ class _StorefrontViewState extends State { ? null : () => _install(controller, listing), icon: const Icon(Icons.download, size: 16), - label: const Text('Install', + label: Text(_l10n.commonInstall, style: TextStyle(fontWeight: FontWeight.bold)), ), ], @@ -469,7 +471,7 @@ class _StorefrontViewState extends State { final messenger = ScaffoldMessenger.of(context); if (ok) { messenger.showSnackBar( - SnackBar(content: Text('${listing.name} installed')), + SnackBar(content: Text(_l10n.pluginsInstalledToast(listing.name))), ); } else if (controller.errorMessage != null) { messenger.showSnackBar( diff --git a/gui/test/deeplink_test.dart b/gui/test/deeplink_test.dart index 9fada07..1a88e31 100644 --- a/gui/test/deeplink_test.dart +++ b/gui/test/deeplink_test.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:gui/controllers/plugin_controller.dart'; import 'package:gui/models/theme_config.dart'; +import 'package:gui/l10n/app_localizations.dart'; import 'package:gui/screens/plugins_screen.dart'; import 'package:gui/services/deeplink_service.dart'; import 'package:gui/services/plugin_service.dart'; @@ -59,6 +60,8 @@ void main() { bool? result; await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Builder( builder: (ctx) => Scaffold( body: ElevatedButton( @@ -93,6 +96,8 @@ void main() { bool? result; await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Builder( builder: (ctx) => Scaffold( body: ElevatedButton( @@ -127,6 +132,8 @@ void main() { await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen( theme: testTheme, @@ -157,6 +164,8 @@ void main() { await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen( theme: testTheme, @@ -184,6 +193,8 @@ void main() { await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen( theme: testTheme, diff --git a/gui/test/hasheous_result_card_test.dart b/gui/test/hasheous_result_card_test.dart index 0b92879..f328f43 100644 --- a/gui/test/hasheous_result_card_test.dart +++ b/gui/test/hasheous_result_card_test.dart @@ -4,11 +4,14 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:gui/widgets/hasheous_result_card.dart'; +import 'package:gui/l10n/app_localizations.dart'; import 'package:openrom_core/openrom_core.dart' show HasheousGameMatch, HasheousLookupResult; void main() { Widget wrap(Widget child) => MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold(body: SingleChildScrollView(child: child)), ); diff --git a/gui/test/plugins_screen_test.dart b/gui/test/plugins_screen_test.dart index d7d83d3..63274e9 100644 --- a/gui/test/plugins_screen_test.dart +++ b/gui/test/plugins_screen_test.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:gui/controllers/plugin_controller.dart'; import 'package:gui/models/theme_config.dart'; +import 'package:gui/l10n/app_localizations.dart'; import 'package:gui/screens/plugins_screen.dart'; import 'package:gui/services/plugin_service.dart'; import 'package:gui/widgets/orplug_builder_studio.dart'; @@ -160,6 +161,8 @@ void main() { final controller = PluginController(service: FakePluginService()); await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen(theme: testTheme, controller: controller), ), @@ -178,6 +181,8 @@ void main() { final controller = PluginController(service: FakePluginService()); await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen(theme: testTheme, controller: controller), ), @@ -199,6 +204,8 @@ void main() { final controller = PluginController(service: FakePluginService()); await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen(theme: testTheme, controller: controller), ), @@ -222,6 +229,8 @@ void main() { PluginController(service: FakePluginService(live: false)); await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen(theme: testTheme, controller: controller), ), @@ -248,6 +257,8 @@ void main() { final controller = PluginController(service: FakePluginService()); await tester.pumpWidget( MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, home: Scaffold( body: PluginsScreen(theme: testTheme, controller: controller), ), From a12f79aee075b4963b301918a6a54201a2e08787 Mon Sep 17 00:00:00 2001 From: Ain Date: Tue, 10 Nov 2026 13:23:52 +0800 Subject: [PATCH 2/3] style(core): format files flagged by the quality gate These four files were already unformatted on main, so the GUI changes could not get a green Quality Gate. Apply dart format only; no behaviour changes. --- core/bin/openrom.dart | 6 ++++-- core/lib/src/watch_folder.dart | 34 +++++++++++++++++----------------- core/test/cli_help_test.dart | 3 ++- core/test/hasheous_test.dart | 3 ++- 4 files changed, 25 insertions(+), 21 deletions(-) diff --git a/core/bin/openrom.dart b/core/bin/openrom.dart index 75605c4..d1e98bc 100644 --- a/core/bin/openrom.dart +++ b/core/bin/openrom.dart @@ -1289,7 +1289,8 @@ Future _runCli(List args) async { if (isJson) { _jsonPrint({ 'type': 'log', - 'message': '[DELETE] Removed source: ${p.basename(job.filepath)}', + 'message': + '[DELETE] Removed source: ${p.basename(job.filepath)}', }); } } @@ -1336,7 +1337,8 @@ Future _runCli(List args) async { ...stats.toJson(), }); } else { - print('Batch complete: ${stats.jobsCompleted} converted, $failed failed.'); + print( + 'Batch complete: ${stats.jobsCompleted} converted, $failed failed.'); print(' Space saved: ${stats.bytesSavedReadable} ' '(${stats.savedPercentageReadable})'); } diff --git a/core/lib/src/watch_folder.dart b/core/lib/src/watch_folder.dart index 18107e7..7128132 100644 --- a/core/lib/src/watch_folder.dart +++ b/core/lib/src/watch_folder.dart @@ -90,9 +90,8 @@ class WatchFolderDaemon { /// Returns the settled size, or null when the file vanished. A file that /// never stops growing keeps the loop alive until it stabilises (or [stop]). Future awaitStable(String path) async { - final intervalMs = pollInterval.inMilliseconds <= 0 - ? 1 - : pollInterval.inMilliseconds; + final intervalMs = + pollInterval.inMilliseconds <= 0 ? 1 : pollInterval.inMilliseconds; final requiredStableChecks = (settleSeconds * 1000 / intervalMs).ceil().clamp(1, 1 << 30); @@ -199,20 +198,21 @@ class WatchFolderDaemon { if (_stopped) return; final completer = Completer(); _sub = dir.watch().listen( - (event) { - if (_stopped) return; - final path = event.path; - if (event is FileSystemCreateEvent || event is FileSystemModifyEvent) { - // Creation/modify events fire repeatedly while a file is written; - // handleFile's settle loop + _inFlight guard dedupe them. - unawaited(handleFile(path)); - } - }, - onError: (Object e) => _log('[WARN] Watch error: $e'), - onDone: () { - if (!completer.isCompleted) completer.complete(); - }, - ); + (event) { + if (_stopped) return; + final path = event.path; + if (event is FileSystemCreateEvent || + event is FileSystemModifyEvent) { + // Creation/modify events fire repeatedly while a file is written; + // handleFile's settle loop + _inFlight guard dedupe them. + unawaited(handleFile(path)); + } + }, + onError: (Object e) => _log('[WARN] Watch error: $e'), + onDone: () { + if (!completer.isCompleted) completer.complete(); + }, + ); await completer.future; } diff --git a/core/test/cli_help_test.dart b/core/test/cli_help_test.dart index b5e6f9f..b1be8e7 100644 --- a/core/test/cli_help_test.dart +++ b/core/test/cli_help_test.dart @@ -136,7 +136,8 @@ void main() { expect(out, contains('--settle-seconds')); }); - test('--watch with a missing directory creates it and logs readiness', () async { + test('--watch with a missing directory creates it and logs readiness', + () async { final tmpDir = Directory.systemTemp.createTempSync('cli_watch_'); final inDir = Directory('${tmpDir.path}/incoming'); final outDir = Directory('${tmpDir.path}/library'); diff --git a/core/test/hasheous_test.dart b/core/test/hasheous_test.dart index bef71c8..14889f2 100644 --- a/core/test/hasheous_test.dart +++ b/core/test/hasheous_test.dart @@ -79,7 +79,8 @@ void main() { ); final client = HasheousClient(client: mock); - final result = await client.lookupByHash(sha1: sha1, md5: md5Hex, crc: crc); + final result = + await client.lookupByHash(sha1: sha1, md5: md5Hex, crc: crc); expect(result.matched, isTrue); expect(result.error, isNull); From 47c06c2d3a0b3a9513d975e8b0763fe27af4fa07 Mon Sep 17 00:00:00 2001 From: Ain Date: Tue, 10 Nov 2026 13:41:02 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix(i18n):=20show=20=E7=B9=81=E9=AB=94?= =?UTF-8?q?=E4=B8=AD=E6=96=87=20for=20zh=5FTW=20in=20the=20language=20pick?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit getNativeName only received languageCode, so both zh and zh_TW mapped to "简体中文". Pass the full Locale and derive languageCode_countryCode before selecting the native name, and add a unit test for the two Chinese entries. Keep the default theme and skin names as stable English constants so exported manifests do not change with the active UI language. --- gui/lib/providers/locale_provider.dart | 5 ++++- gui/lib/screens/settings_screen.dart | 2 +- gui/lib/screens/theme_editor_screen.dart | 4 ++-- gui/test/locale_provider_test.dart | 23 +++++++++++++++++++++++ 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 gui/test/locale_provider_test.dart diff --git a/gui/lib/providers/locale_provider.dart b/gui/lib/providers/locale_provider.dart index c044dce..218f8ac 100644 --- a/gui/lib/providers/locale_provider.dart +++ b/gui/lib/providers/locale_provider.dart @@ -71,7 +71,10 @@ class LocaleProvider extends ChangeNotifier { await prefs.setString(_prefKey, _localeCode); } - static String getNativeName(String code) { + static String getNativeName(Locale locale) { + final code = locale.countryCode == null || locale.countryCode!.isEmpty + ? locale.languageCode + : '${locale.languageCode}_${locale.countryCode}'; switch (code) { case 'ar': return 'العربية'; diff --git a/gui/lib/screens/settings_screen.dart b/gui/lib/screens/settings_screen.dart index 76750c1..993f281 100644 --- a/gui/lib/screens/settings_screen.dart +++ b/gui/lib/screens/settings_screen.dart @@ -297,7 +297,7 @@ class _SettingsScreenState extends State { return DropdownMenuItem( value: locale, child: Text( - LocaleProvider.getNativeName(locale.languageCode), + LocaleProvider.getNativeName(locale), style: TextStyle(color: theme.textPrimary), ), ); diff --git a/gui/lib/screens/theme_editor_screen.dart b/gui/lib/screens/theme_editor_screen.dart index a953909..1b8354b 100644 --- a/gui/lib/screens/theme_editor_screen.dart +++ b/gui/lib/screens/theme_editor_screen.dart @@ -54,7 +54,7 @@ class _ThemeEditorScreenState extends State { /// Applies the in-progress edits to the live theme service. ThemeConfig _currentEdits() => _edited.copyWith( name: _nameController.text.trim().isEmpty - ? _l10n.themeCustomSkin + ? 'Custom Skin' : _nameController.text.trim(), ); @@ -726,7 +726,7 @@ class _ThemeEditorScreenState extends State { onPressed: () async { final saved = _edited.copyWith( name: _nameController.text.trim().isEmpty - ? _l10n.themeCustomTheme + ? 'Custom Theme' : _nameController.text.trim(), ); await widget.themeService.saveCustomTheme(saved); diff --git a/gui/test/locale_provider_test.dart b/gui/test/locale_provider_test.dart new file mode 100644 index 0000000..9c8bd29 --- /dev/null +++ b/gui/test/locale_provider_test.dart @@ -0,0 +1,23 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:gui/providers/locale_provider.dart'; + +void main() { + group('LocaleProvider.getNativeName', () { + test('distinguishes Simplified and Traditional Chinese', () { + expect( + LocaleProvider.getNativeName(const Locale('zh')), + '简体中文', + ); + expect( + LocaleProvider.getNativeName(const Locale('zh', 'TW')), + '繁體中文', + ); + }); + + test('falls back to the language name for other locales', () { + expect(LocaleProvider.getNativeName(const Locale('ja')), '日本語'); + expect(LocaleProvider.getNativeName(const Locale('en')), 'English'); + }); + }); +}