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
Numerus form not applied for trip summary in en-GB #3256
Comments
So our translations come from Transifex, where these plurals need to be handled in the slightly awkward UI. It's a bit hard to search for them, but searching for You can see which ones are wrong using this command on the Subsurface sources:
So this is the first part - just fix those translations on Transifex (and let me know once you've done this so I can pull the new translations into Subsurface sources). But the second part is more interesting. There are more texts that aren't identified as numerus forms in the sources. I believe that in most cases this is intentional (because at the time the string is set, we don't know how many items there are / will be), but a quick hunt through the sources seems to indicate that there are some where it might be worth while fixing that. You can get those via
I'm not saying that you should figure out how to fix all of them - I'm just trying to make sure you understand that not all of the cases where we have a |
Yes, the Transifex UI is a little bit awkward. It looks like I have access to suggest edits, but not to confirm them. I've started with adding suggestions for 2002 and 2533. I assume you will need to confirm those edits and then pull them back into Subsurface? |
No, we don't use the 'review' part of their UI. We trust that people work with good intentions... |
Have you joined the Subsurface team? |
I wonder if this was because another translator marked those strings as 'reviewed'... |
Yes, that appeared to work. I've saved the text for contexts |
So the dive trip summary text was already numerus, and just required the language file to be updated. Speaking of which .. can be added as a collaborator so I can push my branch up? |
@dirkhh now that you've merged my code changes into the master, I've gone to add the numerus forms into Transifex, but I can't find (or don't have permission) to add a numerus form to an existing string. If the string already has a numerus form. I can only edit the singular/plural versions if they already exist. Edit: or is there a push/sync process from the source to transifex which does this? |
I have to push the new strings. Sorry - I am not being nearly as responsive as I should be regarding your changes. |
this has happened I can see the strings in Transifex now |
And translations are done. Edit. Oops, translations are done for en-GB. Will roll out to en-US when I get a chance. |
Describe the issue:
Issue long description:
The summary line for dive trip shows "(# dive(s))" instead of using the numerus form from translation file (ie: "1 dive" vs "2 dives")
Operating system:
Linux and Windows
Subsurface version:
v5.0.1
Steps to reproduce:
Current behavior:
The trip summary line is shown as "<title>, (x dive(s))"
Expected behavior:
Trip summary line should show "<title>, (x dives)" if multiple dives are in the trip
or
"<title>, (1 dive)" if only one dive is in the trip
Additional information:
Mentions:
The text was updated successfully, but these errors were encountered: