I did the following to support translation, but it looks like it doesn't work.
inside view.php
inside .tpl
when I view source in production the text is still in English.
how does server side translation work? when I look at other instances where the text is not inside in-line js it appears to add a <span> around the text. so does the translation still happen client side? is it different than explained @ http://en.doc.boardgamearena.com/Transl ... _.28PHP.29
or maybe its cause I switched languages and didn't wait enough time for bga to reflect my language preference update?
thanks.
inside view.php
Code: Select all
$this->tpl['CARD_TEXT_FIELD'] = self::_( "Field: ");Code: Select all
var jstpl_card = '<div style="margin-top:10px;"><span style="font-style:italic;">{CARD_TEXT_FIELD}</span> ${fullFieldText}</div>'how does server side translation work? when I look at other instances where the text is not inside in-line js it appears to add a <span> around the text. so does the translation still happen client side? is it different than explained @ http://en.doc.boardgamearena.com/Transl ... _.28PHP.29
or maybe its cause I switched languages and didn't wait enough time for bga to reflect my language preference update?
thanks.