mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 22:37:56 +01:00 
			
		
		
		
	Localize some restore strings
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user