Commit 55e30cbd authored by Sébastien Toque's avatar Sébastien Toque

res: pluralize search_found_results string

parent bb4d95ad
......@@ -11,7 +11,10 @@
<string name="sortby_length">Durée</string>
<string name="searchable_hint">Recherche…</string>
<string name="search_history">Historique</string>
<string name="search_found_results">%1$d résultats trouvés</string>
<plurals name="search_found_results_quantity">
<item quantity="one">%d résultat trouvé</item>
<item quantity="other">%d résultats trouvés</item>
</plurals>
<string name="show_player">Afficher Lecteur</string>
<string name="hide_mini_player">Cacher Mini-lecteur</string>
<string name="play">Lire</string>
......
......@@ -11,7 +11,10 @@
<string name="sortby_length">Length</string>
<string name="searchable_hint">Search…</string>
<string name="search_history">History</string>
<string name="search_found_results">%1$d results found</string>
<plurals name="search_found_results_quantity">
<item quantity="one">%d result found</item>
<item quantity="other">%d results found</item>
</plurals>
<string name="show_player">Show player</string>
<string name="hide_mini_player">Hide mini-player</string>
<string name="play">Play</string>
......
......@@ -135,7 +135,7 @@ public class SearchActivity extends ListActivity {
}
mResultAdapter.sort();
String headerText = getString(R.string.search_found_results, results);
String headerText = getResources().getQuantityString(R.plurals.search_found_results_quantity, results, results);
showListHeader(headerText);
setListAdapter(mResultAdapter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment