Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

any hints for using language in plugin for cb2

  • jojo12
  • jojo12
  • OFFLINE
  • Posts: 957
  • Thanks: 109
  • Karma: 25
8 years 10 months ago #274592 by jojo12
Hi,
I am helping in a team who gives new life to the old eventlist which just used CB too (there we had some plugins with community builder too). Now we call it JEM - Joomlaeventmanager. We can use the two plugins on cb 2.0 too. But we have alwäys the old english.php language file in there. And it would be nice to make it more consistent to CB 2.0. Can you give any hints on that? Will you? (you don't have an actual helloworld plugin with language?)

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274621 by nant

jojo12 wrote: Hi,
I am helping in a team who gives new life to the old eventlist which just used CB too (there we had some plugins with community builder too). Now we call it JEM - Joomlaeventmanager. We can use the two plugins on cb 2.0 too. But we have alwäys the old english.php language file in there. And it would be nice to make it more consistent to CB 2.0. Can you give any hints on that? Will you? (you don't have an actual helloworld plugin with language?)


Trying to understand.

Are you creating a new CB plugin?

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

  • jojo12
  • jojo12
  • OFFLINE
  • Posts: 957
  • Thanks: 109
  • Karma: 25
8 years 10 months ago #274623 by jojo12
sorry for my english.
no it's: JEM MyEvents for Community Builder and JEM MyAttending for Community Builder.
There are language files inside called english.php with the old kind of definition list like:
DEFINE("_JEMMYEVENTS_CATEGORY","Categories");

this works, but I like the new way of cb more.
My questions are for to be nearer to cb2. What we have to do?

I hope, my questions are clearer now.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274669 by nant

jojo12 wrote: sorry for my english.
no it's: JEM MyEvents for Community Builder and JEM MyAttending for Community Builder.
There are language files inside called english.php with the old kind of definition list like:
DEFINE("_JEMMYEVENTS_CATEGORY","Categories");

this works, but I like the new way of cb more.
My questions are for to be nearer to cb2. What we have to do?

I hope, my questions are clearer now.


We will be working on providing some CB Plugin samples.
In the meantime you can just look at some of our existing CB plugins to se ehow they utilize the CBTxt::T() function.
The following user(s) said Thank You: jojo12

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

Moderators: beatnantkrileon
Powered by Kunena Forum