Skip to Content Skip to Menu

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

CBSubs Language String substitution failure

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
9 years 6 months ago #262263 by boyjahq
Sometimes CBSubs expiration emails do not send language replacement strings, only the string code. Not always, but maybe 1 out of 10 times the emails that go out only show, for example, _UE_EXPIRED_SUB_HF for the subject (it should be "WWOOF Japan Host Membership Expired ζœŸι™γŒιŽγŽγΎγ—γŸ") and the body of the message shows only _UE_EXPIRED_MSG_HF instead of the full text that should replace it. I cannot detect a pattern to when it happens and it occurs across several plans, not just one.

Joomla! 2.5.28
CB 1.9.1
CBSubs 3.0.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
9 years 6 months ago #262293 by krileon
Replied by krileon on topic CBSubs Language String substitution failure
CB 1.x sends emails in the language of whoever is sending them. If no user is sending them (e.g. CRON is doing it) then it's sent in the language of the site. If the site language (e.g. lets say English) doesn't have that string translated then you'll get those results. To avoid this ensure all your new language strings exist in English and in the language you're using. In CB 2.x we send the emails in the language of the recipient, but the same principle applies (ensure English and any other languages all have the same language keys translated).


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.

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
9 years 6 months ago #262318 by boyjahq
Replied by boyjahq on topic CBSubs Language String substitution failure
The exact same strings are present, and have always been present, in the language files of both site languages, so it appears to me that, for some reason, CBSubs is doing language string substitutions most of the time but not every time.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
9 years 6 months ago #262397 by krileon
Replied by krileon on topic CBSubs Language String substitution failure
We've significantly improved language loading in CB 2.x. My guess is your issue is specific to CB 1.x or CBSubs 3.x. I'm unable to find a cause for this in CB 2.x. I recommend upgrading when possible. If possible clone your site, upgrade, and then test to see if you can reproduce on CB 2.x and CBSubs 4.x.


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.

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
9 years 5 months ago #265083 by boyjahq
Replied by boyjahq on topic CBSubs Language String substitution failure
Trying to update Community Builder to 2.0.9 from 1.9.1 with multi language files. I have gone through the process of updating all plugins and have installed the language override plugin. I have copied files as instructed and now I find that the 1.9.1 language file format is different than 2.0.9? When I try to copy and past something like this from 1.9.1 language file, I get an error

DEFINE('_UE_LOST_USERNAME_OR_PASSWORD','γƒ¦γƒΌγ‚ΆεγΎγŸγ―γƒ‘γ‚Ήγƒ―γƒΌγƒ‰γ‚’γ€γΎγŸγ―δΈ‘ζ–ΉεΏ˜γ‚ŒγΎγ—γŸγ‹οΌŸ');

The new format can only be like this?

'UE_LOST_USERNAME_OR_PASSWORD' => 'γƒ¦γƒΌγ‚ΆεγΎγŸγ―γƒ‘γ‚Ήγƒ―γƒΌγƒ‰γ‚’γ€γΎγŸγ―δΈ‘ζ–ΉεΏ˜γ‚ŒγΎγ—γŸγ‹οΌŸ',

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
9 years 5 months ago #265108 by krileon
Replied by krileon on topic CBSubs Language String substitution failure
We don't use defines anymore (if we did overrides wouldn't work). You need to use the CBTxt string usage as follows.

'KEY' => 'STRING'

See the below for language usage information. Please also see the CB 2.0 Primer Book which also contains language usage information.

www.joomlapolis.com/cb-solutions/languages


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