function language() inside plugin

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
vidaest
New Member
New Member
Posts: 2
Joined: Fri Dec 04, 2009 6:39 pm

function language() inside plugin

Post by vidaest »

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.
Post Reply

Return to “Developers Discussion”