Changeset 23455b3540fa216b3f67242b0d1e5891c471577d
- Timestamp:
- 05/24/03 14:34:31
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1053779671 +0000
- git-parent:
[30fedfbaeb18b09c60316dfd8ae0961edeb0c6cc]
- git-author:
- Sam Hocevar <sam@videolan.org> 1053779671 +0000
- Message:
- ./toolbox: we no longer translate the Borland plugin.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r55bfbe3 |
r23455b3 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## toolbox for the VLC media player |
|---|
| 4 | | ## $Id: toolbox,v 1.24 2003/05/15 15:50:22 sam Exp $ |
|---|
| | 4 | ## $Id: toolbox,v 1.25 2003/05/24 12:34:31 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 324 | 324 | # create a fake file containing win32 strings |
|---|
| 325 | 325 | rm -f modules/gui/win32/strings.cpp |
|---|
| 326 | | printf "/* Automatically generated by 'toolbox --update-po', please don't compile */\n" > modules/gui/win32/strings.cpp |
|---|
| 327 | | find modules/gui/win32 -name '*.dfm' | while read file |
|---|
| 328 | | do |
|---|
| 329 | | printf "\n/*\n * from $file:\n */\n\n" >> modules/gui/win32/strings.cpp |
|---|
| 330 | | 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 |
|---|
| 331 | | done |
|---|
| | 326 | #printf "/* Automatically generated by 'toolbox --update-po', please don't compile */\n" > modules/gui/win32/strings.cpp |
|---|
| | 327 | #find modules/gui/win32 -name '*.dfm' | while read file |
|---|
| | 328 | #do |
|---|
| | 329 | # printf "\n/*\n * from $file:\n */\n\n" >> modules/gui/win32/strings.cpp |
|---|
| | 330 | # 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 |
|---|
| | 331 | #done |
|---|
| 332 | 332 | # find out the source files |
|---|
| 333 | 333 | rm -f po/POTFILES.in |
|---|
| … | … | |
| 338 | 338 | echo "" >> po/POTFILES.in |
|---|
| 339 | 339 | echo "# modules" >> po/POTFILES.in |
|---|
| 340 | | find modules -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in |
|---|
| | 340 | find modules -name '*.[chm]' -o -name '*.[hc]pp' | grep -v 'gui/win32/' | sort >> po/POTFILES.in |
|---|
| 341 | 341 | # clean old potfiles |
|---|
| 342 | 342 | cd po |
|---|