Translation string format inconsistencies should not be caught in java
They should not exist at all, i.e. our translatebot should not allow them in (they break things in other places, not just here)
This commit is contained in:
parent
fa08a8cfa4
commit
3b5e883397
@ -118,18 +118,15 @@ public class SearchResults extends ListActivity {
|
|||||||
|
|
||||||
TextView tv = (TextView) findViewById(R.id.description);
|
TextView tv = (TextView) findViewById(R.id.description);
|
||||||
String headertext;
|
String headertext;
|
||||||
try {
|
if (apps.size() == 0) {
|
||||||
if (apps.size() == 0)
|
|
||||||
headertext = String.format(getString(R.string.searchres_noapps),
|
headertext = String.format(getString(R.string.searchres_noapps),
|
||||||
mQuery);
|
mQuery);
|
||||||
else if (apps.size() == 1)
|
} else if (apps.size() == 1) {
|
||||||
headertext = String.format(getString(R.string.searchres_oneapp),
|
headertext = String.format(getString(R.string.searchres_oneapp),
|
||||||
mQuery);
|
mQuery);
|
||||||
else
|
} else {
|
||||||
headertext = String.format(getString(R.string.searchres_napps),
|
headertext = String.format(getString(R.string.searchres_napps),
|
||||||
apps.size(), mQuery);
|
apps.size(), mQuery);
|
||||||
} catch(Exception ex) {
|
|
||||||
headertext = "TRANSLATION ERROR!";
|
|
||||||
}
|
}
|
||||||
tv.setText(headertext);
|
tv.setText(headertext);
|
||||||
Log.d("FDroid", "Search for '" + mQuery + "' returned " + apps.size()
|
Log.d("FDroid", "Search for '" + mQuery + "' returned " + apps.size()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user