Fix SyntaxError: [sprintf] unexpected placeholder in Spanish (es) translations #4230
-
Lychee versionv7.5.3 Did you check the latest Lychee version?Yes, I did Which PHP version are you using?PHP 8.5 Detailed description of the problemWhen the application language is set to Spanish (es), attempting to view or delete a photo causes the delete button action to fail silently. text The Root Cause In the Spanish translation files, there was a typo where the placeholder string was written with an extra space (% s instead of %s). The Solution Removed the errant space in the formatting placeholders inside the Spanish (es) translation files. Files Changed lang/es/dialogs.php lang/es/profile.php Workaround: docker exec XXIDXX sh -c "sed -i 's/% s/%s/g' public/build/assets/*.js" Steps to reproduce the issue1- Change to use Spanish languaje. Picture is not deleted. Diagnostics [REQUIRED]Autodiagnóstico Espacio Browser & System [REQUIRED]Chrome Version 146.0.7680.153 (Official Build) (64-bit) Docker container used Please confirm (incomplete submissions will not be addressed)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi, I appreciate you opening the bug, but you could also directly make a PR for the fix in the respective lang files. :) |
Beta Was this translation helpful? Give feedback.
I'm not very familiar with that process for this project, anyhow, I raised #4231