Skip to Content Skip to Menu

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

[SOLVED] cb connect language

9 years 5 months ago - 9 years 4 months ago #265156 by giorgionasis
[SOLVED] cb connect language was created by giorgionasis
hallo there,

i am trying to figure out how the language of cb connect changes.

i have install my own plugin with my topic language and it is working fine.

now, i see that in language folder in cb connect there is a folder named default_language.
so i create another folder with my localized plugin el-gr (for greek). i add there the language file for cb connect but it does not affect anything in frontend.

i started to look around and i found that in this path

components/com_comprofiler/plugin/user/plug_cbconnect/library the file CBConnect.php contains the buttons for sign in. i changed them manually there but nothing.

i continue the searching and i found finally in this path

components/com_comprofiler/plugin/libraries/CB/Plugin/Connect the same file CBConnect.php

there i changed the buttons and it worked.

so, i should change the names of the buttons in that file?

thank you
Last edit: 9 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 5 months ago #265194 by krileon
Replied by krileon on topic cb connect language
The button is a language string. Example as follows.

'SIGN_UP_WITH_PROVIDER' => 'Sign up with [provider]',
'SIGN_IN_WITH_PROVIDER' => 'Sign in with [provider]',
'LINK_WITH_PROVIDER' => 'Link with [provider]',

I'll have provider specific keys for them in a later release, but for now provider is a replacement string. CB Connect is translated the same way all CB 2.x plugins are through their own language files in your CB language plugin. See the CB 2.0 Primer Book and the below link for language usage information.

www.joomlapolis.com/cb-solutions/languages


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.

9 years 4 months ago #265546 by giorgionasis
Replied by giorgionasis on topic cb connect language
hallo kyle,

i cannot figure out how the plugins are affected by my installed language. in my language folder (public_html/components/com_comprofiler/plugin/language/el-gr) there is a folder named cbplugin and there there are the language files (of my language) for all of the plugins. should i transfer them in the folders of every plugin?

thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 4 months ago - 9 years 4 months ago #265576 by krileon
Replied by krileon on topic cb connect language
You'll need to copy over admin_language.php and language.php from the below to the below.

FROM:
components/com_comprofiler/plugin/user/plug_cbautoactions/language/default_language/
TO:
components/com_comprofiler/plugin/language/el-gr/cbplugin/

Now rename them as follows.

admin_language.php -> cbconnect-admin_language.php
language.php -> cbconnect-language.php

If they already exist then delete them before renaming. The current language plugin releases do not contain the rewrite (7.0.0) language strings as of yet as the rewrite has not been merged into the master of CB Connect as it's just a beta at this time.


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: 9 years 4 months ago by krileon.

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

9 years 4 months ago #265601 by giorgionasis
Replied by giorgionasis on topic cb connect language
hallo kyle,

all the plugin language files are already there
public_html/components/com_comprofiler/plugin/language/el-gr/cbplugin, translated in my language.

for cb connect i added

'SIGN_UP_WITH_PROVIDER' => 'Sign up with [provider]',
'SIGN_IN_WITH_PROVIDER' => 'Sign in with [provider]',
'LINK_WITH_PROVIDER' => 'Link with [provider]',

and now it is working on frontend

thank you kyle

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

9 years 4 months ago #265724 by nussisworld
Replied by nussisworld on topic cb connect language

krileon wrote: FROM:
components/com_comprofiler/plugin/user/plug_cbautoactions/language/default_language/
TO:
components/com_comprofiler/plugin/language/el-gr/cbplugin/

Now rename them as follows.

admin_language.php -> cbconnect.admin_language.php
language.php -> cbconnect.language.php


I had the same issue. I just want to correct one thing: Do not rename it to >> cbconnect.language.php

Rename it to: cbconnect-language.php
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum