[dokuwiki] Re: btn_html and lang definition

  • From: Michael Klier <chi@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 25 Feb 2009 15:03:03 +0100

On Wed, Feb 25, 2009 at 02:35:44PM +0100, cyrille giquello wrote:
> Hello,
> When I add a button in main.php, the text of the button is only set
> when I put the translation in inc/lang/fr/lang.php.
> When I put the translation in lib/tpl/myTemplate/lang/fr/lang.php the
> button text is empty.
> Have you got an idea on the problem ?

I assume you're using sth. like:

        html_btn($lang['somestring'], ...)

to access template specific language strings you have to use:

        html_btn(tpl_getLang('somestring'), ...)

HTH,
        Michael

-- 
Michael Klier

www:    http://www.chimeric.de
jabber: chi@xxxxxxxxxxxxxxxxxx
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551

Other related posts: