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 #233549 by activha
Well, with CB debug for language activated I got the clue !

I added a substitution string [PLAN_NAME] after my translation instead of incorporating it within the translation, and it failed. So the whole sentence needed to be translated

Thanks for the help
Last edit: 11 years 1 month ago by activha.
The following user(s) said Thank You: krileon

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 #234290 by activha
I am reopening this topic :

We have noticed that translation strings do not work for the main CBsubs settings when unsubscribing or cancelling a plan.

it works ok when subscribing

We have the following set in language.php in the folders cbpaidsubscriptions-fr-fr and cbpaidsubscriptions-en-gb :

These strings are only in these language files

//LANGUAGE PLANS
"AHA_SERVICE_SOUSCRIPTION" => "<p>Nous vous remercions pour votre demande d'inscription au service : <strong>[PLAN_NAME]</strong>. <br />Ce service est inclus dans votre abonnement actuel.<br /><br />Vous allez maintenant recevoir par email à l'adresse :

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 #234299 by krileon
You can enable language string debugging within CB > Configuration > Integrations. It's likely though that your string has extra tags surrounding it or if you have multiple languages for Joomla/CB then you maybe missing a language plugin for the language currently being used.

(By the way could you add a setting to choose the default editor for cbsubs settings ? if we use the standard one we always have html tags when saving a plan whatever the settings for the editor.)

We'll probably eventually use our own internal WYSIWYG editor to avoid all these issues. Until then you can use the Source view of your editor (every editor should have this as a button somewhere) or edit your editors settings in Extension > Plug-in Manager and set new line element to br instead of p, which typically should fix this.


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