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

Cannot sync to the same folder from OSes with different languages #115

Closed
LingMan opened this issue Dec 22, 2017 · 1 comment
Closed

Cannot sync to the same folder from OSes with different languages #115

LingMan opened this issue Dec 22, 2017 · 1 comment
Labels

Comments

@LingMan
Copy link

LingMan commented Dec 22, 2017

I have a Linux/Windows dual boot setup and would like to be able to sync the L2P from both OSes into the same directory. The problem is that the Linux is in English while the Windows is in German.

Since Sync-my-L2P checks for the system language to determine the top level folder names (e.g. "Lernmaterialien" vs "StructuredMaterials"), it would duplicate my the entire L2P folder if I would sync under Linux on top of the Windows-created folder.
https://github.com/Sync-my-L2P/Sync-my-L2P/blob/cdaf64c61f995e91018fed36ee3977657dc7fb74/utils.cpp#L156

Some possible solutions:

  1. Check for the application language instead of the system language. Easy but might unexpectedly break other user's setups.
  2. Check if the top level folders already exist in another language. This would lead to mixed-language L2P folders once new course rooms get synced. Plus, it might still result in duplication unless all Sync-my-L2P installations which access that folder get updated.
  3. Add a folder language setting next to the download location setting. Ideally this should be stored in a hidden file in the L2P folder, similar to the idea from Make directories rename- and moveable #74, to ensure that the settings used by all Sync-my-L2P installations are identical.

To me option three looks the best as it is the only one that will not break any existing setups or lead to weirdnesses in the future.

@RobertKrajewski
Copy link
Owner

In my opinion, only a handful people sync the files using two different operating systems. Even less people use two different system languages. Therefore, I suggest, that you change the system language for Sync-my-L2P on Linux as e.g. described here: https://askubuntu.com/questions/79319/how-to-change-language-of-a-specific-application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants