[dokuwiki] Re: [PATCH] Proposal for translatable Javascript strings in plugins

  • From: "Gabriel Birke" <Gabriel.Birke@xxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Fri, 26 Oct 2007 14:58:09 +0200

> -----Original Message-----
> There is a mechanism for this in the core translation file. It's not
> widely used yet (I think it's only two or three strings). It 
> works like
> this: $lang['js'] is an array and everything in it will be 
> available in
> javascript from the global LANG object.
> 
> I'd like to have the same mechanism in the plugins. So instead of
> having a JS file to edit it should be in the lang.php file as well.
> js.php should then make it available as you suggested in
> LANG['plugins']['pluginname']
> 
> It makes sense to use the same mechanism in plugins as in core.


here is the new patch for the functionality. 
It not only makes sense, it's also more straightforward and the patch is
smaller :)

Gabriel

Other related posts:

  • » [dokuwiki] Re: [PATCH] Proposal for translatable Javascript strings in plugins