You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jeremie-Kiwik opened this issue
May 14, 2024
· 4 comments
· May be fixed by #36160
Labels
BugType: BugCOCategory: CoreReadyStatus: Issue is ready to be worked onTrivialSeverity: trivial bug > https://build.prestashop.com/news/severity-classification
The Finder used to search traduction files does not follow symlinks by default. Which is a major problem when working with modern and robust solutions like Deployer.
On those environments, each GIT release is in a specific folder, and the "living" files (traductions, images...) are in a common shared folder. And symlinks are made to point to the shared folder.
So for now, all the traduction files are ignored by Presta, as they are symlinks.
Expected behavior
Also parse symlinked traduction files
Steps to reproduce
Move a traduction file somewhere else on your filesystem (mainly Linux)
make a symlink (for example: ln -fs /moved/file /original/place)
kpodemski
added
Trivial
Severity: trivial bug > https://build.prestashop.com/news/severity-classification
Ready
Status: Issue is ready to be worked on
CO
Category: Core
and removed
New
New issue not yet processed by QA
labels
May 15, 2024
I don't know if that can help, simlink does not transfert permissions...
Btw, I nerver did a rm on only a particular item in the cache directiory like you did.
Do you have the problem if you rm on all cache file?
This is not related to the cache files. You can indeed rm -rf var/cache. The problem is that the new generated cache file of traductions will not have all the traductions, as the native PS code will ignore symlinks:
it parses app/Resources/translations for regular files,
it concatenates them all in a cache file,
and put the result in var/cache/traductions/xxx.
But in "Deployer" environment, we only have symbolic links in app/Resources/translations, pointing to a "shared" folder elsewhere. So Presta ignores them. And do not add them in the generated cache file.
BugType: BugCOCategory: CoreReadyStatus: Issue is ready to be worked onTrivialSeverity: trivial bug > https://build.prestashop.com/news/severity-classification
Prerequisites
Describe the bug and add attachments
The Finder used to search traduction files does not follow symlinks by default. Which is a major problem when working with modern and robust solutions like Deployer.
On those environments, each GIT release is in a specific folder, and the "living" files (traductions, images...) are in a common shared folder. And symlinks are made to point to the shared folder.
So for now, all the traduction files are ignored by Presta, as they are symlinks.
Expected behavior
Also parse symlinked traduction files
Steps to reproduce
PrestaShop version(s) where the bug happened
1.7.8 to 9.0
PHP version(s) where the bug happened
No response
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
KIWIK (kiwik.com)
The text was updated successfully, but these errors were encountered: