[SOLVED] translation for dynamic state description
Posted: 21 July 2020, 17:14
trying to figure out the best approach to fix a translation bug . for a particular state I use a dynamic description which is populated via arg
but it does not translate to other languages because the string is not an exact match. if I change description to clienttranslate('${you} dynamic description') then ${you} is not substituted.
how can I accomplish both? any ideas?
thanks
Code: Select all
return array(
description => clienttranslate("dynamic description")
)
Code: Select all
in my state I have the following:
"description" => '${actplayer} ${description}',
"descriptionmyturn" => '${you} ${description}',
how can I accomplish both? any ideas?
thanks