diff options
| author | Heiko W. Rupp <hwr@pilhuhn.de> | 2012-09-09 22:22:41 +0200 |
|---|---|---|
| committer | Heiko W. Rupp <hwr@pilhuhn.de> | 2012-09-09 22:22:41 +0200 |
| commit | 53df40a67049e1d9b0f2d8611e1c7147f9378a8a (patch) | |
| tree | 6d615085111ddaddeda24af3ec6294a0a0f8e08e /main/src/cgeo/geocaching/CacheDetailActivity.java | |
| parent | 70bacd6a868db73d9a8cef23fe1885b5b147e991 (diff) | |
| download | cgeo-53df40a67049e1d9b0f2d8611e1c7147f9378a8a.zip cgeo-53df40a67049e1d9b0f2d8611e1c7147f9378a8a.tar.gz cgeo-53df40a67049e1d9b0f2d8611e1c7147f9378a8a.tar.bz2 | |
GH_996 use the <plurals> mechanism
Diffstat (limited to 'main/src/cgeo/geocaching/CacheDetailActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index e8c6aec..b7abb94 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -2175,12 +2175,8 @@ public class CacheDetailActivity extends AbstractActivity { holder.count.setVisibility(View.VISIBLE); if (log.found == -1) { holder.count.setVisibility(View.GONE); - } else if (log.found == 0) { - holder.count.setText(res.getString(R.string.cache_count_no)); - } else if (log.found == 1) { - holder.count.setText(res.getString(R.string.cache_count_one)); - } else { - holder.count.setText(log.found + " " + res.getString(R.string.cache_count_more)); + } else { + holder.count.setText(res.getQuantityText(R.plurals.cache_counts,log.found)); } // logtext, avoid parsing HTML if not necessary |
