Changeset View
Changeset View
Standalone View
Standalone View
krita/Messages.sh
1 | #! /bin/sh | 1 | #! /bin/sh | ||
---|---|---|---|---|---|
2 | source ../calligra_xgettext.sh | 2 | source ../calligra_xgettext.sh | ||
3 | 3 | | |||
4 | $EXTRACTRC `find . -name \*.ui | grep -v '/tests/'` >> rc.cpp | 4 | $EXTRACTRC `find . -name \*.ui | grep -v '/tests/'` >> rc.cpp | ||
5 | RCFILES=`find . -name \*.rc \ | 5 | RCFILES=`find . -name \*.rc \ | ||
6 | | grep -v plugins/extensions/metadataeditor/editors/dublincore.rc \ | 6 | | grep -v plugins/extensions/metadataeditor/editors/dublincore.rc \ | ||
7 | | grep -v plugins/extensions/metadataeditor/editors/exif.rc \ | 7 | | grep -v plugins/extensions/metadataeditor/editors/exif.rc \ | ||
8 | | grep -v sketch/KritaSketchWin.rc \ | 8 | | grep -v sketch/KritaSketchWin.rc \ | ||
9 | | grep -v gemini/KritaGeminiWin.rc | 9 | | grep -v gemini/KritaGeminiWin.rc | ||
10 | ` | 10 | ` | ||
11 | $EXTRACTRC $RCFILES >> rc.cpp | 11 | $EXTRACTRC $RCFILES >> rc.cpp | ||
12 | | ||||
13 | ACTIONFILES=`find . -name \*.action` | ||||
14 | ./action_i18n.pl --context=action $ACTIONFILES >> rc.cpp | ||||
15 | | ||||
16 | # extracti18n.pl extracts additional data from brushes, palettes etc. | ||||
12 | perl extracti18n.pl > i18ndata | 17 | perl extracti18n.pl > i18ndata | ||
13 | # ignore sdk/templates since it contains templates for use a future plugins, none of the strings there will ever be seen by any user | 18 | | ||
14 | calligra_xgettext krita.pot i18ndata rc.cpp `find . -name \*.cc -o -name \*.h -o -name \*.cpp | grep -v '/tests/' | grep -v './sdk/templates'` | 19 | # Ignore sdk/templates which contains templates for writing future plugins. | ||
20 | # None of the placeholder strings inside will be seen by users. | ||||
21 | calligra_xgettext krita.pot i18ndata rc.cpp \ | ||||
22 | `find . -name \*.cc -o -name \*.h -o -name \*.cpp | grep -v '/tests/' | grep -v './sdk/templates'` | ||||
23 | | ||||
24 | # Clean up | ||||
15 | rm -f i18ndata rc.cpp | 25 | rm -f i18ndata rc.cpp |