diff options
| author | 2018-09-20 23:30:32 -0400 | |
|---|---|---|
| committer | 2018-09-20 23:30:32 -0400 | |
| commit | cf97d00eb6ea4e6c122840a153b3f0949c5a009a (patch) | |
| tree | 7bf738283e1d662b136c6208614e257db10980bd /src | |
| parent | Merge pull request #1368 from ogniK5377/nifm-fix (diff) | |
| parent | game_list: Handle plurals within setFilterResult() better (diff) | |
| download | yuzu-cf97d00eb6ea4e6c122840a153b3f0949c5a009a.tar.gz yuzu-cf97d00eb6ea4e6c122840a153b3f0949c5a009a.tar.xz yuzu-cf97d00eb6ea4e6c122840a153b3f0949c5a009a.zip | |
Merge pull request #1367 from lioncash/plural
game_list: Handle plurals within setFilterResult() better
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 3b3b551bb..e8b2f720a 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -89,15 +89,7 @@ bool GameList::SearchField::KeyReleaseEater::eventFilter(QObject* obj, QEvent* e | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | void GameList::SearchField::setFilterResult(int visible, int total) { | 91 | void GameList::SearchField::setFilterResult(int visible, int total) { |
| 92 | QString result_of_text = tr("of"); | 92 | label_filter_result->setText(tr("%1 of %n result(s)", "", total).arg(visible)); |
| 93 | QString result_text; | ||
| 94 | if (total == 1) { | ||
| 95 | result_text = tr("result"); | ||
| 96 | } else { | ||
| 97 | result_text = tr("results"); | ||
| 98 | } | ||
| 99 | label_filter_result->setText( | ||
| 100 | QString("%1 %2 %3 %4").arg(visible).arg(result_of_text).arg(total).arg(result_text)); | ||
| 101 | } | 93 | } |
| 102 | 94 | ||
| 103 | void GameList::SearchField::clear() { | 95 | void GameList::SearchField::clear() { |