Language Overrides have arrived!

7 years 4 months ago #287793 by MMDoege
Replied by MMDoege on topic Language Overrides have arrived!
Hi

this is my current version of "Default language (English)" plugin: 2.0.15+build.2016.09.16.21.34.37.b2e3df5e1
There you'll find the override tab.

Please Log in to join the conversation.

7 years 4 months ago #287795 by nant
Replied by nant on topic Language Overrides have arrived!
You can experiment with this on our demo site.
It seems to work there.

Please Log in to join the conversation.

7 years 4 months ago #287817 by wrongjon
Replied by wrongjon on topic Language Overrides have arrived!
Hi

Sorry I updated via the Joomla updater and that only gave me the latest stable 2.0.15. Once I checked your demo i realised I needed o update manually to the latest nightly build so done that and overrides are working great so thank you :)

PS did you know that when your forum/site sends out updates from topics the read more button link is broken? The text link above works but button is misisng teh site domain etc


thanks
jonathan

Please Log in to join the conversation.

7 years 4 months ago #287818 by krileon
Replied by krileon on topic Language Overrides have arrived!

PS did you know that when your forum/site sends out updates from topics the read more button link is broken? The text link above works but button is misisng teh site domain etc

Yup, that's a Kunena issue that has been fixed in latest Kunena. We're still working on updating things as it's a large site with a lot depending on it so upgrades are slow going and extra cautious.


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.
The following user(s) said Thank You: nant

Please Log in to join the conversation.

7 years 4 months ago #288018 by jamesmoeller
Replied by jamesmoeller on topic Language Overrides have arrived!
First off, it’s good news that Community Builder is moving in the right direction in terms of language (and template) overrides. Good work.

However, relative to the language overrides, I’m not sure it’s completely working yet. The following are my observations (maybe a bit overly verbose) for the good of the community.

Download the latest nightly build:
As a point of clarification, one needs to download the latest nightly build in order to see the three tabs (Global, Overrides, Parameters) at the top of a language plugin accessible via Community Builder >> Plugin Management >> Default language (English)…or whatever your appropriate language plugin may be. Having a CB version of 2.0.15 isn’t enough…you must have the latest nightly build. This threw me for a bit. I kept looking at my 2.0.15 version (not seeing Joomla tell me that there was an update) thinking it was all up-to-date, but I still didn’t see the three tabs. So if you have version 2.0.15 but don’t see the three tabs, just download the latest nightly build.

Language overrides seem to work for the regular CB languages:
I’ve got this working with the US English (en-us) version of the language file for Community Builder. The only trick I found was that one needs to look-up the “key” from the language file itself. The “key”, of course, is the capitalized text that precedes the “=>” in the language file. Once one enters the correct key, then all is good and the text entered via the “Overrides” tab works great.

Having trouble getting overrides to work with CBSubs:
Using the nightly build files from Nov 17, 2016 I’m still having problems getting the overrides to work with CBSubs…maybe I’m just not doing this correctly. It looks to me like CBSubs is always reverting back to using the language file located at <webroot>/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/language/default_language/language.php. I uploaded the cbpaidsubscriptions-en-us language plugin via Community Builder >> Plugin Management. Then entered that plugin, and access the “Overrides” tab, just like above, to change some of the text (namely the paypal purchase confirmation text beginning with “Thank you for your payment of”, i.e. key = THANK_YOU_FOR_YOUR_PAYMENT_OF_S_FOR_THE_S_S_e7bd92), but when I entered the override text, it didn’t take. Multiple tries didn’t work. I then tried to directly change the text in the language.php file located at <webroot>/components/com_comprofiler/plugin/language/cbpaidsubscriptions-en-us/, and that didn’t work either…no changes were effective. Finally, after digging around some I then make direct changes to the language.php file located at <webroot>/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/language/default_language/, that those changes worked!! So if one uploads a language plugin, it looks like there are two copies of the language file with CBSubs using the default location.

Template overrides don’t work with language files?
As a final try I attempted to do a template override locating the language.php file at <webroot>/templates/prostar/html/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/language/default_language/. However, changes I made to this file didn’t seem to take either. So maybe template overrides just don’t work with the language files.

Reply as you see fit.
Jim

Please Log in to join the conversation.

7 years 4 months ago #288022 by krileon
Replied by krileon on topic Language Overrides have arrived!

As a point of clarification, one needs to download the latest nightly build in order to see the three tabs (Global, Overrides, Parameters) at the top of a language plugin accessible via Community Builder >> Plugin Management >> Default language (English)…or whatever your appropriate language plugin may be. Having a CB version of 2.0.15 isn’t enough…you must have the latest nightly build. This threw me for a bit. I kept looking at my 2.0.15 version (not seeing Joomla tell me that there was an update) thinking it was all up-to-date, but I still didn’t see the three tabs. So if you have version 2.0.15 but don’t see the three tabs, just download the latest nightly build.

Joomla can't version check with our nightly builds. So you'll have to check version manually for nightly CB builds for the time being. We'll likely be adding to CBs internal version checker to check for nightly builds if a nightly build is already installed.

forge.joomlapolis.com/issues/6302

Language overrides seem to work for the regular CB languages:
I’ve got this working with the US English (en-us) version of the language file for Community Builder. The only trick I found was that one needs to look-up the “key” from the language file itself. The “key”, of course, is the capitalized text that precedes the “=>” in the language file. Once one enters the correct key, then all is good and the text entered via the “Overrides” tab works great.

We'll be adding a way to find language keys same as Joomla allows once we find the best way to implement it. For now you can edit the language files directly or use full language debug mode within CB > Configuration > Integrations.

Having trouble getting overrides to work with CBSubs:
Using the nightly build files from Nov 17, 2016 I’m still having problems getting the overrides to work with CBSubs…maybe I’m just not doing this correctly. It looks to me like CBSubs is always reverting back to using the language file located at <webroot>/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/language/default_language/language.php. I uploaded the cbpaidsubscriptions-en-us language plugin via Community Builder >> Plugin Management. Then entered that plugin, and access the “Overrides” tab, just like above, to change some of the text (namely the paypal purchase confirmation text beginning with “Thank you for your payment of”, i.e. key = THANK_YOU_FOR_YOUR_PAYMENT_OF_S_FOR_THE_S_S_e7bd92), but when I entered the override text, it didn’t take. Multiple tries didn’t work. I then tried to directly change the text in the language.php file located at <webroot>/components/com_comprofiler/plugin/language/cbpaidsubscriptions-en-us/, and that didn’t work either…no changes were effective. Finally, after digging around some I then make direct changes to the language.php file located at <webroot>/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/language/default_language/, that those changes worked!! So if one uploads a language plugin, it looks like there are two copies of the language file with CBSubs using the default location.

CBSubs language files are legacy. They aren't needed anymore and eventually will just be rolled into normal CB language plugins. You can add overrides for CBSubs directly in your CB language files and they should work fine as overrides are absolute and always used if a key match is made.

Template overrides don’t work with language files?
As a final try I attempted to do a template override locating the language.php file at <webroot>/templates/prostar/html/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/language/default_language/. However, changes I made to this file didn’t seem to take either. So maybe template overrides just don’t work with the language files.

I don't understand what template override has to do with language overrides. Do not modify core language files. Use backend language override in CB language plugins only and you'll have no issues.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.207 seconds

Facebook Twitter LinkedIn