Messages.sh 1008 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
#! /bin/sh
Boudewijn Rempt's avatar
Boudewijn Rempt committed
2
source krita_xgettext.sh
3

4
$EXTRACTRC `find . -name \*.ui | grep -v '/tests/'` >> rc.cpp
5 6
RCFILES=`find . -name \*.rc                                                   \
	| grep -v plugins/extensions/metadataeditor/editors/dublincore.rc     \
7
	| grep -v plugins/extensions/metadataeditor/editors/exif.rc           \
Albert Astals Cid's avatar
Albert Astals Cid committed
8 9
	| grep -v sketch/KritaSketchWin.rc                                    \
	| grep -v gemini/KritaGeminiWin.rc
10 11
         `
$EXTRACTRC $RCFILES >> rc.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
12 13 14 15 16

ACTIONFILES=`find . -name \*.action`
./action_i18n.pl --context=action $ACTIONFILES >> rc.cpp

# extracti18n.pl extracts additional data from brushes, palettes etc.
Laurent Montel's avatar
Laurent Montel committed
17
perl extracti18n.pl > i18ndata
Boudewijn Rempt's avatar
Boudewijn Rempt committed
18 19 20 21 22 23 24

# Ignore sdk/templates which contains templates for writing future plugins.
# None of the placeholder strings inside will be seen by users.
krita_xgettext krita.pot i18ndata rc.cpp \
                  `find . -name \*.cc -o -name \*.h  -o -name \*.cpp | grep -v '/tests/' | grep -v './sdk/templates'`

# Clean up
25
rm -f i18ndata rc.cpp