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

List:       kde-i18n-doc
Subject:    Re: tr() for the constellation list in Marble
From:       "Yuri Chornoivan" <yurchor () ukr ! net>
Date:       2014-01-01 12:01:30
Message-ID: op.w80bosi4l2zvei () localhost ! localdomain
[Download RAW message or body]

=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B5 Wed, 01 Jan 2014 13:30:=
37 +0200, Mihail Ivchenko  =

<ematirov@gmail.com>:

> Hello. Problem with constellation list really was there. Looks like it=
's
> solved in current master. Could you check it please? I attached a
> screenshot which shows how it looks like for me now.
> P.S. I can't reply to your message in kde-i18n-doc list, so if problem=
  =

> was
> solved could you please write about it to kde-i18n-doc?
> Thank you.

Hi,

Thanks for fixing this really fast. Now it works as expected. :)

Shouldn't the messages be extracted into marble_qt.pot (as it was before=
)  =

to have Qt version translated as well?

// Patch proposal attached.

Thanks for your work and Happy New Year!

Best regards,
Yuri
["extraction.patch" (extraction.patch)]

diff --git a/Messages.sh b/Messages.sh
index e3fbc46..26e19a6 100755
--- a/Messages.sh
+++ b/Messages.sh
@@ -27,7 +27,7 @@ cat data/legend.html \
   | sed -e 's/^\(.*\)$/\/\/i18n: file .\/data\/legend.html\ni18n(\"\1\");/' \
   >> rc.cpp
 
-cut -d ';' -f 1 data/stars/names.csv | sed -e 's/^/i18n(\"/' -e 's/$/\");/' >> \
rc.cpp +cut -d ';' -f 1 data/stars/names.csv | sed -e 's/^/tr(\"/' -e 's/$/\");/' >> \
rc_qt.cpp  
 # Eliminate empty i18n calls.
 egrep -B1 'i18nc?\(".*[^ ].*"\)' rc.cpp > rc.cpp.1
@@ -37,4 +37,5 @@ $EXTRACTRC `find . -name '*.ui' \
             -o -name '*.rc' -a ! -name marble.rc \
             -o -name '*.kcfg'` >> rc.cpp
 $XGETTEXT src/apps/marble-kde/kdemain.cpp src/apps/marble-kde/marble_part.cpp rc.cpp \
                -o $podir/marble.pot
-$XGETTEXT_QT src/apps/marble-qt/QtMainWindow.cpp src/apps/marble-qt/qtmain.cpp \
src/apps/marble-ui/ControlView.cpp `find src/plugins -name '*.cpp' | grep -v \
'/test/'` `find src/lib -name '*.cpp'` src/lib/marble/global.h \
src/lib/marble/MarbleGlobal.h -o $podir/marble_qt.pot +$XGETTEXT_QT \
src/apps/marble-qt/QtMainWindow.cpp src/apps/marble-qt/qtmain.cpp \
src/apps/marble-ui/ControlView.cpp `find src/plugins -name '*.cpp' | grep -v \
'/test/'` `find src/lib -name '*.cpp'` src/lib/marble/global.h \
src/lib/marble/MarbleGlobal.h rc_qt.cpp -o $podir/marble_qt.pot +rm -f rc_qt.cpp
\ No newline at end of file



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

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