Updates translations installation and search paths
authorLuís Pereira <luis.artur.pereira@gmail.com>
Thu, 9 Oct 2014 15:31:09 +0000 (08:31 -0700)
committerLuís Pereira <luis.artur.pereira@gmail.com>
Thu, 9 Oct 2014 15:31:09 +0000 (08:31 -0700)
commit51a9298051949cc56f73cd79024d9d447e15b196
treeee93671a0898ec43c3581a87101ad331c6786310
parent1e9724343466d5c8d1795c94d7e33bff2869c610
Updates translations installation and search paths

liblxqt translations paths are relative to ${LXQT_TRANSLATIONS_DIR}.
liblxqt translations are installed to liblxqt/

Translations base search paths are:
LXQT_SHARE_TRANSLATIONS_DIR
        XdgDirs::dataDirs(LXQT_RELATIVE_SHARE_TRANSLATIONS_DIR)
in that order.

For each directory in the base search path, the translation file, is first
searched inside a directory with the name of the app or library (without
version suffix) then in the base search path directory. Ex:
/usr/share/lxqt-qt5/translations/liblxqt/
/usr/share/lxqt-qt5/translations

LxQt::Translator class can be used to load the applications translations.
That would ditch the TRANSLATE_APP macro, that we use in each executable,
thus reducing resource consumption.
CMakeLists.txt
cmake/lxqtX-config.cmake.in
cmake/lxqt_use.cmake.in
lxqttranslator.cpp