miikka
9 years agoMaven
Functions in text keys
Hi,
we are using functions in a few text keys in our community, here's an example:
page.ForumTopicPage.replies-count.text = {0} {0,choice,0#Replies|1#Reply|1<Replies}
This works mostly great and gives you the option to really fine-tune the copy text based on the reply count.
In the Russian language we would need to go one step further and decide the text to be shown based on the last digit of the reply count.
I have not been able to find any documentation about this approach or how/which functions can be used in text keys so has anyone come across anything related?
Cheers,
.M