Localization parameters don't get translated?
6 years 7 months ago #2984
by Frank
BTW, this change is now in 2.8.6a4
If a Parameter has a text matching another Term, then the Term's translation is used.
So that you can have terms like:
"SWORD": English=Sword, Spanish=Espada
"TEXT": English="You got a {[ITEM]}", Spanish="Tienes una {[ITEM]}"
If the Parameter text for "ITEM" is "SWORD"
instead of "Tienes una SWORD" now you get
English="You got a Sword"
Spanish="Tienes una Espada"
Hope that helps,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Localization parameters don't get translated?
What do you think if we modify the code so that before parameters are injected into the translation, they check if there is a term with that text, if there isn't the parameter is injected, but if there is, then the translation is injected instead.
BTW, this change is now in 2.8.6a4
If a Parameter has a text matching another Term, then the Term's translation is used.
So that you can have terms like:
"SWORD": English=Sword, Spanish=Espada
"TEXT": English="You got a {[ITEM]}", Spanish="Tienes una {[ITEM]}"
If the Parameter text for "ITEM" is "SWORD"
instead of "Tienes una SWORD" now you get
English="You got a Sword"
Spanish="Tienes una Espada"
Hope that helps,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
6 years 7 months ago #2992
by rtm223
Replied by rtm223 on topic Localization parameters don't get translated?
Sorry for the delay in responding.
Just updated to 2.8.6a5 from the beta folder and my parameters are now appearing. Haven't checked the terms as parameters fix yet, but that should be super useful.
Thanks!
Just updated to 2.8.6a5 from the beta folder and my parameters are now appearing. Haven't checked the terms as parameters fix yet, but that should be super useful.
Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.352 seconds