The t function

0 views
Skip to first unread message

anders.ekdahl

unread,
Jul 10, 2010, 5:19:08 PM7/10/10
to Konstrukt
Hi,
The global view helper function t today calls
$GLOBALS['k_current_context']->translator()->translate($str). Because
of this, the k_Language object is never passed to the translator. I
would suggest that it should call t() on the current context instead,
which handles the language object. That is:
$GLOBALS['k_current_context']->t($str);

/Anders

troels knak-nielsen

unread,
Jul 12, 2010, 9:36:43 AM7/12/10
to kons...@googlegroups.com

Yes, I agree - I'll update it in master branch.

--
troels

Reply all
Reply to author
Forward
0 new messages