Localization parameters don't get translated?

More
5 years 11 months ago #2984 by Frank

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.

More
5 years 11 months ago #2992 by rtm223
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!

Please Log in or Create an account to join the conversation.

Time to create page: 0.155 seconds
Template by JoomlaShine