2009年1月27日星期二

Re: [fw-db] Multilingual db models

Well my idea is we have two possibilities:

a) language "different categories", so i wont use db views (categories_cs
and categories_en) but i use tables categories_cs and *_en

b) same categories for each language, it means i will use db views
because in language A could be the category visible and in language B could
be invisible and so...

I don't see sense for inheritance:

eg. CategoryCs extends CategoryAbstract, CategoryEn extends CategoryAbstract
because:

a) I want to use another multilingual models, eg. Products(Cs|En),
Articles(Cs|En) etc.

It means I would have very much redundant "multilingual code" in abstract
class (eg. ProductsAbtract, ArticlesAbstract...)

b) if I would add another language version I would have to add plenty of
class such as CategoryDe, ProductDe...
--
View this message in context: http://www.nabble.com/Multilingual-db-models-tp21682995p21683677.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: