[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevelop] debuggers/common: i18n: translate messages from kdevdebuggercommon
From:       Pino Toscano <pino () kde ! org>
Date:       2016-07-31 20:00:17
Message-ID: E1bTwuH-0008QP-Jl () code ! kde ! org
[Download RAW message or body]

Git commit 44b8acc1bfd257c515a56164476117cb8d96da63 by Pino Toscano.
Committed on 31/07/2016 at 19:57.
Pushed by pino into branch 'master'.

i18n: translate messages from kdevdebuggercommon

- extract messages for the library in an own kdevdebuggercommon.pot
- set the TRANSLATION_DOMAIN for the i18n calls in that library

M  +1    -0    debuggers/common/CMakeLists.txt
A  +4    -0    debuggers/common/Messages.sh

http://commits.kde.org/kdevelop/44b8acc1bfd257c515a56164476117cb8d96da63

diff --git a/debuggers/common/CMakeLists.txt b/debuggers/common/CMakeLists.txt
index c4fed7a..09a0cd8 100644
--- a/debuggers/common/CMakeLists.txt
+++ b/debuggers/common/CMakeLists.txt
@@ -1,3 +1,4 @@
+add_definitions(-DTRANSLATION_DOMAIN=\"kdevdebuggercommon\")
 set(debuggercommon_SRCS
     mi/mi.cpp
     mi/milexer.cpp
diff --git a/debuggers/common/Messages.sh b/debuggers/common/Messages.sh
new file mode 100644
index 0000000..24f885d
--- /dev/null
+++ b/debuggers/common/Messages.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+$EXTRACTRC `find . -name \*.ui` >> rc.cpp
+$XGETTEXT `find . -name \*.cpp` -o $podir/kdevdebuggercommon.pot
+rm -f rc.cpp
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic