Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] The column header 'Item' in CBSubs payment basket will not be translated correctly

12 years 3 weeks ago - 12 years 3 weeks ago #217557 by erichburkhard
Hi everybody - while playing around with the translations of the column headers of the CBSubs payment basket I found a very strange behaviour/feature (I have latest Joomla / CB / CBSubs versions).

What I did:
If you look at the following screenshot you see the german translations of the 4 column headers called: 'Art. Num.', Item version 2', 'Gültigkeit', and 'Preis'. At the beginning I thought that everything works fine, because I found all the translation strings in the following (CBSubs) file (as an example I take the german version...but it is the same behaviour with the english version): /com_comprofiler/plugin/language/cbpaidsubscritionsgerman/german.php





What I realized was that the 'correct' translation (Item version 2) appears only if I refresh the browser again as soon as I see the payment basket for the first time). When the basket builds up for the first time the following appears:





So it was obvious to me that the translation information will change for this column header after a refresh of the browser. After an investigation I found out that there are 2 file locations which are relevant for the 'Item' translation string....

(a) the first location is here:
/com_comprofiler/plugin/language/german/cbteamplugins_language.php
// here is the string 'Item' => 'Item Version 1' ...this string is relevant
// when the basket will be displayed for the first time (before refresh)

(b) ...and the second location is here
/com_comprofiler/plugin/language/cbpaidsubscritionsgerman/german.php
// here is the string 'Item' => 'item Version 2' ....this string is relevant
// when the basket will be displayed for the second time (after refresh)

..so the problem arose from the fact that (unfortunately) the 'Item' translation string was detected twice by the CBsubs component...once in language file for the CB component (a) and then also in the language file for the CBSubs component (b)....

From my point of view this is not correct, because only (b) should be relevant for CB-SUBS.

For the moment the workaround is easy: I have to adapt the language strings in (a) and (b) in the same way in order to get the same translation of the basket header 'Item' (before and after the browser refresh)

Has anybody an input concerning this?

Kind regards

Eric

(remark: in the picture I used 'Item version 1' in order to explain the issue)....No I clicked on to the 'refresh' button of the browser and then the follwoing screen was displayed:
Attachments:
Last edit: 12 years 3 weeks ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 3 weeks ago #217560 by krileon
"Item" is a generic term and is used in other plugins too that CBSubs isn't aware of (and those plugins are not aware of CBSubs). This results in both language files having the same language string and causes both to try and translate it. Simply remove 1 of them and your issue should be resolved. I believe you can also set the CBSubs language plugin to be ordered before all other language plugins and it should perform its translation first.


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.

12 years 3 weeks ago #217615 by erichburkhard
THANK YOU :-) to delete one of the entries also worked - regards
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum