- perform scanning in a thread - change the label of the scan button - trigger cancel with the same button and with the ESC key - process all GUI updates in asynchronous mode. Do not use a top window as parent of popups: - If a top window goes away in an application with multiple instances of XInsaneWidget, any call to a scanner widget leads to a crash. Minor changes.
24 lines
658 B
Bash
Executable File
24 lines
658 B
Bash
Executable File
#!/bin/bash
|
|
if [ ! -x 0_getstrings.sh ]
|
|
then
|
|
echo "Wrong working directory. Please cd to the directory containing this script."
|
|
exit 0
|
|
fi
|
|
|
|
COMPONENT_NAME=S7
|
|
|
|
SRC=../../
|
|
DOMAIN=fr
|
|
DEST=$DOMAIN/${COMPONENT_NAME}.po
|
|
[ ! -d $DOMAIN ] && mkdir $DOMAIN
|
|
[ -f $DEST ] && JOIN="-j"
|
|
[ -f $DEST ] && cp $DEST $DEST.bak-$(date +%F-%T)
|
|
[ ! -f $DEST ] && touch $DEST
|
|
|
|
# Memo: use '--no-location' transiently to get rid of obsolete file locations.
|
|
|
|
xgettext --keyword=_ -d $DOMAIN $JOIN -o $DEST --c++ --from-code=UTF-8 $(find $SRC -type f -name "*.cpp")
|
|
xgettext --keyword=_ -d $DOMAIN -j -o $DEST --c++ --from-code=UTF-8 $(find $SRC -type f -name "*.h")
|
|
|
|
exit 0
|