Commit e0df354c authored by Piotr Szotkowski's avatar Piotr Szotkowski

Transifex no longer unwraps strings

parent 0e14fa4a
......@@ -37,7 +37,7 @@ pots=`for pot in $temp/pot/*/*.pot; do basename $pot .pot; done | sort -u | grep
# merge per-release files into unified ones
for pot in $pots; do
echo " * merging $pot.pot files"
msgcat --no-wrap --use-first $temp/pot/*/$pot.pot > $potdir/$pot.pot
msgcat --use-first $temp/pot/*/$pot.pot > $potdir/$pot.pot
done
# drop strings in common-base.pot from other files
......@@ -46,7 +46,7 @@ for pot in $pots; do
echo " * dropping common-base strings from $pot.pot"
common=`tempfile`
msgcomm $potdir/$pot.pot $potdir/common-base.pot > $common
msgcomm --no-wrap --unique $potdir/$pot.pot $common | sponge $potdir/$pot.pot
msgcomm --unique $potdir/$pot.pot $common | sponge $potdir/$pot.pot
rm $common
done
......@@ -57,7 +57,7 @@ for pot in $pots; do
echo " * dropping common-components strings from $pot.pot"
common=`tempfile`
msgcomm $potdir/$pot.pot $potdir/common-components.pot > $common
msgcomm --no-wrap --unique $potdir/$pot.pot $common | sponge $potdir/$pot.pot
msgcomm --unique $potdir/$pot.pot $common | sponge $potdir/$pot.pot
rm $common
done
......
......@@ -43,7 +43,6 @@ echo ' * building common-base.pot'
cp $header $potdir/common-base.pot
`dirname $0`/extractor.php base $root >> $potdir/common-base.pot
msguniq $potdir/common-base.pot | sponge $potdir/common-base.pot
msgattrib --no-wrap $potdir/common-base.pot | sponge $potdir/common-base.pot
# create component POT files
for comp in $components; do
......@@ -63,13 +62,13 @@ for comp in $components; do
paths="$paths $potdir/$comp.pot"
done
echo ' * building common-components.pot'
msgcomm --no-wrap $paths > $potdir/common-components.pot
msgcomm $paths > $potdir/common-components.pot
# drop strings in common-components.pot from component POT files
for comp in $components; do
common=`tempfile`
msgcomm $potdir/$comp.pot $potdir/common-components.pot > $common
msgcomm --no-wrap --unique $potdir/$comp.pot $common | sponge $potdir/$comp.pot
msgcomm --unique $potdir/$comp.pot $common | sponge $potdir/$comp.pot
rm $common
done
......
......@@ -6,6 +6,6 @@ pots=`for pot in po/pot/*.pot; do basename $pot .pot; done`
for lang in $langs; do
echo; echo $lang
for pot in $pots; do
msgmerge --no-wrap --unique po/$lang/$pot.po po/pot/$pot.pot
msgmerge --unique po/$lang/$pot.po po/pot/$pot.pot
done
done
......@@ -10,7 +10,7 @@ for pot in $pots; do
echo -n $pot
msgcat --use-first po/$2/$pot.po po/$1/$pot.po | sponge po/$2/$pot.po
msgmerge --update po/$2/$pot.po po/pot/$pot.pot
msgattrib --no-obsolete --no-wrap po/$2/$pot.po | sponge po/$2/$pot.po
msgattrib --no-obsolete po/$2/$pot.po | sponge po/$2/$pot.po
done
echo
......@@ -21,5 +21,5 @@ for pot in $pots; do
echo -n $pot
msgcat --use-first po/$1/$pot.po po/$2/$pot.po | sponge po/$1/$pot.po
msgmerge --update po/$1/$pot.po po/pot/$pot.pot
msgattrib --no-obsolete --no-wrap po/$1/$pot.po | sponge po/$1/$pot.po
msgattrib --no-obsolete po/$1/$pot.po | sponge po/$1/$pot.po
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment