🤌 fix plurals linst issue

This commit is contained in:
Michael Pöhn
2023-11-09 14:25:58 +01:00
committed by Hans-Christoph Steiner
parent 289ca0dd8b
commit cd0a8687be
2 changed files with 6 additions and 4 deletions

View File

@@ -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));
}

View File

@@ -744,11 +744,13 @@ This often occurs with apps installed via Google Play or other sources, if they
<string name="copied_url_to_clipboard">Copied URL to clipboard</string>
<string name="copied_permission_to_clipboard">Copied permission name to clipboard</string>
<string name="paste">Paste</string>
<string name="paste">Paste</string>PluralsCandidate
<string name="ipfsgw_title">IPFS Gateways</string>
<string name="ipfsgw_explainer">Download apps from IPFS web-endpoints. (Only works for F-Droid repositories with IPFS support.)</string>
<string name="ipfsgw_summary">Download apps using IPFS web-endpoints: %d enabled</string>
<plurals name="ipfsgw_summary">
<item quantity="other">Download apps using IPFS web-endpoints: %1$d enabled</item>
</plurals>
<string name="ipfsgw_summary_disabled">Download apps using IPFS web-endpoints: disabled</string>
<string name="ipfsgw_add_title">Add IPFS Gateway</string>
<string name="ipfsgw_add_add">Add</string>