CBSubs Email notification + translation problem

12 years 5 months ago #184487 by dotcom22
hello

After many test it seem is not possible to translate all Email notification (the stuff under Presentation Plan Tab) sent when a trigger occur with Plan (activation, expiration and more) when I choose to send notification in text format.

I tried to place inside the CBSubs french language file different format like:

'_UE_THANK_YOU_EMAIL_SUBJECT_SUBS_ACTIVE' => 'My text',


and

"Commande pour votre page GOLD" => "Commande pour votre page GOLD",


..but this result in untranslated message...

So I tried to include in CB language file this format:

DEFINE('_UE_THANK_YOU_EMAIL_SUBJECT_SUBS_ACTIVE','My text');


but no change...

Now If I send message in html I get some result...

So I would like to know:

1) It is mandatory to send message in html for be able to translate it?

2) What is the language file we need to use?

- CBSubs language file ?
- CB language file ?
- No matter because one of them can do the job ?

3) Can you tell me what is the correct language code to use?

- string ?
- define ?

Not very clear how to...

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

Please Log in to join the conversation.

12 years 5 months ago #184506 by krileon
CBSubs doesn't support language definitions. The below example is appropriate translation usage.

'This is my plans description.' => 'This is my new plans description.',

You also need to ensure you're adding your string with source as HTML can affect how your string is stored. By default for example TinyMCE surrounds the string with a <p> element, which can be disabled in the editors Joomla plugin.


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.

12 years 5 months ago #184520 by dotcom22
In a previous topic you told me is possible to use DEFINE in CBSUBS language file if using new method instead old one. I confirm the follow method work:

'_UE_THANK_YOU_EMAIL_SUBJECT_SUBS_ACTIVE' => 'my text',


The problem is this method don't work with the First Activation Plan notification...but work with Expiration Plan notification... It seem some inconsistency are present about all different notification...

I use JCE and I have disabled the <p> element in his config. Anyway no matter about that because subject+body notification field are simple field and not WYSIWYG field...so no extra code can be inserted by an editor..

Personally is equal for me witch method to use... My only goal is to be able to translate all notification and to use HTML. This is not possible when using default CBSUbs string like:

'This is my plans description.' => 'This is my new plans description.',


because HTML is not supported... So the only manner seem to use new DEFINE string but like I say this don't work in all notifications... Probably a bug ??

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

Please Log in to join the conversation.

12 years 5 months ago #184557 by krileon

Personally is equal for me witch method to use... My only goal is to be able to translate all notification and to use HTML. This is not possible when using default CBSUbs string like:

Why can't you use HTML? Please try the below

'_NOTIFICATION_EMAIL_BODY' => 'Hello <strong>this</strong> is a test.',

You would specify _NOTIFICATION_EMAIL_BODY as your notifications body. The below should also work.

'Hello <strong>this</strong> is a test.' => 'Hello <strong>this</strong> is a test. 1-2-3',

The strings on the left must always match the string you've supplied for translation. The string on the right is your translation and doesn't have to match.


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

Facebook Twitter LinkedIn