0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

remove method name from translatable string "import_error_copy_file_to_cache" (#12109)

This commit is contained in:
Pratyaksh_Khurana 2022-08-23 20:09:38 +05:30 committed by GitHub
parent ec80ecde46
commit f8b029a8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ object ImportUtils {
// Copy to temporary file
filename = ensureValidLength(filename)
val tempOutDir = Uri.fromFile(File(context.cacheDir, filename)).encodedPath!!
val errorMessage = if (copyFileToCache(context, data, tempOutDir)) null else context.getString(R.string.import_error_copy_file_to_cache)
val errorMessage = if (copyFileToCache(context, data, tempOutDir)) null else context.getString(R.string.import_error_copy_to_cache)
// Show import dialog
if (errorMessage != null) {
CrashReportService.sendExceptionReport(RuntimeException("Error importing apkg file"), "IntentHandler.java", "apkg import failed")

View File

@ -166,7 +166,7 @@
<string name="import_error_not_apkg_extension">Filename “%s” doesnt have .apkg or .colpkg extension</string>
<string name="import_error_load_imported_database">Anki Database (.anki2) replacements are not yet supported. Please see the manual for replacement instructions.</string>
<string name="import_error_content_provider">The selected file couldnt be imported automatically by AnkiDroid. Please see the user manual for how to manually import anki files: \n%s</string>
<string name="import_error_copy_file_to_cache">copyFileToCache() failed (possibly out of storage space)</string>
<string name="import_error_copy_to_cache">Failed to cache file (possibly out of storage space)</string>
<string name="import_error_multiple_colpkg">Multiple colpkg files were selected.</string>
<string name="import_error_colpkg_apkg">Both apkg &amp; colpkg files were selected at once.</string>
<string name="import_stats_error">Some errors occurred while importing the following files:\n%s</string>>