-
Notifications
You must be signed in to change notification settings - Fork 220
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
Unclear what enfcs.Decode does (Question to Germar) #1559
Comments
This is relevant to decode encrypted path in backintime/common/encfstools.py Lines 526 to 531 in 6df8c90
Everytime the translation changes for this phrase, this will break decoding old logs which has been created before last translation-update. With this code I tried to fix this at least for the german translation-change. But that's a losing game anyways... |
Do we talk about this string? Do I understand that correct? Someone create encfs snapshots with English language. After some snapshots the users decided to switch the UI (or OS) language to something else and do some more snapshots with the same profile. It seems to me that we shouldn't touch the source string |
Correct!
Yes, that's correct. But not just because someone changed his locale, this will also happen if the translation of that string changes
I would recommend to not change it. Also changing translation should be handled with care. It would be better to not translate that string at all and create a regex with every possible translation for backwards compatibility |
Can't we just modify the regex that way that it says "any string" at this part of the string? Just checking for a "pattern" (my pseudo code) like this seems to be enough
|
🤔 you're right. Sometimes I'm too complicated 🙄 backintime/common/snapshots.py Lines 907 to 908 in 6df8c90
Just make sure to use non-greedy regex |
Because of #1549 I wouldn't work further and wouldn't modify the regex. The code es related to EncFS. Before modifying the regex I would need a unit test to make sure I don't accidentally modify behavior. |
Dear @Germar ,
please have a look at this piece of code realated to
encfstools.Decode
class.backintime/common/encfstools.py
Lines 507 to 510 in 6df8c90
I added some debug prints but was not able to trigger that part of the code.
The reason for my question is if I can modify the source string
_('Take snapshot')
without interfering something.Is this somehow related to this piece of code?
backintime/common/snapshots.py
Lines 907 to 908 in 6df8c90
The text was updated successfully, but these errors were encountered: