Skip to Content Skip to Menu

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

Translating values custom fields

11 years 9 months ago #219705 by pepperstreet
Replied by pepperstreet on topic Translating values custom fields
Just curious, does CB support Joomla native language overrides. I use it all day long. Funilly, I did not try it with CB, yet. I know that CB uses his own language plugin files... so, i guess it does not support this tool and file locations in any way.

Though, it would be very handy if it would look into J! language overrides for my custom strings! Any chance?

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

  • WebAccent
  • WebAccent
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
11 years 9 months ago #219712 by WebAccent
Replied by WebAccent on topic Translating values custom fields
I installed the English language plugin. When I change the language.php the changes indeed take place.

Now the labels are succesfully translated, but I still need to translate the checbox/radiobutton options. These fields are not to be found in language.php, how do I translate this..?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219768 by krileon
Replied by krileon on topic Translating values custom fields

Just curious, does CB support Joomla native language overrides.

No.

Though, it would be very handy if it would look into J! language overrides for my custom strings! Any chance?

CB language plugins are just PHP files that are included. Add your Joomla language strings as CB language strings then use those CB language strings and it should probably work.

Now the labels are succesfully translated, but I still need to translate the checbox/radiobutton options. These fields are not to be found in language.php, how do I translate this..?

You need to add them. Example as follows.

define( '_UE_MYFIELD_VALUE1', 'Value 1' );

In the above you'd set the fields value to _UE_MYFIELD_VALUE1.


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.

11 years 9 months ago #219782 by pepperstreet
Replied by pepperstreet on topic Translating values custom fields

krileon wrote:

Though, it would be very handy if it would look into J! language overrides for my custom strings! Any chance?

CB language plugins are just PHP files that are included. Add your Joomla language strings as CB language strings then use those CB language strings and it should probably work.


Sorry, not sure if I understand your reply. Do you mean there is a workaround? Can you explain it again in other words, please.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219791 by krileon
Replied by krileon on topic Translating values custom fields

Sorry, not sure if I understand your reply. Do you mean there is a workaround? Can you explain it again in other words, please.

As I understand you want to use a Joomla language define in CB. This can be done with the below example.

define( '_UE_COM_CONTENT_ARTICLE_INFO', JText::_( 'COM_CONTENT_ARTICLE_INFO' ) );

You're basically defining a CB define with a Joomla define (parsed). You could then use _UE_COM_CONTENT_ARTICLE_INFO as a field value within backend for example.


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: pepperstreet

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

11 years 9 months ago #219811 by pepperstreet
Replied by pepperstreet on topic Translating values custom fields
Ah, i see. Makes sense now.
Doubled work, but it gives at least a sort of a CB language overrides manager ;-)

BTW, will CB2.0 still work with PHP language files ? If not, could you adopt the joomla overrides manager or create a backend tool for editing?

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

Moderators: beatnantkrileon
Powered by Kunena Forum