CB Language Override video tutorial resources

9 years 4 months ago - 9 years 4 months ago #254320 by nant
Community Builder 2.0 Tutorial #36.
CB Language Override plugin and how to use it.

Tutorial Playlist: www.youtube.com/playlist?list=PLp0puRITgC7PuyzPsMUECDI46VE7IFSAX

Instructions:
  1. Install plug_cblanguageoverride.zip using CB Plugin Management page
  2. Always keep CB Language Override plugin last in CB Plugin Management page list
  3. Publish CB Language Override plugin
  4. Copy component->com_comprofiler->plugin->user->plug_cblanguageoverride->language->default_language->language.php file to component->com_comprofiler->plugin->language->wx-yz->cbplugin->cblanguageoverride-language.php (replace wx-yz with your installed language, e.g. en-gb)
  5. Copy component->com_comprofiler->plugin->user->plug_cblanguageoverride->language->default_language->admin_language.php file to component->com_comprofiler->plugin->language->wx-yz->cbplugin->cblanguageoverride-admin_language.php (replace wx-yz with your installed language, e.g. en-gb)
  6. add language override definitions to your cblanguageoveride- files as needed.
  7. See video #36 for example usage

Plugin package:

File Attachment:

File Name: plug_cblan...ride.zip
File Size:7 KB
Attachments:

Please Log in to join the conversation.

8 years 10 months ago #265888 by webradio
Replied by webradio on topic CB Language Override video tutorial resources
Hi, I was not able to translate system messages such as "success", "Sign up", etc. Where do i find them? Thank you

Please Log in to join the conversation.

8 years 9 months ago - 8 years 9 months ago #266363 by ThePiston
Replied by ThePiston on topic CB Language Override video tutorial resources
took me a while to figure this out. First, you need the have a language plugin installed other than default so go here and get the English-GB plugin unless you use another language: www.joomlapolis.com/cb-solutions/languages

Then you will copy from here: public_html/components/com_comprofiler/plugin/user/plug_cblanguageoverride/language/default_language

these files:

language.php
admin_language.php

to here:
public_html/components/com_comprofiler/plugin/language/en-gb/cbplugin

then once copied, add the prefix "cblanguageoverride-" to of those files so the files will be renamed like this:

cblanguageoverride-language.php
cblanguageoverride-admin_language.php

Then go into whatever language.php file form the original en-gb folder, find the language thread you'd like to change, copy the entire line and paste it into the "array" area in the cblanguageoverride-language.php or cblanguageoverride-admin_language.php file and change it to suit your needs like this:

return array(
'FORGOT_LOGIN_1e16ba' => 'Forgot?',
);

It's a convoluted method but seems to work.

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
The following user(s) said Thank You: vuurtoren

Please Log in to join the conversation.

8 years 7 months ago #269849 by AchLive
Replied by AchLive on topic CB Language Override video tutorial resources
Congratulations for this Plugin, good and useful.
Why the plugin is not present in the download area?
Thank you

Please Log in to join the conversation.

8 years 7 months ago #269855 by nant

AchLive wrote: Congratulations for this Plugin, good and useful.
Why the plugin is not present in the download area?
Thank you


It is present in the first post.

Please Log in to join the conversation.

8 years 4 months ago #275123 by dirtydavid
Replied by dirtydavid on topic CB Language Override video tutorial resources
This works fine for fields defined in the component, but I cannot find a way to display new field names in different languages.

In 1.9 and earlier we used user defined fields like this:


DEFINE ('cb_english','English (Native)');
DEFINE ('cb_englishok','English (Good)');
DEFINE ('cb_englishbad','English (Poor)');

DEFINE ('cb_german','German (Native)');
DEFINE ('cb_germanok','German (Good)');
DEFINE ('cb_germanbad','German (Poor)');

DEFINE ('cb_dutch','Dutch (Native)');
DEFINE ('cb_dutchok','Dutch (Good)');
DEFINE ('cb_dutchbad','Dutch (Poor)');

DEFINE ('cb_spanish','Spanish (Native)');
DEFINE ('cb_spanishok','Spanish (Good)');
DEFINE ('cb_spanishbad','Spanish (Poor)');

I have tried adding these fields into the original language files and into the language over ride files but they do not display.

If this has now been discontinued, how do we define new fields on a multi lingual site?

David

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.233 seconds

Facebook Twitter LinkedIn