I was referring to all strings visible to the end user. Primarily the
customizable setting stringsstrings
On Mar 11, 2012 2:22 PM, "Alan Etkin" <spame...@gmail.com> wrote:

> > it should automatically grab ALL
> > strings especially default strings in admin so we can translate them
>
> I don't understand completely how does the web2py translator works
> internally, but, why to translate every string in a module?
> Sometimes there are strings that the core developer is not interested
> to translate as string literals not exposed to the user. It also would
> add processing time for the server to translate strings not meant for
> translation.
>
> On 11 mar, 12:39, Bruce Wade <bruce.w...@gmail.com> wrote:
> > Okay,
> >
> > Well maybe it is just me but I think when you click the update
> translations
> > button in admin, it should automatically grab ALL
> > strings especially default strings in admin so we can translate them. For
> > example with pyramid you use python setup.py extract_messages this will
> go
> > through every single file in the project to pull out the translate able
> > strings.
> >
> > Would it be difficult to change the way translation works to do this?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Sun, Mar 11, 2012 at 5:21 AM, Alan Etkin <spame...@gmail.com> wrote:
> > > When messages object is instantiated, T is passed as argument
> > > probabbly to process default auth values for translation.
> > > Then .password_reset_button is set without T(...), so for automatic
> > > translation, there should be some operator overloading for the Message
> > > instance to translate the text without explicit T call, otherwise, the
> > > attribute will just be set without further actions.
> >
> > > On 11 mar, 01:26, Bruce Wade <bruce.w...@gmail.com> wrote:
> > > > Hi,
> >
> > > > I was looking at the Auth class, why are settings like the following
> not
> > > > showing in the language translations files by default?
> >
> > > >         # ## these are messages that can be customized
> > > >         messages = self.messages = Messages(current.T)
> > > >         messages.password_reset_button = 'Request reset password'
> >
> > > > I have no idea what Messages(current.T) is supposed to do however the
> > > above
> > > > string is not found in the languages files.
> >
> > > > --
> > > > --
> > > > Regards,
> > > > Bruce Wadehttp://
> > >
> ca.linkedin.com/in/brucelwadehttp://www.wadecybertech.comhttp://www.warplydesigned.comhttp://www.f.
> ..
> >
> > --
> > --
> > Regards,
> > Bruce Wadehttp://
> ca.linkedin.com/in/brucelwadehttp://www.wadecybertech.comhttp://www.warplydesigned.comhttp://www.fitnessfriendsfinder.com

Reply via email to