mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Replace restore completion string with plurals
(cherry picked from commit fb97ac47bc)
			
			
This commit is contained in:
		| @@ -137,7 +137,7 @@ internal class BackupNotifier(private val context: Context) { | ||||
|  | ||||
|         with(completeNotificationBuilder) { | ||||
|             setContentTitle(context.getString(R.string.restore_completed)) | ||||
|             setContentText(context.getString(R.string.restore_completed_content, timeString, errorCount)) | ||||
|             setContentText(context.resources.getQuantityString(R.plurals.restore_completed_message, errorCount, timeString, errorCount)) | ||||
|  | ||||
|             // Clear old actions if they exist | ||||
|             if (mActions.isNotEmpty()) { | ||||
|   | ||||
| @@ -326,7 +326,10 @@ | ||||
|     <string name="backup_created">Backup created</string> | ||||
|     <string name="restore_completed">Restore completed</string> | ||||
|     <string name="restore_duration">%02d min, %02d sec</string> | ||||
|     <string name="restore_completed_content">Done in %1$s with %2$s errors</string> | ||||
|     <plurals name="restore_completed_message"> | ||||
|         <item quantity="one">Done in %1$s with %2$s error</item> | ||||
|         <item quantity="other">Done in %1$s with %2$s errors</item> | ||||
|     </plurals> | ||||
|     <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="backup_in_progress">Backup is already in progress</string> | ||||
|     <string name="backup_choice">What do you want to backup?</string> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user