Skip to Content Skip to Menu

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

[SOLVED] CBSubs how to translate specific language strings ?

  • activha
  • activha
  • OFFLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 1 month ago - 11 years 1 month ago #233498 by activha
Hello
We would like to translate lots of specific strings that we have in CBsubs plans and tried to write keywords with translation within the corresponding language file within cbpaidsubscriptionsfrench/french.php folder/file.

for instance within plan description we tried PLAN_SPECIFIC_TO_OUR_COMPANY with a translation :
"PLAN_SPECIFIC_TO_OUR_COMPANY" => "Nous vous remercions pour votre demande d'inscription au service : [PLAN_NAME]. Ce service est inclus dans votre abonnement actuel.<br />Vous allez recevoir par email à l'adresse :
Last edit: 11 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233523 by krileon
CBSubs does not use old defines, but CBTxt usage exclusive. CBTxt usage is very strict. For example if your description for a plan is as follows.

<p>_UE_MYDESC</p>

Yet your language translation is as follows

'_UE_MYDESC' => 'My Description'

It will not work. It does not do inline translate. You would need to do the below for example.

Description: _UE_MYDESC
Translation: '_UE_MYDESC' => '<p>My Description</p>'

You should be adding all CBSubs translations to your CBSubs language files. Ensure you've installed at the least your English CBSubs language plugin installed with CBSubs.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 1 month ago - 11 years 1 month ago #233531 by activha
Well this is not easy in this case as most editors automatically add <p> </p> when editing the text

I tried but it seems that blank space is included by joomlackeditor each time. Should I use '<p>&nbsp;_UE_MYDESC</p>' => '<p>My Description</p>'
Last edit: 11 years 1 month ago by activha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233540 by krileon
Click the view source button for your edit then just add for example _UE_MYDESC directly and it should avoid adding the surrounding element. In most cases you can also turn off the surrounding element in your editors Joomla plugin within Extensions > Plug-in Manager.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 1 month ago #233541 by activha
Well I tried with codemirror to remove all tags and spaces but it still does not work.

Strings are working very well in email integration though.

But they do not work within the plans text or even CBsubs messages for subscription/unsubscription

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #233546 by krileon
You need to ensure there are no surrounding tags then ensure you're translating it within your CBSubs language files. Aside from that I don't know what more to tell you. It translates the text literally so if you supply "this is my string" then it's looking for the below.

'this is my string' => 'this is my translation'


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.

Moderators: beatnantkrileon
Powered by Kunena Forum