Can someone please explain to me how I have to use the _t function in my templates with php and with js?
I have translatable and i18n turned on in my config and everything seems ok (login page is German and I can create translations)
In sapphire/lang/de_DE.php it says: $lang['de_DE']['SearchForm']['SEARCH'] = 'Suche';
In sapphire/lang/en_US.php it says: $lang['de_DE']['SearchForm']['SEARCH'] = 'Search';
I use _t('SEARCHFORM.SEARCH') in my page.php to set the text of the searchbutton, but the searchbutton gets no text (and there is no error).
i18n.js loads de_DE and en_US language files, and the translation for SEARCHFORM.SEARCH is in those files. However, if I use <% _t('SEARCHFORM.SEARCH') %> the result is again empty.
I have looked everywhere in wiki and forum and book, but I can not find anything, so it must be something fairly obvious that I am missing :-)