1 Jun 2007 01:23
Re: i18n translation in db tables - how to do this like Symfony?
Thanks athies <at> .., Your response handles the translation of static 'interface' elements of the application. For example translations of static menu items in multiple languages based on the language setting made the user. I mean something different. What I mean is for example a database with news articles. For every article there is a version in each language supported by the website. Based on the language settings made by the user a localised copy of the article is shown. If a localised version of the article is not available than the version in the default site language is shown, for example English. Symfony uses a table structure like this: Table: news Fields: id, ... Table news_i18n Fields: id, news_id, language, title, content, ... News is the main table. News_i18n is the table where the different translated version of each article is saved. For each article there is one records in the i18n table. For example: Record 1 in table news: id: 1(Continue reading)
RSS Feed