mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 05:59:14 +01:00
Localize some restore strings
This commit is contained in:
parent
19507d1837
commit
7c014292d2
@ -224,7 +224,7 @@ class BackupRestoreService : Service() {
|
||||
json.get(CATEGORIES)?.let {
|
||||
backupManager.restoreCategories(it.asJsonArray)
|
||||
restoreProgress += 1
|
||||
showRestoreProgress(restoreProgress, restoreAmount, "Categories added")
|
||||
showRestoreProgress(restoreProgress, restoreAmount, getString(R.string.categories))
|
||||
}
|
||||
|
||||
mangasJson
|
||||
|
@ -111,8 +111,8 @@ internal class BackupNotifier(private val context: Context) {
|
||||
}
|
||||
|
||||
fun showRestoreComplete(time: Long, errorCount: Int, path: String?, file: String?) {
|
||||
val timeString = String.format(
|
||||
"%02d min, %02d sec",
|
||||
val timeString = context.getString(
|
||||
R.string.restore_duration,
|
||||
TimeUnit.MILLISECONDS.toMinutes(time),
|
||||
TimeUnit.MILLISECONDS.toSeconds(time) - TimeUnit.MINUTES.toSeconds(
|
||||
TimeUnit.MILLISECONDS.toMinutes(time)
|
||||
|
@ -319,7 +319,8 @@
|
||||
<string name="dialog_restoring_source_not_found">Restoring backup\n%1$s source not found</string>
|
||||
<string name="backup_created">Backup created</string>
|
||||
<string name="restore_completed">Restore completed</string>
|
||||
<string name="restore_completed_content">Restore took %1$s with %2$s errors</string>
|
||||
<string name="restore_duration">%02d min, %02d sec</string>
|
||||
<string name="restore_completed_content">Done in %1$s with %2$s errors</string>
|
||||
<string name="backup_restore_content">Restore uses sources to fetch data, carrier costs may apply.\n\nMake sure you have installed all necessary extensions and are logged in to sources and tracking services before restoring.</string>
|
||||
<string name="file_saved">File saved at %1$s</string>
|
||||
<string name="backup_in_progress">Backup is already in progress</string>
|
||||
|
Loading…
Reference in New Issue
Block a user