Skip to Content Skip to Menu

Language in Plugins

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
18 years 11 months ago #2733 by hypnotoad
Language in Plugins was created by hypnotoad
For my current Awards-plugin, I want to give the possibility to use other languages then the currently hardcoded English.
Where am I to put the language constants? In the CB-lang file?
But then, everyone installing the plugin has to copy and paste the needed definitions before using, doesn't he?

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in or Create an account to join the conversation.

  • JoomlaJoe
  • JoomlaJoe
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 14
18 years 11 months ago #2744 by JoomlaJoe
Replied by JoomlaJoe on topic Re:Language in Plugins
best way is to include a language directory as part of your plugin and then check which language is set in joomla and access tha file. There are lots of examples of this in components. Hope that helps

JoomlaJoe *The developer formally known as MamboJoe*
CB Core Team

Please Log in or Create an account to join the conversation.

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
18 years 11 months ago #2748 by hypnotoad
Replied by hypnotoad on topic Re:Language in Plugins
You're right, maybe that's the best thing. Because my plugin comes along with a small component, I'll put it the language there.
But for other plugins, maybe some standard way to proceed would be nice. Maybe including an extra file for each cb-plugin from the corresponding lang-folder? (with the name of the plugin)

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum