Mercurial > mplayer.hg
view help/help_diff.sh @ 9470:3c0bc75f380d
Latest version has the following features:
- --language=ab,cd,ef and --language="ab cd ef" are supported, the list
is now used as a fallback for possible message/gui translations
- --language=all is supported
- --language=ab,cd,ef,all and --language="ab cd ef all" are supported
for all man pages, but different message/gui translations than en
- $LINGUAS is honored
- if no --language or $LINGUAS is given it defaults to en
Credits for ideas go out to (in no particular order):
Tobias Diedrich
Sylvain Petreolle
Dan Christiansen
Dominik Mierzejewski
Andriy N. Gritsenko
and everyone I've forgotten
Andreas Hess <jaska@gmx.net>
author | arpi |
---|---|
date | Thu, 20 Feb 2003 23:32:47 +0000 |
parents | 450015fb59e6 |
children | 7938ee85f355 |
line wrap: on
line source
#!/bin/sh # This script walks through the master (stdin) help/message file, and # prints (stdout) only those messages which are missing from the help # file given as parameter ($1). # # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h curr="" while read -r line; do if echo "$line" | grep -q '^#define'; then curr=`echo "$line" | cut -d ' ' -f 2` if grep -q "^#define $curr " $1; then curr="" fi else if [ -z "$line" ]; then curr="" fi fi if [ -n "$curr" ]; then echo "$line" fi done