[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-kde4/scripts
From: Albert Astals Cid <aacid () kde ! org>
Date: 2012-12-11 18:15:49
Message-ID: 20121211181549.C3839AC867 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1328183 by aacid:
try to adapt to media/capacity now being in git
M +1 -5 get_paths
M +17 -4 update_translations
--- trunk/l10n-kde4/scripts/get_paths #1328182:1328183
@@ -34,8 +34,7 @@
playground-sysadmin \
playground-utils \
www-edu \
- www-okular \
- www-media"
+ www-okular"
all_modules="kde-kdeaccessibility \
kde-kdeadmin \
@@ -166,9 +165,6 @@
www-edu)
echo trunk/www/sites/edu
;;
- www-media)
- echo trunk/www/media
- ;;
*)
echo "ERROR: unknown module $1"
exit 1
--- trunk/l10n-kde4/scripts/update_translations #1328182:1328183
@@ -556,13 +556,26 @@
git commit $SVNQUIETFLAG -m "SVN_SILENT regenerage from .po"
git push $SVNQUIETFLAG
popd > /dev/null
+ elif [ $web = "media" ]; then
+ webdir=$BASEDIR/`get_path websites_capacity`
+ webi18ndir=$webdir/includes/i18n
+
+ pushd $webdir > /dev/null
+ for subdir in `ls $webi18ndir`; do
+ file=$BASEDIR/$transmod/$subdir/messages/www/$web"_www.po"
+ if [ -e $file ]; then
+ PYTHONPATH=$POLOGYDIR python $BASEDIR/$transmod/scripts/po2phparray.py \
$file $webi18ndir/$subdir/$web.inc else
+ echo "$subdir in $web exists but $file does not"
+ fi
+ done
+ git commit $SVNQUIETFLAG -m "SVN_SILENT regenerage from .po"
+ git push $SVNQUIETFLAG
+ popd > /dev/null
+ else
webdir=$BASEDIR/`get_path www-$web`
- if [ $web = "media" ]; then
- webi18ndir=$webdir/includes/i18n
- else
webi18ndir=$webdir/i18n
- fi
+
for subdir in `ls $webi18ndir`; do
file=$BASEDIR/$transmod/$subdir/messages/www/$web"_www.po"
if [ -e $file ]; then
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic