mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #4241 from citra-valentin/port-yuzu-1367
Port yuzu/#1367 from yuzu: "game_list: Handle plurals within setFilterResult() better"
This commit is contained in:
		
						commit
						a96f0f5167
					
				
					 1 changed files with 1 additions and 9 deletions
				
			
		|  | @ -85,15 +85,7 @@ void GameListSearchField::setFilterResult(int visible, int total) { | ||||||
|     this->visible = visible; |     this->visible = visible; | ||||||
|     this->total = total; |     this->total = total; | ||||||
| 
 | 
 | ||||||
|     QString result_of_text = tr("of"); |     label_filter_result->setText(tr("%1 of %n result(s)", "", total).arg(visible)); | ||||||
|     QString result_text; |  | ||||||
|     if (total == 1) { |  | ||||||
|         result_text = tr("result"); |  | ||||||
|     } else { |  | ||||||
|         result_text = tr("results"); |  | ||||||
|     } |  | ||||||
|     label_filter_result->setText( |  | ||||||
|         QString("%1 %2 %3 %4").arg(visible).arg(result_of_text).arg(total).arg(result_text)); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| QString GameList::getLastFilterResultItem() { | QString GameList::getLastFilterResultItem() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue