I want to display a form by using widget : TableForm and TextField
link this:
class ComentFields(tg.widgets.WidgetsList):
email = tg.widgets.TextField()
comment = tg.widgets.TextArea()
commentForm = tg.widgets.TableForm(fields=ComentFields(),
submit_text="Submit")
It looks ok, but I want to change the display name of TextField in
chinese.
But there is a problem, the TextField's name of form is also become
chinese.
May be this is ok for browser to send and TurboGears to receive.
But I want the display name is in chinese, and the TextField's form
name is in english.
What should I do?
There seems no param to set, all I can do is modify template of
TextField?
But if I do so... That is not meaningful to do so. Because I can write
text html by myself, just like I write a new template for TextField.
So, if there is no way to do so, could you add some new params to let
display name and form name are different could be possible in new
version of TurboGears. I think this could be helpful for who use
TurboGears in non-English.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---