diff --git a/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java b/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java index df7328a91..413e878a0 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java +++ b/app/src/main/java/org/fdroid/fdroid/views/PreferencesFragment.java @@ -417,8 +417,8 @@ public class PreferencesFragment extends PreferenceFragmentCompat private void updateIpfsGatewaySummary() { Preferences prefs = Preferences.get(); if (prefs.isIpfsEnabled()) { - int cnt = Preferences.get().getActiveIpfsGateways().size(); - ipfsGateways.setSummary(String.format(getString(R.string.ipfsgw_summary), cnt)); + int cnt = prefs.getActiveIpfsGateways().size(); + ipfsGateways.setSummary(getResources().getQuantityString(R.plurals.ipfsgw_summary, cnt, cnt)); } else { ipfsGateways.setSummary(getString(R.string.ipfsgw_summary_disabled)); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4b61b07df..caf8f0c87 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -744,11 +744,13 @@ This often occurs with apps installed via Google Play or other sources, if they Copied URL to clipboard Copied permission name to clipboard - Paste + PastePluralsCandidate IPFS Gateways Download apps from IPFS web-endpoints. (Only works for F-Droid repositories with IPFS support.) - Download apps using IPFS web-endpoints: %d enabled + + Download apps using IPFS web-endpoints: %1$d enabled + Download apps using IPFS web-endpoints: disabled Add IPFS Gateway Add