mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 20:57:24 +01:00
Simplify "and n more" string
This commit is contained in:
parent
7f115f2e83
commit
3b334c4230
@ -469,8 +469,7 @@ class LibraryUpdateService(
|
|||||||
setContentTitle(manga.title)
|
setContentTitle(manga.title)
|
||||||
val chaptersNames = if (chapterNames.size > 5) {
|
val chaptersNames = if (chapterNames.size > 5) {
|
||||||
"${chapterNames.take(4).joinToString(", ")}, " +
|
"${chapterNames.take(4).joinToString(", ")}, " +
|
||||||
resources.getQuantityString(R.plurals.notification_and_n_more,
|
resources.getString(R.string.notification_and_n_more, (chapterNames.size - 4))
|
||||||
(chapterNames.size - 4), (chapterNames.size - 4))
|
|
||||||
} else chapterNames.joinToString(", ")
|
} else chapterNames.joinToString(", ")
|
||||||
setContentText(chaptersNames)
|
setContentText(chaptersNames)
|
||||||
setStyle(NotificationCompat.BigTextStyle().bigText(chaptersNames))
|
setStyle(NotificationCompat.BigTextStyle().bigText(chaptersNames))
|
||||||
|
@ -489,10 +489,7 @@
|
|||||||
<item quantity="one">For %d title</item>
|
<item quantity="one">For %d title</item>
|
||||||
<item quantity="other">For %d titles</item>
|
<item quantity="other">For %d titles</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="notification_and_n_more">
|
<string name="notification_and_n_more">and %1$d more</string>
|
||||||
<item quantity="one">and %1$d more chapter.</item>
|
|
||||||
<item quantity="other">and %1$d more chapters.</item>
|
|
||||||
</plurals>
|
|
||||||
<string name="notification_cover_update_failed">Failed to update cover</string>
|
<string name="notification_cover_update_failed">Failed to update cover</string>
|
||||||
<string name="notification_first_add_to_library">Please add the manga to your library before doing this</string>
|
<string name="notification_first_add_to_library">Please add the manga to your library before doing this</string>
|
||||||
<string name="notification_not_connected_to_ac_title">Sync canceled</string>
|
<string name="notification_not_connected_to_ac_title">Sync canceled</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user