Re: [xml] Error callback caputure and libxml2



On Sun, Feb 01, 2004 at 12:29:40AM +1000, Keith Isdale wrote:
I am looking at provide i18n support for my libxslt based application, part of 
that task involves creating a custom handler for callback functions like  
xmlStructuredErrorFunc and reporting translated errors based on the error 
code/text provided.

It seems wasteful to me that translators could end up providng more than one 
set of translations, one per GPL'd applicaton, when there is nearly 500 
untranslated error message strings to be created/handled.  Is there some way 
this can be avoided?  ie pulling all error messages into a libxml2  file and 
providing translations from there if  host system supports POSIX locale.  If 
provided this wouild mean that xmllint/xsltproc would have the core 
translations it needs as well.

  I don't think libxml2 or libxslt error messages should be provided
directly to the users. I expect software to provide their own messages
and I18N layer. This also avoid to select one I18N implementation 
mechanism and dependancies on such implementation.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]