comparison DOCS/tech/translations.txt @ 18539:625b642df80d

Mention new mphelp_check.py script.
author diego
date Wed, 17 May 2006 22:02:26 +0000
parents fe601b7b10c8
children 5a8e868772f3
comparison
equal deleted inserted replaced
18538:739849dfb699 18539:625b642df80d
35 35
36 http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/help/ 36 http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/help/
37 37
38 help_mp-en.h is the master file that you should use as a base for translations. 38 help_mp-en.h is the master file that you should use as a base for translations.
39 If you are adopting an already existing translation, please check it from top 39 If you are adopting an already existing translation, please check it from top
40 to bottom once. Later it should suffice to just translate missing messages. If 40 to bottom once. Later it should suffice to just translate missing messages.
41 you want to check for untranslated messages the help/help-diff.sh script comes 41 Additionally, please make sure that your translated messages fit on an 80
42 in handy: 42 character wide display to avoid overflowing output.
43 43
44 help_diff.sh help_mp-XX.h < help_mp-en.h 44 TOOLS/mphelp_check.py is a small tool to check translated files. It will report
45 conflicting arguments, strings not present in the master file and (optionally)
46 strings missing from the translation. Running it as
45 47
46 will print untranslated messages to the screen, just substitute XX with your 48 mphelp_check.py help_mp-en.h help_mp-XX.h
47 language code. Additionally, please make sure that your translated messages fit 49
48 on an 80 character wide display to avoid overflowing output. 50 will output errors to the screen, just substitute XX with your language code.
51
52 mphelp_check.py -missing help_mp-en.h help_mp-XX.h
53
54 will additionally print untranslated messages to the screen.
49 55
50 If you do not translate all messages at once, please do not leave untranslated 56 If you do not translate all messages at once, please do not leave untranslated
51 messages in your translated file, just leave them out instead. The MPlayer 57 messages in your translated file, just leave them out instead. The MPlayer
52 build system automatically checks for missing messages and uses the English 58 build system automatically checks for missing messages and uses the English
53 ones instead. This has the added advantage of providing the latest versions of 59 ones instead. This has the added advantage of providing the latest versions of