[dokuwiki] Re: Internationalization in plugin descriptions (via plugin.info.txt)

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 3 Dec 2010 09:54:14 +0100

> I would like to ask what the method is to provide a plugin.info.txt file yet
> at the same time override specific fields in the loaded array;

It's quite simple. Implement a getInfo() method as you used to do, but
load the plugin.info.txt in that function using confToHash(). Then
override the fields you'd like to translate. Your plugin.info.txt
should be in english then of course.



-- 
splitbrain.org
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: