Language Change NPM Resource Changed PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar krishnaGandhi11
krishnaGandhi11
17 Mar 2025

Pull Request for Issue #45087,

Summary of Changes:

Testing Instructions

Navigate to the file manager in Joomla where renaming files is possible. (Refer how to reproduce at #45087)

Actual result BEFORE applying this Pull Request

The error messages may appear incorrectly or out of order, causing confusion:
1."Error renaming item." (Correct but unclear without context)
2. "Move file is not possible as destination already exists." (Sometimes redundant or misleading)

Expected result AFTER applying this Pull Request

1st : Error renaming item: Please choose a file name with a-z, A-Z, 0-9, ., - and _.(Avoid Special Characters also name should
not start or end with a period )
2nd : Action not Possible as a file with this name already Exists

  • Ensuring that they do not contradict each other and
    clearly indicate why the operation failed.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar krishnaGandhi11 krishnaGandhi11 - open - 17 Mar 2025
avatar krishnaGandhi11 krishnaGandhi11 - change - 17 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2025
Category Administration Language & Strings NPM Change
avatar krishnaGandhi11 krishnaGandhi11 - change - 17 Mar 2025
Labels Added: Language Change NPM Resource Changed PR-5.2-dev
7733fa9 17 Mar 2025 avatar Fix
avatar hiteshm0
hiteshm0 - comment - 17 Mar 2025

If im not wrong your PR only changes the grammar of the error messages being shown ?

The second error regarding the file destination already existing shouldn't be shown at all, a file with the same name doesn't exist.
It is likely that it is falling back to a default when there is an error sanitising due to which that error is being shown.

The first error will be shown whenever there is trouble renaming the file not just when there are invalid characters. So you can't just change what that error message says to only apply for this case.

IMO #45145 is a better PR for this issue, Do share your thoughts on this.

avatar krishnaGandhi11 krishnaGandhi11 - change - 17 Mar 2025
The description was changed
avatar krishnaGandhi11 krishnaGandhi11 - edited - 17 Mar 2025
avatar HLeithner
HLeithner - comment - 15 Apr 2025

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 15 Apr 2025
Title
[5.2] Fix incorrect error message when failing to rename a file due to an existing destination.
[5.3] Fix incorrect error message when failing to rename a file due to an existing destination.
avatar HLeithner HLeithner - edited - 15 Apr 2025

Add a Comment

Login with GitHub to post a comment