Hello,
Is there anything for multilingual database content? I want to store
in the database content for multiple languages (not static text
translation). I came up to this:
# Languages
db.define_table("cultures",
SQLField("culture","string",length=20,notnull=True,default=""))
# My table !
db.define_table("my_table",
SQLField
("description","string",length=45,notnull=True,default=""))
# My table translation
db.define_table("my_table_translation",
SQLField
("description","string",length=45,notnull=True,default=""),
SQLField("cultures_id","reference cultures",default="0"),
SQLField("my_table_id","reference my_table",default="0"))
db.my_table_translation.my_table_id.requires=IS_IN_DB
(db,'my_table.id', '%(description)s')
db.my_table_translation.cultures_id.requires=IS_IN_DB
(db,'cultures.id', '%(culture)s')
which works, but i need to make views, etc and the most important i
need this for a lot tables,
So cound I make a module to do this for any custom table? I guess i
need something like django-multilingual
Thanx in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---