File indexing completed on 2021-12-21 13:34:12
0001 #!/bin/sh 0002 ############################################################################ 0003 # Messages.sh - script to extract translatable messages 0004 # ------------------- 0005 # begin : Mon Jan 26 2015 0006 # copyright : (C) 2015 by Thomas Eschenbacher 0007 # email : Thomas.Eschenbacher@gmx.de 0008 ############################################################################ 0009 # 0010 ############################################################################ 0011 # # 0012 # This program is free software; you can redistribute it and/or modify # 0013 # it under the terms of the GNU General Public License as published by # 0014 # the Free Software Foundation; either version 2 of the License, or # 0015 # (at your option) any later version. # 0016 # # 0017 ############################################################################ 0018 0019 # collect all messages from the .ui files 0020 $EXTRACTRC `find . -name \*.ui | sort` >> rc.cpp 0021 0022 # fetch all messages from the C++ source and header files 0023 $XGETTEXT `find . -name \*.cpp -o -name \*.h | sort` \ 0024 -o $podir/kwave.pot 0025 0026 # create a pot file from menus.config 0027 perl bin/menusconfig2pot.pl kwave/menus.config _kwave-i18n-menu.pot 0028 0029 # put all parts together 0030 msgcat $podir/kwave.pot _kwave-i18n-menu.pot -o $podir/kwave.pot 0031 0032 # clean up 0033 rm -f _kwave-i18n* rc.cpp 0034 0035 ### EOF ###