1
0
Fork 0
forked from suyu/suyu

android: ImportExportSavesFragment: Cleanup strings.

This commit is contained in:
bunnei 2023-05-31 18:16:54 -07:00
parent b325ad16bc
commit 17ae85e724
2 changed files with 10 additions and 7 deletions

View file

@ -69,16 +69,16 @@ class ImportExportSavesFragment : DialogFragment() {
return if (savesFolderRoot == "") { return if (savesFolderRoot == "") {
MaterialAlertDialogBuilder(requireContext()) MaterialAlertDialogBuilder(requireContext())
.setTitle(R.string.import_export_saves) .setTitle(R.string.import_export_saves)
.setMessage("No profileID found. Launch a game first and then come back.") .setMessage(R.string.import_export_saves_no_profile)
.setPositiveButton(android.R.string.ok, null) .setPositiveButton(android.R.string.ok, null)
.show() .show()
} else { } else {
MaterialAlertDialogBuilder(requireContext()) MaterialAlertDialogBuilder(requireContext())
.setTitle("Import/Export Saves") .setTitle(R.string.import_export_saves)
.setPositiveButton("Export") { _, _ -> .setPositiveButton(R.string.export_saves) { _, _ ->
exportSave() exportSave()
} }
.setNeutralButton("Import") { _, _ -> .setNeutralButton(R.string.import_saves) { _, _ ->
documentPicker.launch(arrayOf("application/zip")) documentPicker.launch(arrayOf("application/zip"))
} }
.show() .show()

View file

@ -80,10 +80,13 @@
<string name="no_file_manager">No file manager found</string> <string name="no_file_manager">No file manager found</string>
<string name="notification_no_directory_link">Could not open yuzu directory</string> <string name="notification_no_directory_link">Could not open yuzu directory</string>
<string name="notification_no_directory_link_description">Please locate the user folder with the file manager\'s side panel manually.</string> <string name="notification_no_directory_link_description">Please locate the user folder with the file manager\'s side panel manually.</string>
<string name="import_export_saves">Import/Export Saves</string> <string name="import_export_saves">Import/export saves</string>
<string name="import_export_saves_description">Import or export save files</string> <string name="import_export_saves_description">Import or export save files</string>
<string name="save_file_imported_success">The save files were imported successfully</string> <string name="import_export_saves_no_profile">No user profile found. Please launch a game first and retry.</string>
<string name="save_file_invalid_zip_structure">Invalid Zip directory structure: the first subfolder name must be the Title ID of the game.</string> <string name="save_file_imported_success">Save files were imported successfully</string>
<string name="save_file_invalid_zip_structure">Invalid save directory structure: The first subfolder name must be the title ID of the game.</string>
<string name="import_saves">Import</string>
<string name="export_saves">Export</string>
<!-- About screen strings --> <!-- About screen strings -->
<string name="gaia_is_not_real">Gaia isn\'t real</string> <string name="gaia_is_not_real">Gaia isn\'t real</string>