On Mon, May 11, 2009 at 1:23 PM, Yarko Tymciurak <[email protected]> wrote:
> Is there some discussion needed on this, guruyaya?
> For example, T.__init__ can set T.accepted_language=None for starters...
> Is it additionally necessary to have T.accepted_language = 'Default' ?
>
> For example, if request.env.http_accept_language doesn't have a translation
> file in your app, do applications want an indicator that
> http_request_language does not exist (and ergo set to Default, as opposed to
> 'None')?
>
E.g.:
if T.http_request_language != T.accepted_language:
flash("Tell your admin to add language %s to this app!"
% T.http_request_language )
The alternative (I imagine) without a "Default" would be something like
if T.accepted_language==None:
# try to force some language;
# if it's still 'None' then you have the above info, albeit in a longer
way...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---