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
"Error: String parameter 0 may not be used for gender queries {G ..}" #67
Comments
I can't quite follow the code in OpenTTD and that handles gender selection for strings, but it ought to work assuming the cargo measurement name strings have a |
I'm not sure gender works for |
Ok I did a quick test and strgen errors out with |
So eints is right that it doesn't work, meaning the strgen system is incompatible with Spanish. |
Appreciate the answers.
Still, it works with And yeah,
Spanish and a bunch of other gendered languages as well, I assume. So, what's the best course of action here (besides possibly rephrasing the translation)? |
Sweet! So would this require to post an issue to the OpenTTD project instead? |
This is a follow up of OpenTTD/OpenTTD#9873 Closes OpenTTD#67
This is a follow up of OpenTTD/OpenTTD#9873 Closes #67
Already posted to the TT forums but I'll see if I have better luck here.
There's a string:
STR_STATION_VIEW_RESERVED
that has to be translated to Spanish (Mexican) as follows:{YELLOW}({CARGO_SHORT} reservad{G 0 o a}{P 0 "" s} para cargar)
The output in the game should look something like this:
However, the tool complains with
Error: String parameter 0 may not be used for gender queries {G ..}
. Changing the index parameter to1
doesn't work either, and removing the gender syntax and only leaving the plural one does work. What am I missing?I already tried a similar syntax with
STR_TOWN_VIEW_CARGO_FOR_TOWNGROWTH_REQUIRED
:{ORANGE}{CARGO_TINY}/{CARGO_LONG}{RED} (todavía requerid{G 1 o a}{P 1 "" s})
And it came out without errors. I can sort of rephrase the translation as a workaround to avoid using genders in that specific string, but I'm more interested in knowing what's causing the G syntax to fail.
The documentation in the wiki is kind of confusing and seems incomplete, so I'd appreciate any help here. TIA.
The text was updated successfully, but these errors were encountered: