T("hello")+"world"
is not allowed. This is done on purpose to remind people that it is
not logically correct to concatenate string that are translated
separately.
There is a work around
str(T("hello"))+"world"
but the beset way is
T("hello world")
Massimo
On Dec 16, 5:19 pm, Fran <[email protected]> wrote:
> On Dec 16, 10:48 pm, "Yarko Tymciurak" <[email protected]> wrote:
>
> > Don't forget - you have one more t2-ism, besides comment which you can try
> > to play with: label
>
> Thanks, yes...that /could/ be useful for more than just wording
> changes too :)
>
> > See how far you can push these;
>
> I've got a solution I'm mostly happy with now actually :)
> I removed the Table lines in my CSS, so the '*' for required is nicely-
> following the input box.
> I use jquery.tooltip for the Help so that I can specify the Help
> within the 'title' field.
> This has the additional advantage of making it accessible to non-JS
> users too :)
>
> 1 snag is the Internationalisation of the Help.
> I tried:
> _title='"'+T("Location")+'|'+T("The GIS Feature associated with this
> Shelter")+'."'
> But this errors:
> TypeError: cannot concatenate 'str' and 'lazyT' objects
>
> I have to T the whole title: _title=T("Location|The GIS Feature
> associated with this Shelter.")
> The issue with this is that translators can easily break the
> functionality (by missing the '|')...although it's not too fatal,
> fortunately :)
>
> Anyway - thanks a lot for the pointer on how to do it all fairly
> easily within the framework - very easy for module wiriters to take
> advantage now :)
>
> F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---