Re: [Zope-Annce] Localized DateTime classes
Hi! Nice... On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version which will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings! Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Hi Oleg, svedovelli, the point IMHO is, the locales setting applies to the server system, where it is serving pages for a client system and its settings. E.g. I would not expect russian date in a italian document... Regards Tino Oleg Broytmann wrote:
Hi!
Nice...
On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version which will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings!
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Sun, 18 Mar 2001, Tino Wildenhain wrote:
the point IMHO is, the locales setting applies to the server system, where it is serving pages for a client system and its settings. E.g. I would not expect russian date in a italian document...
But of course! And because of this I would do entire site in one langauge and one locale. The problem with Zope is that it's multithreaded, and can't switch locales on the fly :( Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Hi Oleg, Oleg Broytmann wrote:
On Sun, 18 Mar 2001, Tino Wildenhain wrote:
the point IMHO is, the locales setting applies to the server system, where it is serving pages for a client system and its settings. E.g. I would not expect russian date in a italian document...
But of course! And because of this I would do entire site in one langauge and one locale. The problem with Zope is that it's multithreaded, and can't switch locales on the fly :(
sure it can :) We "only" need to replace all the locale aware methods with language-negotiation aware methods. Additionally there is a need for local override of this, meaning if one wants to mix variuos languages in one page, it should be possible to give an extra attribute to an equivalent of the <dtml-var> tag or something like that. I'll make a proposal later this week as time allows Regards Tino
Well, we can think about it in a second time....maybe we can find a solution as well. Stefano -----Messaggio originale----- Da: Oleg Broytmann [mailto:phd@phd.pp.ru] Inviato: lunedi 19 marzo 2001 15.12 A: Tino Wildenhain Cc: svedovelli; Zope Mailing List Oggetto: Re: [Zope] Re: [Zope-Annce] Localized DateTime classes On Sun, 18 Mar 2001, Tino Wildenhain wrote:
the point IMHO is, the locales setting applies to the server system, where it is serving pages for a client system and its settings. E.g. I would not expect russian date in a italian document...
But of course! And because of this I would do entire site in one langauge and one locale. The problem with Zope is that it's multithreaded, and can't switch locales on the fly :( Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Exactly... this is why this is a very first try, and I am relying also on the comunity to see the impact of the modified class. The idea is to expand it so that the class is able to take the localized names from a ZClass rather than determine the proper language from the system Ciao! Stefano -----Messaggio originale----- Da: Tino Wildenhain [mailto:tino@wildenhain.de] Inviato: domenica 18 marzo 2001 16.30 A: Oleg Broytmann Cc: svedovelli; Zope Mailing List Oggetto: Re: [Zope] Re: [Zope-Annce] Localized DateTime classes Hi Oleg, svedovelli, the point IMHO is, the locales setting applies to the server system, where it is serving pages for a client system and its settings. E.g. I would not expect russian date in a italian document... Regards Tino Oleg Broytmann wrote:
Hi!
Nice...
On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version
which
will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings!
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Oleg Broytmann wrote:
Hi!
Nice...
On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version which will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings!
How do you get locale settings from HTTP client ? ------------------- Hannu
Hannu Krosing wrote:
Oleg Broytmann wrote:
Hi!
Nice...
On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version which will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings!
How do you get locale settings from HTTP client ?
accept-language Header, charsets HTH Tino :-)
On Mon, 19 Mar 2001, Hannu Krosing wrote:
On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version which will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings!
How do you get locale settings from HTTP client ?
Ah, so you want to do it based on client settings? I never thought of it. I prefer to use server-side locale settings. How it'd help if a French user visits my Russian site and see the site in Russian with French time? :) PS. [offtopic] Did you see my question on Python in Postgres backend? Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
This is one of the possible problems I am facing. The basic idea that I would like to implement is: if the whole site is in a specific language, then the designer should be able to provide the DateTime with the proper translation. I am planning to use a ZClass to achieve this. Ciao! Stefano -----Messaggio originale----- Da: hannu@m72.tm.ee [mailto:hannu@m72.tm.ee]Per conto di Hannu Krosing Inviato: lunedi 19 marzo 2001 10.47 A: Oleg Broytmann Cc: svedovelli; Zope Mailing List Oggetto: Re: [Zope] Re: [Zope-Annce] Localized DateTime classes Oleg Broytmann wrote:
Hi!
Nice...
On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version
which
will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings!
How do you get locale settings from HTTP client ? ------------------- Hannu
Hello Oleg well, yes, but what if you are running a german installation and want to provide, say, dutch localization? This is my very first try, also to see if people are interested. I am trying now to design a more flexible way to do this, using a ZClass to determine the desired translation. I will post soon when I will have a proper solution Keep in touch Ciao! Stefano -----Messaggio originale----- Da: Oleg Broytmann [mailto:phd@phd.pp.ru] Inviato: lunedi 19 marzo 2001 10.38 A: svedovelli Cc: Zope Mailing List Oggetto: Re: [Zope-Annce] Localized DateTime classes Hi! Nice... On Sun, 18 Mar 2001, svedovelli wrote:
French, but I plan in future to create a more sophisticated version which will try to guess in which country the system is running in order to return the proper translation.
...but why guess? Just use locale settings! Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (4)
-
Hannu Krosing -
Oleg Broytmann -
svedovelli -
Tino Wildenhain