forked from filianhouse/freemedforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
updatetranslations.sh
61 lines (56 loc) · 2.99 KB
/
updatetranslations.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
# ****************************************************************************
# * The FreeMedForms project is a set of free, open source medical *
# * applications. *
# * (C) 2008-2016 by Eric MAEKER, MD (France) <[email protected]> *
# * All rights reserved. *
# * *
# * 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 3 of the License, or *
# * (at your option) any later version. *
# * *
# * This program is distributed in the hope that it will be useful, *
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
# * GNU General Public License for more details. *
# * *
# * You should have received a copy of the GNU General Public License *
# * along with this program (COPYING.FREEMEDFORMS file). *
# * If not, see <http://www.gnu.org/licenses/>. *
# ***************************************************************************
# /***************************************************************************
# * Main developer: Eric MAEKER, <[email protected]> *
# * Contributors: *
# * Christian A. Reiter <[email protected] *
# * NAME <[email protected]> *
# ***************************************************************************
# this script redirects the output from the error console to stdout
# so that the whole output can be filtered via e.g. grep
# define colors for highlighting
GREEN="\033[32;40m"
NO_COLOUR="\033[0m"
#for i in $( ls plugins ); do
# if [ -f plugins/$i/*.pro ]; then
# echo
# echo "$WHITE********* Updating translation for FreeMedForms plugin: $i$NO_COLOUR"
# echo
# lupdate plugins/$i/*plugin.pro -no-obsolete 2>&1
# fi
#done
APPS=". freediams freedrc freetoolbox freeddimanager"
for a in $APPS; do
for i in $( ls $a/plugins ); do
if [ -f $a/plugins/$i/*.pro ]; then
printf "$GREEN********* Updating translation for $a plugin: $i$NO_COLOUR\n"
lupdate $a/plugins/$i/*.pro -no-obsolete 2>&1
fi
done
done
for i in $( ls libs ); do
if [ -f libs/$i/*.pro ]; then
printf "$GREEN********* Updating translation for libs: $i$NO_COLOUR\n"
lupdate libs/$i/*.pro -no-obsolete 2>&1
fi
done
exit 0;