Multilingual Website workflow texts

8 years 2 months ago #277997 by rkreijveld
Multilingual Website workflow texts was created by rkreijveld
I am using the CB Language Override plugin to handle translations for a multilingual website I am working on. This works great within Field management.

Now I want to create multilingual texts for the subscription plans in CBSubs.
And then especially for the Website workflow texts.
So I create a language string in cblanguageoverride-language.php:
// Workflow texsts
'FR_WF_THANKYOU_PAYMENT_COMPLETED'	=>	'Thank you for subscribing. You can manage your subscriptions anytime from your user profile.',
'FR_WF_THANKYOU_PAYMENT_PENDING'	=>	'Thank you for subscribing. Your payment is not completed yet',

And I have set this in the Website workflow texts of the website: dl.dropboxusercontent.com/u/276508/Screenshots/Screenshot_2016-02-18_11.48.53.png

But unfortunately the text is now shown after subscribing: dl.dropboxusercontent.com/u/276508/Screenshots/Screenshot_2016-02-18_11.52.24.png

Any idea what could be wrong?

Please Log in to join the conversation.

8 years 2 months ago - 8 years 2 months ago #278000 by rkreijveld
Replied by rkreijveld on topic Multilingual Website workflow texts
What I found is that in the e-mails you can setup in a plan (Email workflow texts), the multilnbgual texts from cblanguageoverride-language.php are handled correctly!

But not from the Website workflow texts.

Please Log in to join the conversation.

8 years 2 months ago #278016 by krileon
Replied by krileon on topic Multilingual Website workflow texts
Language override plugin usage is unreliable. It's dependent on plugin loading behavior and load order. If the plugin isn't loaded before the output then the string won't exist to translate. If it's loaded too early or too late it can also cause problems with it not existing.

For CBSubs you might be able to create the following language file and translate it there.

component/com_comprofiler/plugin/language/LANGUAGE/cbplugin/cbpaindsubscriptions-language.php


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.

8 years 2 months ago #278017 by rkreijveld
Replied by rkreijveld on topic Multilingual Website workflow texts

krileon wrote: Language override plugin usage is unreliable.

That's odd. Why is it's use promoted then, even in the training video's?

Please Log in to join the conversation.

8 years 2 months ago - 8 years 2 months ago #278018 by rkreijveld

Please Log in to join the conversation.

8 years 2 months ago #278025 by krileon
Replied by krileon on topic Multilingual Website workflow texts
Because it's the only language override functionality we have at this time. Even if unreliable it will work fine in several cases, but there's just no guarantee of functionality. We'll be implementing an interface for language plugin parameters to specify overrides that will persist with updates in CB 2.1, but for now we don't really have an alternative.


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.220 seconds

Facebook Twitter LinkedIn