From 0ae4d1369db80883d6bf53a0b3d025e15f31e4cb Mon Sep 17 00:00:00 2001 From: bopol Date: Sun, 15 Mar 2020 07:25:48 -0300 Subject: [PATCH] use plural string for feed_group_dialog_selection_count --- .../schabi/newpipe/local/feed/FeedFragment.kt | 2 +- .../subscription/dialog/FeedGroupDialog.kt | 6 ++- app/src/main/res/values-eo/strings.xml | 40 +++++++++++++++++++ app/src/main/res/values-fr/strings.xml | 8 ++-- app/src/main/res/values/strings.xml | 5 ++- 5 files changed, 54 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt index 64020d14c..d41a2e37b 100644 --- a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt +++ b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt @@ -128,7 +128,7 @@ class FeedFragment : BaseListFragment() { .putBoolean(getString(R.string.feed_use_dedicated_fetch_method_key), !usingDedicatedMethod) .apply() } - .setPositiveButton(android.R.string.ok, null) + .setPositiveButton(resources.getString(R.string.finish), null) .create() .show() return true diff --git a/app/src/main/java/org/schabi/newpipe/local/subscription/dialog/FeedGroupDialog.kt b/app/src/main/java/org/schabi/newpipe/local/subscription/dialog/FeedGroupDialog.kt index 27ff38a3f..eecbf515d 100644 --- a/app/src/main/java/org/schabi/newpipe/local/subscription/dialog/FeedGroupDialog.kt +++ b/app/src/main/java/org/schabi/newpipe/local/subscription/dialog/FeedGroupDialog.kt @@ -189,7 +189,8 @@ class FeedGroupDialog : DialogFragment() { val groupAdapter = GroupAdapter() groupAdapter.spanCount = if (useGridLayout) 4 else 1 - val selectedCountText = getString(R.string.feed_group_dialog_selection_count, this.selectedSubscriptions.size) + var subscriptionsCount = this.selectedSubscriptions.size + val selectedCountText = resources.getQuantityString(R.plurals.feed_group_dialog_selection_count, subscriptionsCount, subscriptionsCount) selected_subscription_count_view.text = selectedCountText subscriptions_selector_header_info.text = selectedCountText @@ -234,7 +235,8 @@ class FeedGroupDialog : DialogFragment() { item.isSelected = isSelected item.notifyChanged(PickerSubscriptionItem.UPDATE_SELECTED) - val updateSelectedCountText = getString(R.string.feed_group_dialog_selection_count, this.selectedSubscriptions.size) + subscriptionsCount = this.selectedSubscriptions.size + val updateSelectedCountText = resources.getQuantityString(R.plurals.feed_group_dialog_selection_count, subscriptionsCount, subscriptionsCount) selected_subscription_count_view.text = updateSelectedCountText subscriptions_selector_header_info.text = updateSelectedCountText } diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index 88d45874d..e4e3d708d 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -547,6 +547,46 @@ %s sekundo %s sekundoj + + %d minuto + %d minutoj + + + + %d horo + %d horoj + + + + %d tago + %d tagoj + + + + Abonfluoj grupoj + Lasta ĝisdatigo: %s + Ne ŝarĝitaj: %d + Ŝarĝante abonfluon… + Procesante abonfluon… + Seletkti abonojn + + Selektita: %d + Selektitaj: %d + + No subscription selected + Malplena grupa nomo + Nomo + Ĉu vi volas forviŝi tion grupon? + Nova + + Abonfluo + Abonflua ĝisdatiga sojlo + Tempo post lasta ĝisdatigo antaŭ abono estas konsiderita malĝisdatigita — %s + Ĉiam ĝisdatigi + Ŝarĝi el dediĉita abonfluo kiam ĝi haveblas + Havebla en kelkaj servoj, ĝi estas ĝenerale multe pli rapida, sed povas doni limigita kvanto da aĵoj kaj ofte malpreciza informoj (ekzemple: neniu duracio, ajâ tipo, neniu « nuna » statuso). + Ŝalti rapidan modon + Malŝati rapidan modon Pro ExoPlayer limoj, la serĉa daŭro estas metita %d sekundojn Mutigi Malmutigi diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index a4f05d5f1..876900688 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -546,13 +546,12 @@ En raison des contraintes d’ExoPlayer, le pas de déplacement a été réglée à %d secondes Couper le son Remettre le son - - %s seconde %s secondes + %d minute %d minutes @@ -576,8 +575,11 @@ Chargement du flux… Préparation du flux… Choisir les abonnements - Sélectionnés : %d Aucun abonnement sélectionné + + Sélectionné : %d + Sélectionnés : %d + Nom de groupe vide Nom Voulez-vous supprimer ce groupe ? diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d2c0f3411..3f4ff7c00 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -623,8 +623,11 @@ Loading feed… Processing feed… Select subscriptions - Selected: %d No subscription selected + + Selected: %d + Selected: %d + Empty group name Name Do you want to delete this group?