On Tuesday 06 January 2009 10:19:34 aditi wrote:
> Hi All,
>
> I am trying to implement i18n to make the application multi-lingual.
> However there are few problems that I came across while trying to
> implement:
> 1. Input buttons values were not changed. Do I have to do <input
> type="button" value="_('Test')" /> to make it changeable according to
> the language. This doesnt work for me.
It must of course be "${_('Test')}".
> Similarly if I am making some table with text using mochikit and
> javascript, what should I do to make it changeable according to the
> language selected.
There is a JS18NWidget that you can use to translate messages in JS. I've
written it, but I don't know out of my head how it works. But I hope there is
some docs around, if not, ask again.
> 2. Because of difference in text length of different languages, the
> whole alignment of the pages goes bad. Can you please suggest me some
> work around for this?
Not really. Either make your layout more tolerant (this is the web, not
paper...) - or you need to resort to different templates for different
languages, however that's also not to nice..
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---