function language() inside plugin
Posted: Fri Dec 04, 2009 6:47 pm
Hi,
i have a plugin which displays some text. But the text is language sensitive so I need to display it in different languages. Can I use the language() function inside my plugin. I would like to put my text inside lang directory but this only seems to work with modules. So I'm stuck with checking the global language variable and then displaying the text appropriately (inside a switch statement...), but this is of course not as I want it done.
i have a plugin which displays some text. But the text is language sensitive so I need to display it in different languages. Can I use the language() function inside my plugin. I would like to put my text inside lang directory but this only seems to work with modules. So I'm stuck with checking the global language variable and then displaying the text appropriately (inside a switch statement...), but this is of course not as I want it done.