Fix missing last translation
In FW3.10.1 there are 351 translations in the `lang_en.txt` but only 350 have been exported the `po` files missing the last one.
This commit is contained in:
parent
ba0e14f898
commit
29e863e425
|
|
@ -113,26 +113,37 @@ s1=''
|
||||||
s2=''
|
s2=''
|
||||||
num=1
|
num=1
|
||||||
(cat $INFILE | sed "s/\\\\/\\\\\\\\/g" | while read -r s; do
|
(cat $INFILE | sed "s/\\\\/\\\\\\\\/g" | while read -r s; do
|
||||||
if [ "$s" = "" ]; then
|
#start debug
|
||||||
echo " processing $num of $CNTTXT" >&2
|
#if [ "${s:0:1}" = "\"" ]; then
|
||||||
# write po/pot item
|
# echo >&2
|
||||||
(
|
# echo "s = $s ." >&2
|
||||||
if [ -z "$s2" ]; then s2=$s1; s1=$s0; s0='""'; fi
|
# echo "s0 = $s0 ." >&2
|
||||||
search=$(/bin/echo -e "$s1")
|
# echo "s1 = $s1 ." >&2
|
||||||
found=$(grep -m1 -n -F "$search" $SRCFILES | head -n1 | cut -f1-2 -d':' | sed "s/^.*\///")
|
#fi
|
||||||
echo "$s2" | sed 's/ c=0//;s/ r=0//;s/^#/# /'
|
#end debug
|
||||||
echo "#: $found"
|
if [ "${s:0:1}" = "\"" ]; then
|
||||||
/bin/echo -e "msgid $s1"
|
if [[ "${s0:0:1}" = "\"" || "$LNG" = "en" ]]; then
|
||||||
if [ "$s0" = "\"\\\\x00\"" ]; then
|
echo " processing $num of $CNTTXT" >&2
|
||||||
echo 'msgstr ""'
|
# write po/pot item
|
||||||
else
|
(
|
||||||
/bin/echo -e "msgstr $s0"
|
if [ "$LNG" = "en" ]; then s1=$s0; s0=$s; fi
|
||||||
fi
|
search=$(/bin/echo -e "$s0")
|
||||||
echo
|
found=$(grep -m1 -n -F "$search" $SRCFILES | head -n1 | cut -f1-2 -d':' | sed "s/^.*\///")
|
||||||
|
echo "$s1" | sed 's/ c=0//;s/ r=0//;s/^#/# /'
|
||||||
|
#echo "$s1" | sed 's/ c=0//;s/ r=0//;s/^#/# /' >&2
|
||||||
|
echo "#: $found"
|
||||||
|
#echo "#: $found" >&2
|
||||||
|
/bin/echo -e "msgid $s0"
|
||||||
|
if [[ "$s" = "\"\\\\x00\"" || "$LNG" = "en" ]]; then
|
||||||
|
echo 'msgstr ""'
|
||||||
|
else
|
||||||
|
/bin/echo -e "msgstr $s"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
)
|
)
|
||||||
num=$((num+1))
|
num=$((num+1))
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
s2=$s1
|
|
||||||
s1=$s0
|
s1=$s0
|
||||||
s0=$s
|
s0=$s
|
||||||
done >>$OUTFILE) 2>&1
|
done >>$OUTFILE) 2>&1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue