File fet-translations.patch of Package fet

Index: fet-5.40.3/fet.pro
===================================================================
--- fet-5.40.3.orig/fet.pro
+++ fet-5.40.3/fet.pro
@@ -2,8 +2,62 @@ TEMPLATE = subdirs
 SUBDIRS = src/src.pro src/src-cl.pro
 
 unix {
+LANGUAGES = \
+    ar \
+    ca \
+    cs \
+    da \
+    de \
+    el \
+    en_GB \
+    es \
+    eu \
+    fa \
+    fr \
+    gl \
+    he \
+    hu \
+    id \
+    it \
+    ja \
+    lt \
+    mk \
+    ms \
+    nl \
+    pl \
+    pt_BR \
+    ro \
+    ru \
+    si \
+    sk \
+    sq \
+    sr \
+    tr \
+    uk \
+    uz \
+    vi \
+    zh_CN \
+    zh_TW
+
+defineReplace(prependAll) {
+ for(a,$$1):result += $$2$${a}$$3
+ return($$result)
+}
+
+TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/translations/fet_, .ts)
+LRELEASE = $$QMAKE_LRELEASE
+isEmpty(LRELEASE):LRELEASE = $$[QT_INSTALL_BINS]/lrelease
+
+translations.input = TRANSLATIONS
+translations.output = $$OUT_PWD/translations/${QMAKE_FILE_BASE}.qm
+translations.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
+translations.name = LRELEASE ${QMAKE_FILE_IN}
+translations.CONFIG += no_link
+QMAKE_EXTRA_COMPILERS += translations
+
+translations.files = $$prependAll(LANGUAGES, $$OUT_PWD/$$TARGET_DIR/tiled_, .qm)
 translations.path = /usr/share/fet/translations
-translations.files = translations/*.qm
+translations.CONFIG += no_check_exist
 
 examples.path = /usr/share/fet
 examples.files = examples/
openSUSE Build Service is sponsored by