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

Re: Gettext real issues

From: Greg Stein <gstein_at_lyra.org>
Date: 2004-03-31 01:04:33 CEST

On Tue, Mar 30, 2004 at 03:49:52PM -0300, Nicolás Lichtmaier wrote:
>...
> We need to have a...
>
> "char *dlgettext(char *domain, char *language, char *msgid)"
>
> Solutions:
> 1) Modify gettext runtime and include it in a directory.
> 2) Modify gettext runtime and get the modified version included upstream.
> 2) Write our own code for accessing the .mo files.

I'll defer on this...

> The SVN protocol should be modified so that the client send the locale
> preferences to the server. In the DAV version the solution is to use
> HTTP's "Accept-Language". Doing this will provide the added benefit of
> serving localized content to web browsers wandering through the
> repository, as every browser nowadays sends the "Accept-Language" header.

Right. However, to properly support that, a query function will also be
required to find out which language bundles are available. Code within
Apache or mod_dav_svn or wherever will match up the Accept-Language header
against what is available, and pop out an answer.

The alternative to a query is some kind of configuration setting that says
"these are available". That moves from a dynamic/automatic environment to
a manual config system (which is not as handy, obviously).

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 31 01:03:31 2004

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.