[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kivio
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2006-08-17 16:52:40
Message-ID: 1155833560.890439.3636.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 573964 by goutte:
- Add a missing end of line (whih corrupted the script)
- use i18nc() instead of i18n() when having a message context
M +2 -1 Messages.sh
M +3 -2 kivio-extract-i18n-desc.pl
--- trunk/koffice/kivio/Messages.sh #573963:573964
@@ -1,5 +1,6 @@
#! /bin/sh
$EXTRACTRC `find . -name \*.ui -o -name \*.rc` >> rc.cpp || exit 11
-perl -n kivio-extract-i18n-desc.pl `find . -name desc -o -name \*.sml` >> \
rc.cpp$EXTRACTRC --tag-group=none --tag=name --context=Stencils `find . -name \
\*.shape` >> rc.cpp +perl -n kivio-extract-i18n-desc.pl `find . -name desc -o -name \
\*.sml` >> rc.cpp +$EXTRACTRC --tag-group=none --tag=name --context=Stencils `find . \
-name \*.shape` >> rc.cpp $XGETTEXT `find . -name \*.cpp -not -name \*.moc.\*` \
kiviopart/kivio_aboutdata.h -o $podir/kivio.pot
--- trunk/koffice/kivio/kivio-extract-i18n-desc.pl #573963:573964
@@ -1,10 +1,11 @@
#
#
-# Copyright (C) 2004 Nicolas GOUTTE <goutte@kde.org>
+# Copyright (C) 2004,2006 Nicolas GOUTTE <goutte@kde.org>
# License: LGPL 2.0
#
+
sub writei18n
{
local $_ = @_[1];
@@ -16,7 +17,7 @@
s/"/\"/g;
s/&/&/g;
s/\"/\\\"/g;
- print "i18n( \"". @_[0] . "\", \"" . $_ . "\" );";
+ print "i18nc( \"". @_[0] . "\", \"" . $_ . "\" );";
if ( @_[2] )
{
print " // " . @_[2];
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic