source: trans @ 506f71f

Revision 506f71f, 1.2 KB checked in by Marco Antonio Islas Cruz <markuz@…>, 3 years ago (diff)
  • Property mode set to 100644
Line 
1#! /usr/bin/bash
2#
3# little script to update po files
4#
5
6####LOCATIONS=`ls -1 --color=none libchristine/*py`
7####LOCATIONS="$LOCATIONS `ls -1 --color=none libchristine/pattern/*py`"
8####LOCATIONS="$LOCATIONS `ls -1 --color=none libchristine/Plugins/*py`"
9####for i in albumCover christinePyNotify getInfo gnomeDBus lastfm pidgin trayicon twitter; do
10####    LOCATIONS="$LOCATIONS `ls -1 --color=none libchristine/$i/*py`"
11####done
12
13####LOCATIONS="$LOCATIONS `ls -1 --color=none libchristine/gui/*py`"
14####LOCATIONS="$LOCATIONS `ls -1 --color=none libchristine/Storage/*py`"
15####LOCATIONS="$LOCATIONS `ls -1 --color=none gui/*glade`"
16LOCATIONS=`find -iname "*py"`;
17NLOCATIONS=`find -iname "*glade"`;
18LOCATIONS="$NLOCATIONS $LOCATIONS"
19
20TRANSLATIONS="christine es_ES ca cs da de el en_GB  eu fr hu it nl pt sv_FI sv"
21
22for i in $TRANSLATIONS; do
23        if [ "x$i" == "xchristine" ]; then
24                end='pot';
25                xgettext -p po  -o $i.$end -l --keyword=translate --keyword=_N --keyword=_ --from-code=Glade $LOCATIONS
26        else
27                end='po';
28                if [ -f $i.$end ]; then
29                        $join="-j";
30                else
31                        $join=""
32                fi
33                xgettext -p po $join -o $i.$end -l --keyword=translate --keyword=_N --keyword=_ --from-code=Glade $LOCATIONS
34        fi
35        echo "$i.$end"
36
37done
Note: See TracBrowser for help on using the repository browser.