mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Updated russian translation and update.sh.
This commit is contained in:
parent
fea9f6b847
commit
02338e7438
@ -1,3 +1,8 @@
|
|||||||
|
2000-05-15 Valek Filippov <frob@df.ru>
|
||||||
|
|
||||||
|
* ru.po: updated russian translation.
|
||||||
|
* update.sh: newest version.
|
||||||
|
|
||||||
2000-05-15 Matthias Warkus <mawa@iname.com>
|
2000-05-15 Matthias Warkus <mawa@iname.com>
|
||||||
|
|
||||||
* de.po: Record-breakingly quick update. And fixed a typo or two.
|
* de.po: Record-breakingly quick update. And fixed a typo or two.
|
||||||
|
32
po/update.sh
32
po/update.sh
@ -6,11 +6,35 @@ if [ "x$1" = "x--help" ]; then
|
|||||||
|
|
||||||
echo Usage: ./update.sh langcode
|
echo Usage: ./update.sh langcode
|
||||||
echo --help display this help and exit
|
echo --help display this help and exit
|
||||||
|
echo --missing search for missing files in POTFILES.in
|
||||||
echo
|
echo
|
||||||
echo Examples of use:
|
echo Examples of use:
|
||||||
echo ./update.sh ----- just creates a new pot file from the source
|
echo ./update.sh ----- just creates a new pot file from the source
|
||||||
echo ./update.sh da -- created new pot file and updated the da.po file
|
echo ./update.sh da -- created new pot file and updated the da.po file
|
||||||
|
|
||||||
|
elif [ "x$1" = "x--missing" ]; then
|
||||||
|
|
||||||
|
echo "Searching for files containing _( ) but missing in POTFILES.in..."
|
||||||
|
find ../ -regex '.*\.[c|y|cc|c++|h]' | xargs grep _\( | cut -d: -f1 | uniq | cut -d/ -f2- > POTFILES.in.missing
|
||||||
|
|
||||||
|
echo Sorting... comparing...
|
||||||
|
sort -d POTFILES.in -o POTFILES.in
|
||||||
|
sort -d POTFILES.in.missing -o POTFILES.in.missing
|
||||||
|
|
||||||
|
diff POTFILES.in POTFILES.in.missing -u0 | grep '^+' |grep -v '^+++'|grep -v '^@@' > POTFILES.in.missing
|
||||||
|
|
||||||
|
if [ -s POTFILES.in.missing ]; then
|
||||||
|
echo && echo "Here are the results:"
|
||||||
|
echo && cat POTFILES.in.missing
|
||||||
|
echo && echo "File POTFILES.in.missing is being placed in directory..."
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
echo &&echo "There are no missing files, thanks God!"
|
||||||
|
rm POTFILES.in.missing
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
elif [ "x$1" = "x" ]; then
|
elif [ "x$1" = "x" ]; then
|
||||||
|
|
||||||
echo "Building the $PACKAGE.pot ..."
|
echo "Building the $PACKAGE.pot ..."
|
||||||
@ -24,6 +48,8 @@ xgettext --default-domain=$PACKAGE --directory=.. \
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
if [ -s $1.po ]; then
|
||||||
|
|
||||||
xgettext --default-domain=$PACKAGE --directory=.. \
|
xgettext --default-domain=$PACKAGE --directory=.. \
|
||||||
--add-comments --keyword=_ --keyword=N_ \
|
--add-comments --keyword=_ --keyword=N_ \
|
||||||
--files-from=./POTFILES.in \
|
--files-from=./POTFILES.in \
|
||||||
@ -39,4 +65,10 @@ mv $1.po $1.po.old && msgmerge $1.po.old $PACKAGE.pot -o $1.po \
|
|||||||
|
|
||||||
msgfmt --statistics $1.po
|
msgfmt --statistics $1.po
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
echo Sorry $1.po does not exist!
|
||||||
|
|
||||||
|
fi;
|
||||||
|
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
Reference in New Issue
Block a user