suyu/src/yuzu
Lioncash e980e90d6e game_list: Handle plurals within setFilterResult() better
Qt provides an overload of tr() that operates on quantities in relation
to pluralization. This also allows the translation to adapt based on the
target language rules better.

For example, the previous code would result in an incorrect translation
for the French language (which doesn't use the pluralized version of
"result" in the case of a total of zero. While in English it's
correct to use the pluralized version of "result", that is, "results"

---

For example:

English: "0 results"

French: "0 résultat" (uses the singular form)

In French, the noun being counted is singular if the quantity is 0 or 1.
In English, on the other hand, if the noun being counted has a quantity
of 0 or N > 1, then the noun is pluralized.

---

For another example in a language that has different counting methods
than the above, consider English and Irish. Irish has a special form of
of a grammatical number called a dual. Which alters how a word is
written when N of something is 2. This won't appear in this case with a
direct number "2", but it would change if we ever used "Two" to refer to
two of something. For example:

English: "Zero results"

Irish: "Toradh ar bith"

English: "One result"

Irish: "Toradh amháin"

English: "Two results"

Irish: "Dhá thorthaí" <- Dual case

Which is an important distinction to make between singular and plural,
because in other situations, "two" on its own would be written as "dó"
in Irish. There's also a few other cases where the order the words are
placed *and* whether or not the plural or singular variant of the word
is used *and* whether or not the word is placed after or between a set
of numbers can vary. Counting in Irish also differs depending on whether or not
you're counting things (like above) or counting people, in which case an
entirely different set of numbers are used.

It's not important for this case, but it's provided as an example as to why one
should never assume the placement of values in text will be like that of
English or other languages. Some languages have very different ways to
represent counting, and breaking up the translated string like this
isn't advisable because it makes it extremely difficult to get right
depending on what language a translator is translating text into due to
the ambiguity of the strings being presented for translation.

In this case a translator would see three fragmented strings on
Transifex (and not necessarily grouped beside one another, but even
then, it would still be annoying to decipher):

- "of"
- "result"
- "results"

There is no way a translator is going to know what those sets of words
are actually used for unless they look at the code to see what is being
done with them (which they shouldn't have to do).
2018-09-20 01:35:50 -04:00
..
configuration Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
debugger Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
util yuzu/util: Antialias game list compatibility pixmaps 2018-09-17 06:01:14 -04:00
about_dialog.cpp Better Title Bar Display 2018-09-07 11:54:51 +05:30
about_dialog.h qt: Add missing override specifiers where applicable 2018-08-06 13:29:14 -04:00
aboutdialog.ui Merge pull request #859 from FearlessTobi/port-3837 2018-07-30 10:11:43 -07:00
bootmanager.cpp Port #4141 from citra: Joystick hotplug support (#1275) 2018-09-10 21:29:59 -04:00
bootmanager.h core: Namespace EmuWindow 2018-08-11 20:20:21 -04:00
CMakeLists.txt yuzu: Move compatibility list specifics to their own source files 2018-09-09 19:45:25 -04:00
compatibility_list.cpp yuzu: Move compatibility list specifics to their own source files 2018-09-09 19:45:25 -04:00
compatibility_list.h yuzu: Move compatibility list specifics to their own source files 2018-09-09 19:45:25 -04:00
game_list.cpp game_list: Handle plurals within setFilterResult() better 2018-09-20 01:35:50 -04:00
game_list.h game_list: Make CompatibilityList parameter of NavigateToGamedbEntryRequested() a const reference 2018-09-09 19:46:07 -04:00
game_list_p.h game_list_p: Amend typo in GameListItemCompat's constructor parameter 2018-09-17 05:31:30 -04:00
game_list_worker.cpp yuzu: Move compatibility list specifics to their own source files 2018-09-09 19:45:25 -04:00
game_list_worker.h yuzu: Move compatibility list specifics to their own source files 2018-09-09 19:45:25 -04:00
hotkeys.cpp qt/hotkey: Get rid of global hotkey map instance 2018-08-07 02:28:17 -04:00
hotkeys.h qt/hotkey: Get rid of global hotkey map instance 2018-08-07 02:28:17 -04:00
hotkeys.ui
Info.plist
main.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
main.h game_list: Make CompatibilityList parameter of NavigateToGamedbEntryRequested() a const reference 2018-09-09 19:46:07 -04:00
main.ui qt: Add UI options to change NAND/SD dirs 2018-09-03 19:23:33 -04:00
ui_settings.cpp
ui_settings.h Avoid parsing RomFS to directory in NCA 2018-08-06 23:06:33 -04:00
yuzu.rc