i18n infrastructure for Grantlee templates
Stephen Kelly
steveire at gmail.com
Mon Jan 24 19:54:59 GMT 2011
Albert Astals Cid wrote:
>> Is there something else that needs to be done?
>
> grep for EXTRACTQML and do the same ;-)
>
How about this?
Index: update_translations
===================================================================
--- update_translations (revision 1216049)
+++ update_translations (working copy)
@@ -150,6 +150,7 @@
extractrc=$kdebasedir/kdesdk/scripts/extractrc
extractattr=$kdebasedir/kdesdk/scripts/extractattr
extractqml=$kdebasedir/kdesdk/scripts/extractqml
+ extractgrantlee=$kdebasedir/kdesdk/scripts/grantlee_strings_extractor.py
preparetips=$kdebasedir/kdelibs/kdeui/preparetips
repackpot=$BASEDIR/$transmod/scripts/repack-pot.pl
@@ -193,6 +194,7 @@
EXTRACTRC="perl $extractrc --ignore-no-input" \
EXTRACTATTR="perl $extractattr" \
EXTRACTQML="perl $extractqml" \
+ EXTRACT_GRANTLEE_TEMPLATE_STRINGS="python
$extractgrantlee" \
PREPARETIPS="perl $preparetips" \
REPACKPOT="perl $repackpot" \
PACKAGE=$mod \
Index: extract-messages.sh
===================================================================
--- extract-messages.sh (revision 1216049)
+++ extract-messages.sh (working copy)
@@ -7,10 +7,11 @@
EXTRACTRC=${EXTRACTRC:-extractrc}
EXTRACTATTR=${EXTRACTATTR:-extractattr}
EXTRACTQML=${EXTRACTQML:-extractqml}
+EXTRACT_GRANTLEE_TEMPLATE_STRINGS=${EXTRACT_GRANTLEE_TEMPLATE_STRINGS:-
grantlee_strings_extractor.py}
MSGCAT=${MSGCAT:-msgcat}
PREPARETIPS=${PREPARETIPS:-preparetips}
REPACKPOT=${REPACKPOT:-repack-pot.pl}
-export EXTRACTRC EXTRACTATTR EXTRACTQML MSGCAT PREPARETIPS REPACKPOT
+export EXTRACTRC EXTRACTATTR EXTRACTQML MSGCAT PREPARETIPS REPACKPOT
EXTRACT_GRANTLEE_TEMPLATE_STRINGS
if [ "x$IGNORE" = "x" ]; then
IGNORE="/tests/"
else
More information about the kde-core-devel
mailing list