File qcheckers_translations.patch of Package qcheckers

diff --git a/src/main.cc b/src/main.cc
index 7989a2c..d7ea8f0 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
 	QString current_lang = QLocale::system().name().split("_").front();
 	QString qt_lang_path = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
 	//QString qcheckers_share_path = PREFIX"/share/qcheckers/lang";
-  QString lang_path = QStandardPaths::locate(QStandardPaths::DataLocation, "lang", QStandardPaths::LocateDirectory);
+  QString lang_path = QStandardPaths::locate(QStandardPaths::DataLocation, "translations", QStandardPaths::LocateDirectory);
 
 	qDebug()
 		<< "Your Locale:" << current_lang << endl
diff --git a/src/src.pro b/src/src.pro
index 4f80ab1..6f77889 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -32,7 +32,12 @@ RESOURCES = ../qcheckers.qrc ../icons.qrc
 #PREFIX		= $$system(sh ../helpers/extract_prefix.sh)
 message(PREFIX: $$PREFIX)
 
-TRANSLATIONS	= ../lang/qcheckers_de.ts ../lang/qcheckers_fr.ts ../lang/qcheckers_ru.ts
+TRANSLATIONS   = $$system("find ../lang/ -name 'qcheckers_*.ts'")
+updateqm.input = TRANSLATIONS
+updateqm.output = ../lang/translations/${QMAKE_FILE_BASE}.qm
+updateqm.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN} -qm ../lang/translations/${QMAKE_FILE_BASE}.qm
+updateqm.CONFIG += no_link target_predeps
+QMAKE_EXTRA_COMPILERS += updateqm
 
 target.path	= $$PREFIX/bin
 INSTALLS	+= target
@@ -45,7 +50,7 @@ INSTALLS	+= target
 # This hack is needed for i18n support.
 #
 share.path	+= $$PREFIX/share/qcheckers
-share.files	+= qcheckers.pdn ../COPYING ../AUTHORS ../ChangeLog ../README ../themes ../lang
+share.files	+= qcheckers.pdn ../themes ../lang/translations
 INSTALLS	+= share
 
 # Install desktop entry
openSUSE Build Service is sponsored by