User Tools

Site Tools


i18n

Translation and Internationalization (i18n)

!! This is a work in progress, located in the i18n branch of sugoi !!

Translation in controllers

t._("string to translate");

with parameters :

t._("Hello ::user::",{user:"bob"})

Translation in templates

::_("String to translate")::

Add “raw” if there is HTML inside the string

::raw _("String to <b>translate</b>")::

If the string needs parameters use the “double underscore” function

::__("Hello ::user::",{user:"bob"})::