Commit 23455b35 authored by Sam Hocevar's avatar Sam Hocevar

* ./toolbox: we no longer translate the Borland plugin.

parent 30fedfba
#! /bin/sh #! /bin/sh
## toolbox for the VLC media player ## toolbox for the VLC media player
## $Id: toolbox,v 1.24 2003/05/15 15:50:22 sam Exp $ ## $Id: toolbox,v 1.25 2003/05/24 12:34:31 sam Exp $
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -322,12 +322,12 @@ if test "${action}" = "po" ...@@ -322,12 +322,12 @@ if test "${action}" = "po"
then then
# create a fake file containing win32 strings # create a fake file containing win32 strings
rm -f modules/gui/win32/strings.cpp rm -f modules/gui/win32/strings.cpp
printf "/* Automatically generated by 'toolbox --update-po', please don't compile */\n" > modules/gui/win32/strings.cpp #printf "/* Automatically generated by 'toolbox --update-po', please don't compile */\n" > modules/gui/win32/strings.cpp
find modules/gui/win32 -name '*.dfm' | while read file #find modules/gui/win32 -name '*.dfm' | while read file
do #do
printf "\n/*\n * from $file:\n */\n\n" >> modules/gui/win32/strings.cpp # printf "\n/*\n * from $file:\n */\n\n" >> modules/gui/win32/strings.cpp
perl -ne 'chop; chop; if( / (Caption|Text|Hint) / || $buffer =~ /[+=] *$/ ) { $buffer =~ s/\+ *$//; $buffer .= $_; } if( $buffer =~ /'"'"' *$/) { $buffer =~ s/'"'"'/"/g; $buffer =~ s/\\/\\\\/g; $buffer =~ s/=/= _(/; print $buffer." );\n"; $buffer = "";}' < $file | grep -v '"-*"' | grep -v '"http://' | grep -v '"vlcs"' >> modules/gui/win32/strings.cpp || exit 1 # perl -ne 'chop; chop; if( / (Caption|Text|Hint) / || $buffer =~ /[+=] *$/ ) { $buffer =~ s/\+ *$//; $buffer .= $_; } if( $buffer =~ /'"'"' *$/) { $buffer =~ s/'"'"'/"/g; $buffer =~ s/\\/\\\\/g; $buffer =~ s/=/= _(/; print $buffer." );\n"; $buffer = "";}' < $file | grep -v '"-*"' | grep -v '"http://' | grep -v '"vlcs"' >> modules/gui/win32/strings.cpp || exit 1
done #done
# find out the source files # find out the source files
rm -f po/POTFILES.in rm -f po/POTFILES.in
echo "# automatically created by toolbox --update-po" > po/POTFILES.in echo "# automatically created by toolbox --update-po" > po/POTFILES.in
...@@ -336,7 +336,7 @@ then ...@@ -336,7 +336,7 @@ then
find include src -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in find include src -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in
echo "" >> po/POTFILES.in echo "" >> po/POTFILES.in
echo "# modules" >> po/POTFILES.in echo "# modules" >> po/POTFILES.in
find modules -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in find modules -name '*.[chm]' -o -name '*.[hc]pp' | grep -v 'gui/win32/' | sort >> po/POTFILES.in
# clean old potfiles # clean old potfiles
cd po cd po
rm -f vlc.pot rm -f vlc.pot
......
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