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 !'
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
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