Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow symlinks for traductions - Deployer best practice #36160

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Jeremie-Kiwik
Copy link

@Jeremie-Kiwik Jeremie-Kiwik commented May 14, 2024

Questions Answers
Branch? develop
Description? The Finder used to search translation files does not follow symlinks by default. This is a major issue when working with modern and robust solutions like Deployer. On these environments, each GIT release is in a specific folder, and the "living" files (traductions, images...) are in a common shared folder. Symlinks are then created to point to the shared folder. Currently, all translation files are ignored by PrestaShop, as they are symlinks. This PR aims to integrate them.
Type? bug fix
Category? CO
BC breaks? no
Deprecations? no
How to test? Move a traduction file from app/Resources/translations or from your theme to somewhere else, and make a symlink to it (ie: ln -fs /moved_file /original/location)
UI Tests
Fixed issue or discussion? Fixes #36161
Related PRs
Sponsor company KIWIK (kiwik.com)

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. This PR aims to integrate them
@Jeremie-Kiwik Jeremie-Kiwik requested a review from a team as a code owner May 14, 2024 16:12
@prestonBot
Copy link
Collaborator

Hello @Jeremie-Kiwik!

This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community!

@prestonBot
Copy link
Collaborator

Hi, thanks for this contribution!

I found some issues with the Pull Request description:

  • The category should be one of these: BO, CO, FO, IN, LO, ME, PM, TE or WS (Read explanation)
  • Your pull request does not seem to fix any issue, consider creating one (see note below) and linking it by writing Fixes #1234.

Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much!

About linked issues

Please consider opening an issue before submitting a Pull Request:

  • If it's a bug fix, it helps maintainers verify that the bug is effectively due to a defect in the code, and that it hasn't been fixed already.
  • It can help trigger a discussion about the best implementation path before a single line of code is written.
  • It may lead the Core Product team to mark that issue as a priority, further attracting the maintainers' attention.

(Note: this is an automated message, but answering it will reach a real human)

@prestonBot prestonBot added the Bug fix Type: Bug fix label May 14, 2024
Copy link
Contributor

@kpodemski kpodemski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Jeremie-Kiwik

To respect coding standards of the project you should use spaces instead of tabs ;-)

@ps-jarvis ps-jarvis added the Waiting for author Status: action required, waiting for author feedback label May 15, 2024
Remplace tabs by spaces
@Jeremie-Kiwik
Copy link
Author

You're right. Here it is!

@prestonBot prestonBot added the develop Branch label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug fix Type: Bug fix develop Branch Waiting for author Status: action required, waiting for author feedback
Projects
Status: Need 2nd approval
Development

Successfully merging this pull request may close these issues.

Traductions files ignored when symlink
6 participants