Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] Language localization of CB Admin Nav

  • newlog
  • newlog
  • OFFLINE
  • Posts: 35
  • Thanks: 6
  • Karma: 1
12 years 4 weeks ago - 12 years 4 weeks ago #217460 by newlog
Replied by newlog on topic Re: Language localization of CB Admin Nav

krileon wrote: 'Community Builder Admin menu' doesn't exist; it's simply 'Community Builder'. If you're meaning the modules title then CB isn't responsible for translating that as the module rendering is done by Joomla it self.

You are perfectly right!

The string 'Community Builder Admin menu' comes from
Code:
<name>Community Builder Admin menu</name>
in mod_cb_adminnav.xml (so in this way it "exists" :silly:).

It can therefore be renamed in Joomla's module manager, as usual.

But in principle it could be localized at install in the installation script (script.mod_cb_adminnav.php) by looking for an existing translation in CB language files, and updating the corresponding Joomla table. This is done in Virtuemart (script.vmallinone.php).

Regards
Fabrice
Last edit: 12 years 4 weeks ago by newlog.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 4 weeks ago #217475 by krileon
Replied by krileon on topic Re: Language localization of CB Admin Nav

But in principle it could be localized at install in the installation script by looking for an existing translation in CB language files, and updating the corresponding Joomla table. This is done in Virtuemart.

That's a hacky workaround that I'd never implement. Joomla renders modules and Joomla should be left to do just that properly. If you need the module title translated then simply add the string to Joomla language files and translate it as needed or alternatively edit the modules title manually to whatever you want. I don't suggest any developer do such a thing.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • newlog
  • newlog
  • OFFLINE
  • Posts: 35
  • Thanks: 6
  • Karma: 1
12 years 4 weeks ago - 12 years 4 weeks ago #217494 by newlog
Replied by newlog on topic Re: Language localization of CB Admin Nav
Well, all this is a matter of standpoint...

If you need the module title translated then simply add the string to Joomla language files and translate it as needed

The string must be in INI format in INI files, so one has to edit the XML, replace 'Community Builder Admin menu' by a string COMMUNITY_BUILDER_ADMIN_MENU, and finally append a new entry in the appropriate language file. Is that what you meant? If so why not do it from scratch???

I don't suggest any developer do such a thing

CB is full of workarounds circumventing bugs/limitations of Joomla. Which is good for the end user. I keep on thinking that an incomplete localization is an incomplete implementation. So if there is a way, it does not deserve such a ban.

Regards
Fabrice
Last edit: 12 years 4 weeks ago by newlog.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 4 weeks ago - 12 years 4 weeks ago #217496 by krileon
Replied by krileon on topic Re: Language localization of CB Admin Nav

The string must be in INI fomart in INI files, so one has to edit the XML, replace 'Community Builder Admin menu' by a string
COMMUNITY_BUILDER_ADMIN_MENU, and finally append a new entry in the appropriate language file. Is that what you meant? If so why not do it???

No, edit the module in Joomla module manager and change the title to a define string then add and translate in Joomla. This is the same way you'd translate any custom module or new module added with a custom title. You don't need to touch the XML at all.

CB is full of workarounds circumventing bugs/limitations of Joomla. Which is good for the end user. I keep on thinking that an incomplete localization is an incomplete implementation. So if there is a way, it does not deserve such a ban.

It's not incomplete. CB is basically a framework for CB plugins. It's not exactly workarounds for limitations (we always try to work within and respect Joomlas limitations), but a way for us to be multi-platform (code once, work on all). CB doesn't render Joomla modules (except for the modules content of course) so it's not expected that CBTxt API would work for Joomla aspects as Joomla does not utilize said CB API so there is nothing incomplete about it (note CBs language usage works WITH Joomlas; so for example if you've a Joomla spanish and CB spanish language plugins then CB will switch as Joomla switches).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 12 years 4 weeks ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum