source: alternc/trunk/bureau/locales/updatelang.sh @ 1601

Revision 1601, 545 bytes checked in by benjamin, 7 years ago (diff)

remplacement des .po par des .pot + ajout de 'all' comme argument a updatelang.sh

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Update po files in locales/$1/LC_MESSAGES
3#
4if [ "$1" = "all" ]
5then
6    find -type d -maxdepth 1 -mindepth 1 -exec ./updatelang.sh {} \;
7    exit 0
8fi
9
10if [ -d $1/LC_MESSAGES ] 
11then
12    for i in *.pot
13    do
14      echo -n "Updating $i : "
15      msgmerge -v -U $1/LC_MESSAGES/`echo "$i"|sed -e 's/\.pot$/.po/'` $i
16      echo " Done."
17    done
18else
19    echo "Usage : updatelang.sh <lang code>"
20    echo "  Update the .po files in <lang code>/LC_MESSAGES directory"
21    echo "  Use 'all' as lang code to update all the po files"
22fi
Note: See TracBrowser for help on using the repository browser.