Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Messages.sh 1.1 KB
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
Luigi Toscano's avatar
Luigi Toscano committed
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 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

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

# Clean up
27
rm -f i18ndata rc.cpp