-
Notifications
You must be signed in to change notification settings - Fork 17
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
Move this command out from translation #173
Comments
Yes, I also wondered once, if there is better way to handle this code line embedded in a text string.
Can you please explain this a bit, specifically the security aspect. I perceived it just as a small nuisance ("a bit ugly"), hence I did not mind to research and address this.
I know there is a As always, PRs are welcome, then I might also understand better what solution you think of and how that looks like in practice. |
Well if I 'mis-translate' this string to end with an rm -rf / there could be an issue if someone copies it over and execute it.
I am not an expert on the localization, but I would use the qsTr somehow like this:
I do no have SFOS SDK at hand at the moment, but I will submit a PR once get back to my dev box. |
So this is about safety (not security), nevertheless the reasoning is valid. 👍 |
@martonmiklos, as your idea for rendering the shell code as immutable for translators is not ID-based, your implementation suggestion has to be transformed to suite ID-based, translatable Qt strings, first. |
Should be fixed by PR #215. |
PR #215 seems to work fine, but by looking at this text I realise to have never seen it before. Thus I played bit with it and lastly created PR #253. BeforeAfter<Screenshots are missing, as one wold have to misconfigure SSU's SailfishOS:Chum repository entry for that. If someone wants to provide corresponding screenshots, please post them here.> |
Hi folks,
I came across this string during translation:
sailfishos-chum-gui/src/chum.cpp
Line 334 in 5d0ce0a
I would recommend to make the command untranslatable by adding a placeholder to it.
For security reasons and to ease the translations.
What do you think?
The text was updated successfully, but these errors were encountered: