Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Language in Plugins

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
19 years 1 day 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
19 years 1 day 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
19 years 1 day 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