[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: gettext string translation in libsvn_fs_*/tree.c

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-03-02 16:02:37 CET

On Wed, 2 Mar 2005, [UTF-8] Branko Ä^Libej wrote:

> Erik Huelsmann wrote:
>
> >>Just a little question:
> >>
> >>Did we agree to mark all error strings for translation?
> >>
> >>Background: Both libsvn_fs_base and libsvn_fs_fs have a (large?) number of
> >>untranslatable error messages, yet in their tree.c files some *have* been
> >>marked.
> >>
> >>
> >
> >Ok. I remember again:
> >
> >We decided to translate all output (including errors), except those which
> >travel over the network.
> >
> >This means that all libraries can translate their messages, but server
> >applications should prevent setting LC_MESSAGES to anything but "C"/"POSIX".
> >
> >Am I correct here?
> >
> >
> How on earth can we force a particular locale in mod_dav_svn? That would
> affect avary other Apache module running on the same server, and that's
> horrible.
>
Yeah, and it seems hard to force gettext to not translate in svnserve as
well, at least on platforms without LC_MESSAGES. Maybe it is better to
just punt on this and document that you need to setup your locale
correctly to not get translated messages to the client.

Even if we could turn off translation in our libs (by modifying the _()
macro, for example), we can't force other libraries to not translate. So
you might always get a translated message from libc, for example.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 2 16:01:33 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.