lkml.org 
[lkml]   [2003]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel support for non-english user messages

>>>> "%s: name %p is %d\n", "stringval", 0x4790243, 44
>[...]
>> The real problem I see is that this approach doesn't make it any
>>easier to translate the messages.
>
>If you habe the above, you could use/copy/reuse gettext() since the
>format string is used a key/hash/unique id for the translation.


If all you need is the hash of the format string, why not put that
at the end of the log message, i.e.

<severity>message<hash>

(Note this is the hash of the *format* string, not the message.)

This would be nearly-trivial to do.


--
Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.029 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site