Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed plurals of time played #6937

Merged
merged 6 commits into from Nov 3, 2019
Merged

Fixed plurals of time played #6937

merged 6 commits into from Nov 3, 2019

Conversation

ipkpjersi
Copy link
Contributor

No description provided.

@Megamouse
Copy link
Contributor

For anyone who was wondering why there need to be so many cases:

  1. Using variables won't work for future localization due to varying sentence structure in different languages.
  2. The provided Qt functionality only works if localization is already enabled
  3. The provided Qt functionality only works for single variables

@@ -383,7 +383,12 @@ QString game_list_frame::GetPlayTimeBySerial(const QString& serial)
const qint64 hours_played = elapsed_seconds / 3600;
const qint64 minutes_played = (elapsed_seconds % 3600) / 60;
const qint64 seconds_played = (elapsed_seconds % 3600) % 60;


// For anyone who was wondering why there need to be so many cases:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*needs
:^)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol no

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"For anyone who was wondering why so many cases are needed:"? Kappa

@CookiePLMonster
Copy link
Contributor

FWIW even this doesn't exhaust the list of possible plurals for some non-English languages, but I don't know how this could be handled more gracefully.

@JohnHolmesII
Copy link
Contributor

Couldn't this have been done in a plural agnostic way in the first place? e.g.

"Time played: 5H 16M"

or something similar? The amount of extra coded needed just obfuscates everything. Use an ISO time format or something.

@Megamouse
Copy link
Contributor

Every launcher uses something readable

@JohnHolmesII
Copy link
Contributor

something readable

Right, which is why my proposal is excellent.

@Megamouse Megamouse merged commit 8ed45a0 into RPCS3:master Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants