[SDK] RPM validator marks hard coded paths in translation strings as 'hard coded' [answered]
What's happening
If you write an app with ID-based translations where a /home/nemo path is hard coded the string will be marked as a hard coded path.
What's supposed to happen.
The RPM validator is right about the hard coded part but it shouldn't mark translations strings as invalid.
For example:
ERROR [/usr/share/harbour-sailfinder/qml/pages/TermsPage.qml] Hardcoded path: //% "%0 keeps a minimalistic log in /home/nemo/.cache/%1/logging/log.txt for debugging purposes.
How to reproduce
- Create an app with ID based translations
- Add a path to your translation string
- Run the RPM validator on the generated RPM file
Environment
- Sailfish SDK 1804
- Sailfish OS 2.2.0.29
Why you think this is bug? You don't use /home/nemo in your code, isn't it? So do the same for translation strings.
coderus ( 2018-08-21 08:29:24 +0200 )editIMHO the developer should be free in what she/he writes in the translation strings. It might be an issue with other things that the validator checks or might check in the future.
Dylan Van Assche ( 2018-08-21 13:00:32 +0200 )editCan you replace /home/nemo with $HOME? Of course that is not such clear for the user than the actual path.
Rikujolla ( 2018-08-21 15:44:15 +0200 )editWell that's possible too to fix this issue, but still, the RPM validator should avoid any translations IMHO.
Dylan Van Assche ( 2018-08-31 09:19:12 +0200 )edit