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 1 month ago - 12 years 4 weeks ago #216950 by newlog
Hello

I just installed mod_cb_adminnav 1.9 on Joomla 2.5.8 FR + CB 1.9.

It is does not seem to be localizable!

For doing this one should append a CBTxt::addStrings instruction such as
Code:
// ====================================== // CB AdminNav Module FR language strings // ====================================== CBTxt::addStrings( array( 'User Management'=>'Utilisateurs', 'Tab Management'=>'Onglets', 'Field Management'=>'Champs', 'List Management'=>'Listes', 'Plugin Management'=>'Plugins', 'Tools'=>'Outils', 'Configuration'=>'Configuration' ));
in one of the CB language files.

But this does not seem to work when doing this in any language file (admin_language.php, cbteamplugins_language.php, even language.php) under the current language folder, eg.

components/com_comprofiler/plugin/language/fr-fr/

I only could this get to work by prepending the CBTxt::addStrings instruction in the

administrator/modules/mod_cb_adminnav/mod_cb_adminnav.php

itself!

What am I missing?
Last edit: 12 years 4 weeks ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216975 by krileon
Replied by krileon on topic Re: Language localization of CB Admin Nav
Doesn't look like language plugins are being loaded. Please perform the below edit.

IN: administrator/modules/mod_cb_adminnav/mod_cb_adminnav.php
ON: Lines 29-30
FROM:
Code:
cbimport( 'cb.html' ); cbimport( 'cb.database' );
TO:
Code:
cbimport( 'cb.html' ); cbimport( 'cb.database' ); cbimport( 'language.cbteamplugins' );

Once done please confirm if your translation in cbteamplugins is now working or not.


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 1 month ago #216982 by newlog
Replied by newlog on topic Re: Language localization of CB Admin Nav
That was it!

Works fine by appending the CBTxt::addStrings block in cbteamplugins_language.php.

Thank you very much
NL

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216996 by krileon
Replied by krileon on topic Re: Language localization of CB Admin Nav
Ok, thank you for confirmation; will fix for next release.


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 1 month ago - 12 years 1 month ago #217379 by newlog
Replied by newlog on topic Re: Language localization of CB Admin Nav

krileon wrote: Ok, thank you for confirmation; will fix for next release.


One strange thing, not fixed by the 1.9.1 release: menu header
Community Builder Admin menu
is not translated, despite the presence of the corresponding line
Code:
CBTxt::addStrings( array( 'Community Builder Admin menu' => 'Menu d\'administration CB', ... ));
in cbteamplugins_language.php

Any clues?
Last edit: 12 years 1 month 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 #217454 by krileon
Replied by krileon on topic Re: Language localization of CB Admin Nav
'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.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum