Messages.sh 1.43 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
#! /bin/sh
2
source kundo2_aware_xgettext.sh
3

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

13
ACTIONFILES=`find . -name \*.action | grep -v '/tests/'`
Boudewijn Rempt's avatar
Boudewijn Rempt committed
14 15 16
./action_i18n.pl --context=action $ACTIONFILES >> rc.cpp

# extracti18n.pl extracts additional data from brushes, palettes etc.
17
perl extracti18n.pl >> rc.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
18

19 20 21 22
# Extract the name of configuration pages in the metadata editor plugin.
$EXTRACTATTR --attr=MetaDataEditor,name --context='metadata editor page' \
  plugins/extensions/metadataeditor/editors/*.xmlgui >> rc.cpp

Boudewijn Rempt's avatar
Boudewijn Rempt committed
23
# Ignore sdk/templates which contains templates for writing future plugins.
24
# Also ignore crashreporter, it has it's own catalog
Boudewijn Rempt's avatar
Boudewijn Rempt committed
25
# None of the placeholder strings inside will be seen by users.
26
kundo2_aware_xgettext krita.pot rc.cpp \
27
                  `find . -name \*.cc -o -name \*.h  -o -name \*.cpp | \
28
                  grep -v '/tests/' | grep -v './sdk/templates' | grep -v './krita/crashreporter/'`
Boudewijn Rempt's avatar
Boudewijn Rempt committed
29

30 31 32
# Extract the messages in Python plugins.
$XGETTEXT -L Python `find . -name \*.py` -j -o $podir/krita.pot

Boudewijn Rempt's avatar
Boudewijn Rempt committed
33
# Clean up
34
rm -f rc.cpp