theme translation

Asked by X Xiao

what's the reason to use Theme::Translate("something") instead of __("something")? the latter is the standard way to do po->mo, how to do similar things for Theme::Translate?

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Harrington
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Harrington (alexharrington) said :
#1

It's part of the templating engine. The two calls are synonymous, but
allows us to switch the underlying translation engine at a later date more
easily.

If you're writing templates then you should use the template class and not
direct calls to the __() method.

Revision history for this message
X Xiao (austinxxh-linux) said :
#2

Thanks Alex Harrington, that solved my question.