QupZilla / qupzilla

Cross-platform Qt web browser
http://www.qupzilla.com
GNU General Public License v3.0
1.11k stars 350 forks source link

Falkon - it's not possible to build with translations #2513

Closed pavbaranov closed 6 years ago

pavbaranov commented 6 years ago

As in the title. There are translations for Falkon in sources, but CMakeLists.txt haven't any instructions to compile them. I've tried to change CMakeLists, but without success. So, is translations implemented or not?

ghost commented 6 years ago

Try the following, should works: (From the Falkon source directory)

mkdir locale
for TSNAME in $(ls translations | sed 's/\.ts//g'); do for QMNAME in "$(find -name "${TSNAME}.ts")" ; do lrelease-qt5 ${QMNAME} -qm "locale/${TSNAME}.qm" ; done ; done

Then move the „locale“ folder in the same directory where the „theme“ folder is located.

pavbaranov commented 6 years ago

I know how to convert ts to qm, but it's a bug in CMakeLists.txt in Falkon, because translations should be convert automatically. Second bug is that even if I convert ts to qm and move it to /usr/share/falkon/locale/, translation is shown in Falkon, but when I choose it, Falkon is still in English.

nowrep commented 6 years ago

Translations are not yet sorted out in Falkon. You should keep using QupZilla until there is first Falkon release.

ghost commented 6 years ago

Second bug is that even if I convert ts to qm and move it to /usr/share/falkon/locale/, translation is shown in Falkon, but when I choose it, Falkon is still in English.

Works to me, even with symlink to QupZilla translations directory.