add translation for Qt base lib
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 20 Dec 2015 15:13:15 +0000 (16:13 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 20 Dec 2015 15:37:11 +0000 (16:37 +0100)
.gitignore
Makefile
qtbase/qwbase_de.ts [new file with mode: 0644]
qtbase/wbase.pro

index 89794d8..512b7db 100644 (file)
@@ -8,6 +8,7 @@ woc/prewoc
 lib*.so*
 *.a
 *.prl
+*.qm
 vinfo
 .ctmp
 .ptmp
index bda871d..f4ab98c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ DOXYGEN = doxygen
 MKDIR = mkdir -p
 COPY = cp -d --remove-destination
 COPY_R = $(COPY) -r
+LRELEASE = lrelease
 
 prefix=/usr/local
 libprefix=$(prefix)/lib
@@ -34,6 +35,7 @@ woc: vinfo/staticVersion.h
 qtbase: woc
        cd qtbase && $(QMAKE)
        $(MAKE) -C qtbase
+       cd qtbase && $(LRELEASE) wbase.pro
 
 doc:
        cd woc && $(DOXYGEN)
@@ -57,6 +59,7 @@ install-woc: woc
 install-qtbase: qtbase
        $(MKDIR) $(libprefix)
        $(COPY) qtbase/libqwbase* $(libprefix)
+       $(COPY) qtbase/*.qm $(libprefix)
 
 install-qtbase-dev: install-qtbase
        $(MKDIR) $(incprefix)
diff --git a/qtbase/qwbase_de.ts b/qtbase/qwbase_de.ts
new file mode 100644 (file)
index 0000000..d45f19f
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de_DE">
+<context>
+    <name>WTransaction_Private</name>
+    <message>
+        <location filename="src/transaction.cpp" line="89"/>
+        <source>interface not found</source>
+        <translation>Verbindung nicht gefunden</translation>
+    </message>
+    <message>
+        <location filename="src/transaction.cpp" line="155"/>
+        <source>Web Request timed out.</source>
+        <translation>Web-Anfrage ist Ergebnislos abgelaufen.</translation>
+    </message>
+    <message>
+        <location filename="src/transaction.cpp" line="173"/>
+        <source>HTTP Error, return code %1 %2</source>
+        <translation>HTTP Fehler, Code %1 &quot;%2&quot;</translation>
+    </message>
+</context>
+</TS>
index 6eaa415..22ccf7a 100644 (file)
@@ -41,4 +41,7 @@ SOURCES += \
 INCLUDEPATH += include src
 DEPENDPATH += include src
 
-*g++* { QMAKE_CXXFLAGS += -std=c++11 }
\ No newline at end of file
+*g++* { QMAKE_CXXFLAGS += -std=c++11 }
+
+#Localization
+TRANSLATIONS = qwbase_de.ts