[dokuwiki] Re: btn_html and lang definition

  • From: Anika Henke <anika@xxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 26 Feb 2009 10:17:34 +0000

cyrille giquello wrote:
2009/2/25 Anika Henke <anika@xxxxxxxxxxxxxxx>:
Anika Henke wrote:
   print html_btn('back',$backID,'',array());
Oh, I just realised, that was the worse of the two examples from my
template, because 'btn_back' is already in the main inc/lang/<lang>/lang.php
and not in the template's lang.php.
The better example:
   print html_btn('discussion',$discussNS.$ID,'',array());
And I have $lang['btn_discussion'] = 'Discussion'; in my template's many
lang.php files.


Thanks Anika,
It is what I did, re-read my first message. But it does not work. I
will have a look again in my files...

My template's lang files are from before we had localised template strings. I suppose, it should be done differently now, but I have this in the head of my main.php:

include_once(dirname(__FILE__).'/lang/en/lang.php');
@include_once(dirname(__FILE__).'/lang/'.$conf['lang'].'/lang.php');

Anika
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: