File indexing completed on 2024-04-14 14:45:32

0001 #! /bin/sh
0002 #
0003 #  SPDX-License-Identifier: GPL-3.0-or-later
0004 #
0005 
0006 source kundo2_aware_xgettext.sh
0007 
0008 $EXTRACTRC `find . -name \*.ui | grep -v '/tests/'` >> rc.cpp
0009 RCFILES=`find . -name \*.xmlgui                                               \
0010         | grep -v krita/sketch/KritaSketchWin.xmlgui                          \
0011         | grep -v krita/gemini/KritaGeminiWin.xmlgui
0012          `
0013 $EXTRACTRC $RCFILES >> rc.cpp
0014 
0015 ACTIONFILES=`find . -name \*.action | grep -v '/tests/'`
0016 ./action_i18n.pl --context=action $ACTIONFILES >> rc.cpp
0017 
0018 # extracti18n.pl extracts additional data from brushes, palettes etc.
0019 perl extracti18n.pl >> rc.cpp
0020 
0021 # Ignore sdk/templates which contains templates for writing future plugins.
0022 # Also ignore crashreporter, it has it's own catalog
0023 # None of the placeholder strings inside will be seen by users.
0024 kundo2_aware_xgettext krita.pot rc.cpp \
0025                   `find . -name \*.cc -o -name \*.h  -o -name \*.cpp | \
0026                   grep -v '/tests/' | grep -v './sdk/templates' | grep -v './krita/crashreporter/'`
0027 
0028 # Extract the messages in Python plugins.
0029 $XGETTEXT -L Python `find . -name \*.py` -j -o $podir/krita.pot
0030 
0031 # Clean up
0032 rm -f rc.cpp