File: Messages.sh

package info (click to toggle)
kwave 25.04.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,272 kB
  • sloc: cpp: 56,173; xml: 817; perl: 688; sh: 57; makefile: 11
file content (35 lines) | stat: -rwxr-xr-x 1,528 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
############################################################################
#   Messages.sh - script to extract translatable messages
#                            -------------------
#   begin                : Mon Jan 26 2015
#   copyright            : (C) 2015 by Thomas Eschenbacher
#   email                : Thomas.Eschenbacher@gmx.de
############################################################################
#
############################################################################
#                                                                          #
#    This program is free software; you can redistribute it and/or modify  #
#    it under the terms of the GNU General Public License as published by  #
#    the Free Software Foundation; either version 2 of the License, or     #
#    (at your option) any later version.                                   #
#                                                                          #
############################################################################

# collect all messages from the .ui files
$EXTRACTRC `find . -name \*.ui | sort` >> rc.cpp

# fetch all messages from the C++ source and header files
$XGETTEXT `find . -name \*.cpp -o -name \*.h | sort` \
        -o $podir/kwave.pot

# create a pot file from menus.config
perl bin/menusconfig2pot.pl kwave/menus.config _kwave-i18n-menu.pot

# put all parts together
msgcat $podir/kwave.pot _kwave-i18n-menu.pot -o $podir/kwave.pot

# clean up
rm -f _kwave-i18n* rc.cpp

### EOF ###