mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	More Plurals
(cherry picked from commit bcd6c33ed8aaa1cf81c027f88ce4a954e379a545)
This commit is contained in:
		| @@ -29,7 +29,7 @@ class MigrationMangaDialog<T>(bundle: Bundle? = null) : DialogController(bundle) | ||||
|             else "")) ?: "" | ||||
|         return MaterialDialog.Builder(activity!!) | ||||
|             .content(confirmString) | ||||
|             .positiveText(android.R.string.yes) | ||||
|             .positiveText(if (copy) R.string.copy else R.string.migrate) | ||||
|             .negativeText(android.R.string.no) | ||||
|             .onPositive { _, _ -> | ||||
|                 if (copy) | ||||
|   | ||||
| @@ -286,11 +286,8 @@ class MigrationListController(bundle: Bundle? = null) : BaseController(bundle), | ||||
|             val res = resources | ||||
|             if (res != null) { | ||||
|                 activity?.toast( | ||||
|                     res.getString( | ||||
|                         R.string.x_migrations, | ||||
|                         if (manaulMigrations == 0) res.getString(R.string.no) | ||||
|                         else "$manaulMigrations" | ||||
|                     ) | ||||
|                     res.getQuantityString(R.plurals.manga_migrated, | ||||
|                         manaulMigrations, manaulMigrations) | ||||
|                 ) | ||||
|             } | ||||
|             router.popCurrentController() | ||||
| @@ -382,8 +379,8 @@ class MigrationListController(bundle: Bundle? = null) : BaseController(bundle), | ||||
|     override fun handleBack(): Boolean { | ||||
|         activity?.let { | ||||
|             MaterialDialog.Builder(it).title(R.string.stop_migration) | ||||
|                 .positiveText(R.string.yes) | ||||
|                 .negativeText(R.string.no) | ||||
|                 .positiveText(R.string.action_stop) | ||||
|                 .negativeText(android.R.string.cancel) | ||||
|                 .onPositive { _, _ -> | ||||
|                     router.popCurrentController() | ||||
|                     migrationsJob?.cancel() | ||||
|   | ||||
| @@ -491,9 +491,10 @@ | ||||
|     <string name="confirm_migration">Migrate %1$d%2$s manga?</string> | ||||
|     <string name="confirm_copy">Copy %1$d%2$s manga?</string> | ||||
|     <string name="skipping_x">(skipping %1$d)</string> | ||||
|     <string name="x_migrations">%1$s manga migrated</string> | ||||
|     <string name="no">No</string> | ||||
|     <string name="yes">Yes</string> | ||||
|     <plurals name="manga_migrated"> | ||||
|         <item quantity="one">%d manga migrated</item> | ||||
|         <item quantity="other">%d manga migrated</item> | ||||
|     </plurals> | ||||
|     <string name="error_fetching_migration">No chapters found, this manga cannot be used for | ||||
|         migration</string> | ||||
|     <string name="no_alternatives_found">No Alternatives Found</string> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user