Elxis CMS Forum

Support => Language => Topic started by: nikos on June 05, 2013, 11:06:19

Title: Multilingual plugin help
Post by: nikos on June 05, 2013, 11:06:19
Developing a plugin how i can write multilingual plugin help?

Code: [Select]

/***************/
/* PLUGIN HELP */
/***************/
private function Help() {
?>
<p>bla....bla...bla</p>

Title: Re: Multilingual plugin help
Post by: speck on June 05, 2013, 20:29:28
         /* PLUGIN HELP */
   /***************/
   private function Help() {
      $elxis = eFactory::getElxis();
      $eLang = eFactory::getLang();
      echo '<p><img src="'.$elxis->secureBase().'/components/com_content/plugins/blablabla/includes/mublablabla.png" alt="blablabla" border="0" style="float:right;" />'.$eLang->get('DESCRHELP')."</p>\n";
   }

where DESCRHELP is a variable in the language fle plug-in
Title: Re: Multilingual plugin help
Post by: nikos on June 05, 2013, 22:53:05
Thank you Speck, i will try it.

--------------------------------

I just did and works fine. I like this way and i think is useful for developers to provide multilingual help to users.

Grazie tanto caro!