On Mon, Nov 23, 2009 at 12:20 AM, Thadeus Burgess <thade...@thadeusb.com>wrote:

> if web2py is mostly written in English, then it needs to default to
> English, and allow for easy overriding of this default.
>

I agree.

More explicitly - whatever the web2py distribution default is should behave
correctly;

If an application declares it's own default language (and it should be easy,
and clear - how should that look to the application writer?), then that
should override the distribution default for requests to that application.

To see why there is currently a bug,

   - set your languages to more than one in (for example) Firefox
      - e.g. [1] 'en';  [2] 'it'
   - go to http://www.web2py.com/examples/simple_examples/hello6  (or any of
   the simple examples)
      - despite 'en' being the first language, the example displays "Slave
      Mondo'  (incorrect behavior)


The current default behavior is incorrect;   the proposal (which is fine for
overriding a site defailt) is that EACH APPLICATION must declare the default
language.

This (currently) is necessary for the system to behave reasonably.

The reason Massimo's proposed "solution" is NOT sufficient for the
installation default should now be quite evident:  the "patch" for the bug
MUST propogate to EACH AND EVERY APP  for the system behavior to be correct.

This is NOT a bug in examples; this is a bug in gluon/languages.py.   To see
this yet another way, write a unit test for gluon/languages.py.

Since examples do not behave correctly, and - in general - with Massimo's
proposal  multiple, and constantly changing (as applications are
installed)   points of correction must be made in order to accomplish
reasonable behavior:  this by itself is sufficient evidence to point
directly to the bug in gluon/languages.py.   Additionally, a suggestion that
"examples" has a bug (it does not)  is a suggestion which breaks "backward
compatibility"  (but backward compatibility is not the point at all here -
that correcting a bug at its source is the proper approach is what is in
discussion here)

Once all recognize this clearly, then we can move on to talking about what a
good solution would look like.

- Yarko



>
> -Thadeus
>
>
>
>
>
> On Sun, Nov 22, 2009 at 10:04 PM, mdipierro <mdipie...@cs.depaul.edu>wrote:
>
>> rammer always explicitly say which languages do not need
>> transla
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to