route help/help_mp*.h commits to cvslog
Hi, currently the translations in the help dir seem to only go to -translations. Since those files every now and then cause hard to debug compile problems, I think this is a too hidden place (esp. since hardly any of those with eyes trained to spot bugs in code see them there). So I strongly vote for sending commits to these files to the cvslog list - whether exclusively or in addition I don't care (though it should be done in a way so that replies end up in all relevant places I guess). Greetings, Reimar Doeffinger
Hi, On Mon, May 15, 2006 at 01:45:56PM +0200, Reimar Doeffinger wrote: [...]
So I strongly vote for sending commits to these files to the cvslog list [...]
Though actually another nice possibility would be to just add a on-commit syntax check for those files - if we find somebody to write such a script. Greetings, Reimar Doeffinger
On Mon, May 15, 2006 at 01:45:56PM +0200, Reimar Doeffinger wrote:
currently the translations in the help dir seem to only go to -translations. Since those files every now and then cause hard to debug compile problems, I think this is a too hidden place (esp. since hardly any of those with eyes trained to spot bugs in code see them there). So I strongly vote for sending commits to these files to the cvslog list - whether exclusively or in addition I don't care (though it should be done in a way so that replies end up in all relevant places I guess).
I don't think this is going to be of much help. I doubt many people will look through those commits, they're exceptionally boring since they are by definition in languages you mostly don't understand anyway. Automatic checking is a good idea. Probably we should just test compilation with all languages before a release. Diego
Diego Biurrun wrote:
On Mon, May 15, 2006 at 01:45:56PM +0200, Reimar Doeffinger wrote:
currently the translations in the help dir seem to only go to -translations. Since those files every now and then cause hard to debug compile problems, I think this is a too hidden place (esp. since hardly any of those with eyes trained to spot bugs in code see them there). So I strongly vote for sending commits to these files to the cvslog list - whether exclusively or in addition I don't care (though it should be done in a way so that replies end up in all relevant places I guess).
I don't think this is going to be of much help. I doubt many people will look through those commits, they're exceptionally boring since they are by definition in languages you mostly don't understand anyway.
Also, it would result in lots of cross-posting I guess.
Automatic checking is a good idea. Probably we should just test compilation with all languages before a release.
I'm trying now with for lang in bg cs dk el fr hu it ja ko mk nl no pl pt ro ru sk sv tr uk zh; do make distclean && ./configure --language=$lang && make |tee /tmp/build-all-languages-$lang; done Let's see what happens :) Having an automated checking script for help_mp-*.h would still be nice. Sebastian
Hi, On Mon, May 15, 2006 at 06:51:07PM +0200, Sebastian Kr?mer wrote:
I'm trying now with
for lang in bg cs dk el fr hu it ja ko mk nl no pl pt ro ru sk sv tr uk zh; do make distclean && ./configure --language=$lang && make |tee /tmp/build-all-languages-$lang; done
Let's see what happens :)
You're missing all the different configure options :-). Well, actually that's not needed, but this isn't effective unless basically every feature is enabled...
Having an automated checking script for help_mp-*.h would still be nice.
This would not only be a better but also a more reliable approach. Greetings, Reimar Döffinger
Reimar Döffinger wrote:
Hi, On Mon, May 15, 2006 at 06:51:07PM +0200, Sebastian Kr?mer wrote:
I'm trying now with
for lang in bg cs dk el fr hu it ja ko mk nl no pl pt ro ru sk sv tr uk zh; do make distclean && ./configure --language=$lang && make |tee /tmp/build-all-languages-$lang; done
Let's see what happens :)
You're missing all the different configure options :-). Well, actually that's not needed, but this isn't effective unless basically every feature is enabled...
Reimar, you're probably right :) For anyone interested though, I didn't find any errors that way.
Having an automated checking script for help_mp-*.h would still be nice.
This would not only be a better but also a more reliable approach.
Maybe we can gather some information about what the right syntax would be.. Or could a small C program that uses all these messages be the simplest approach? Sebastian
On Mon, May 15, 2006 at 10:27:39PM +0200, Sebastian Krämer wrote:
Maybe we can gather some information about what the right syntax would be.. Or could a small C program that uses all these messages be the simplest approach?
IMO you need a format string checker... Rich
Rich Felker wrote:
On Mon, May 15, 2006 at 10:27:39PM +0200, Sebastian Krämer wrote:
Maybe we can gather some information about what the right syntax would be.. Or could a small C program that uses all these messages be the simplest approach?
IMO you need a format string checker...
I agree. I was shocked when I saw the message sent. Preferences say that thunderbird is supposed to wrap everything and I think it usually does. No idea what went wrong. However, there are worse things I guess. What about broken help_mp-*.h messages? Sebastian
Sebastian Krämer wrote:
Rich Felker wrote:
On Mon, May 15, 2006 at 10:27:39PM +0200, Sebastian Krämer wrote:
Maybe we can gather some information about what the right syntax would be.. Or could a small C program that uses all these messages be the simplest approach?
IMO you need a format string checker...
I agree. I was shocked when I saw the message sent. Preferences say that thunderbird is supposed to wrap everything and I think it usually does. No idea what went wrong. However, there are worse things I guess. What about broken help_mp-*.h messages?
Heh, Rich, I think I misunderstood your message as a rant that my mail client would not honour the 80 character per line limit. ;) Wheter it does or not, nevermind my previous mail. So what about a format string checker? Any suggestion about how that could be implemented? Sebastian
On Tue, May 16, 2006 at 04:18:29AM +0200, Sebastian Krämer wrote:
Heh, Rich, I think I misunderstood your message as a rant that my mail client would not honour the 80 character per line limit. ;) Wheter it does or not, nevermind my previous mail.
rotfl! :)
So what about a format string checker? Any suggestion about how that could be implemented?
you just need to parse the strings and make sure the number and type of the arguments matches. and you presumably also need to support %1$d type arguments for reordering in translations.. if ppl are too lazy to code the parser they could take the code from my libc to do it.. rich
On Tue, 2006-05-16 at 04:18 +0200, Sebastian Krämer wrote:
So what about a format string checker? Any suggestion about how that could be implemented?
Here's a simple checker written in Python. It takes a base helpfile name (using help_mp-en.h probably makes most sense) and one or more other files to compare against. It tries to detect conflicting formats, extra strings that are not in the base file and missing strings (reporting is optional as some files have a lot of those). A sample run (the 'Missing:' line would not be there without -missing): $ ~/misc/python/mphelp_formatcheck.py -missing help_mp-en.h help_mp-de.h ***** help_mp-de.h Mismatch: MSGTR_SKIN_WARNING2 [skin] warning: in config file line %d:\nwidget (%s) found but no \"subsection\" found before [Skin] Warnung: in Skin-Konfigurationsdatei in Zeile %d:\nWidget (%s) gefunden, aber davor wurde \"subsection\" nicht gefunden (%s) Extra: MSGTR_OSDnone MSGTR_LIBVO_SVGA_IfItWorksForYouIWouldLineToKnow MSGTR_OSDDVDNAV MSGTR_OSDunknown Missing: MSGTR_MPDEMUX_AUDIO_UnknownFormat MSGTR_MPDEMUX_DEMUXERS_FillBufferError MSGTR_MPDEMUX_XMMS_FoundPlugin MSGTR_MPDEMUX_XMMS_ClosingPlugin MSGTR_MPDEMUX_NUV_NoVideoBlocksInFile MSGTR_LIBVO_SVGA_IfItWorksForYouIWouldLikeToKnow BTW personally I'd prefer a translation system where the code would have the English message and the translated messages would be looked up based on that. The current system makes it less than obvious what the message says or what the arguments should be when reading the code, and also has the drawback of requiring an extra step when you want to find out where in the code a particular message in output was printed from.
Sebastian Krämer wrote:
Rich Felker wrote:
On Mon, May 15, 2006 at 10:27:39PM +0200, Sebastian Krämer wrote:
Maybe we can gather some information about what the right syntax would be.. Or could a small C program that uses all these messages be the simplest approach?
IMO you need a format string checker...
I agree. I was shocked when I saw the message sent. Preferences say that thunderbird is supposed to wrap everything and I think it usually does. No idea what went wrong.
Your message is wrapped properly when it gets sent, but Thunderbird is rewrapping it to fill your window when you read it. If that bothers you, you can disable it. See this page: http://ilias.ca/mozilla/mailnewsfaq/FormatFlowed -Corey
participants (7)
-
Corey Hickey -
Diego Biurrun -
Reimar Doeffinger -
Reimar Döffinger -
Rich Felker -
Sebastian Krämer -
Uoti Urpala