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

List:       kde-commits
Subject:    l10n-kde4/scripts
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2007-05-31 21:51:33
Message-ID: 1180648293.363924.31020.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 670258 by ilic:

Slightly change semantics of Qt translation calls.

 M  +11 -3     MessagesQt.sh  


--- trunk/l10n-kde4/scripts/MessagesQt.sh #670257:670258
@@ -27,7 +27,15 @@
         ; do
 	fgrep -v $file list > list.new && mv list.new list
 done
-# Important: tr has a comment in second position that KDE uses as context
-#  but QT_TRANSLATE_NOOP has the context at first position
-xgettext -C --qt -ktr:1,1t -ktr:1,2c,2t -kQT_TRANSLATE_NOOP:1,1t \
-kQT_TRANSLATE_NOOP:1c,2,2t --msgid-bugs-address=kde-i18n-doc@kde.org \
--files-from=list -o $podir/kdeqt.pot +
+# Note about Qt contexts/comments:
+# For Gettext purposes, comment of tr() and translate() is considered msgctxt.
+# If translate() doesn't have a comment, but does have a context, then context
+# is used for msgctxt. For info on handling this, see comments to method
+# KLocale::translateQt in kdelibs/kdecore/localization/klocale.cpp
+xgettext -C --qt \
+    -ktranslate:1c,2,2t -ktranslate:2,3c,3t -ktr:1,1t -ktr:1,2c,2t \
+    -kQT_TR_NOOP:1,1t -kQT_TRANSLATE_NOOP:1c,2,2t \
+    --msgid-bugs-address=qt-bugs@trolltech.com \
+    --files-from=list -o $podir/kdeqt.pot
 cd $origdir


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

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