Skip to Content Skip to Menu

CB Activity (fr-FR) - Placeholders translated causing tags display bug

  • maxkrylov
  • maxkrylov
  • ONLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
7 hours 41 minutes ago #343709 by maxkrylov
Hello JoomlaPolis Team.


In the French translation file
Code:
cbactivity-language.php
(fr-FR), the placeholders inside the strings
Code:
TAGS_MORE_THAN_TWO
and
Code:
TAGS_TWO
have been translated, which breaks the tag substitution mechanism.

Current (broken) fr-FR strings:
'TAGS_MORE_THAN_TWO' => '[étiquette1], [étiquette2], et [plus]',
'TAGS_TWO'          => '[étiquette_1] et [étiquette_2]',

Expected (working) strings — placeholders must not be translated:
'TAGS_MORE_THAN_TWO' => '[tag_1], [tag_2], et [more]',
'TAGS_TWO'          => '[tag_1] et [tag_2]',

Root cause:
In
Code:
ActivityTable.php
,
Code:
CBTxt::T()
performs substitution using
Code:
[tag_1]
,
Code:
[tag_2]
, and
Code:
[more]
as keys. Since the fr-FR translation replaced these with
Code:
[étiquette1]
,
Code:
[étiquette2]
,
Code:
[plus]
, the substitution fails and the raw placeholders are displayed to end users.

Fix applied manually on site — please correct the official fr-FR language file.

Thank you in advance.
Max.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50331
  • Thanks: 8617
  • Karma: 1472
3 hours 2 minutes ago #343715 by krileon
Translations are handled entirely by the community. You're welcome to submit fixes to the Transifex files and download latest from there as well.

explore.transifex.com/joomlapolis/

In future releases when we rewrite plugins to become standalone Joomla extensions we'll just be including translations with each release automatically.


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