Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
New version 1.6.0 is no longer working interface translation #204
I use Linux Mint 19.2 x64 Cinnamon
New version 1.6.0 is no longer working interface translation
The August (11, 2019) version was installed in this directory:
The September (06, 2019) version is in this directory, has this change influenced the translation to fail?
Note: I tested the windows version and the translation worked
I also did the test on:
with Appimage 1.6.0 and the Ksnip interface has not been translated to Portuguese either.
Already on Windows 7, Ksnip had the interface in Portuguese
I manually created a Debian package and noticed that the translations were not used. So I straced ksnip and noticed that ksnip searched for the translations in the wrong directories (e.g. share/ksnip/translations instead of /usr/share/ksnip/translations). When I did a "cd /usr" before starting ksnip on the command line the translations were picked up (because in src/backend/TranslationLoader.cpp it also calls loadTranslationFromRelativePath) but I didn't want do write a workaround-wrapper-script. So I took a look into the source code and saw that the variable KSNIP_LANG_INSTAL_DIR is used in the TranslationLoader. This explained this issue. After applying the fix in my merge request the translations were picked up again. They are still incomplete because there seems to be a mismatch between the translation context in the classes and the translation files (see https://doc.qt.io/qt-5/i18n-source-translation.html), but I guess this is #186.