On Jan 4, 5:26 pm, Fran <[email protected]> wrote: > On Jan 4, 1:08 pm, mdipierro <[email protected]> wrote:
> > There is no way you ca translate 'Add %s' % single because at the > > moment of translation you do know know the value of the variable > > single. > > Is there no possibility of creating an EarlyT type (vs LazyT) so that > translations happen at a lower level? Translating at a lower level (i.e. translating 'Add Python' instead of 'Add %s') would potentially result in a combinatorial explosion. The best method (it seems to me) would be to translate each of the possible values for '%s' (resulting in X translations), then translate each of the possible sentences like 'Add &s' and 'Subtract %s' (resulting in Y translations) and then combine them. Each language (let Z represent # of languages) will require a set of translations This results in Z*(X+Y) translations. If you translate at the low level instead, you end up with X*Y*Z translations, which could be very labour-intensive for high values of X, Y or Z. --Jonathan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

