Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Have difficulties witha certail language file of the CB Gallery Plugin - SOLVED

3 weeks 5 days ago #339721 by erichburkhard
My environment:
version of cb gallery plugin: [color=#28a745 !important]2.5.1+build.2024.09.23.15.14.11.5855dde14[/color] 
Joomla version: 3.10.12.
CB version: 2.9.3+build.2024.09.10.14.21.57.794f9ce0d

Behaviour:
If I try to upload a file with a 'wrong' extension within a users gallery the following alert should be prompted (see below the 'responsible' language string):

 'FILE_UPLOAD_INVALID_UPLOAD_ONLY_EXTS' => 'Invalid file. Please upload only [extensions]!',

.... the problem is that the whole part of the substring '[extensions]' .... does not appear on the screen ..... it will be repaced by a blank.

If I override of the string, eg.:

'FILE_UPLOAD_INVALID_UPLOAD_ONLY_EXTS' => 'You tried to upload an invalid file type. Please upload only [extensions]!',

... I have the same issue, the override itself works but the subpart: '[extensions]' will again be replaced by a blanc ....
... so the result looks like this: "You tried to upload an invalid file type. Please upload only !'

..... can you please help?

reagards
 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
3 weeks 1 day ago #339730 by krileon
That's for the server side message. Client side should be erroring before server side is reached. Client side uses the following.

Key: INVALID_FILE_EXTENSION_PLEASE_UPLOAD_ONLY_0_7d7e70
String:
Code:
Invalid file extension. Please upload only {0}!

Are you sure it's the server side message you're seeing?


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.
The following user(s) said Thank You: erichburkhard

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

3 weeks 20 hours ago #339738 by erichburkhard
Now I repeated the test scenario and it worked ..... the correct language string as specified in: 'INVALID_FILE_EXTENSION_PLEASE_UPLOAD_ONLY_0_7d7e70' appeared .... I don't know why this didn't work few days before ..... but anyway .... ticket can be closed and Thanks
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