Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9098611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:24:11+00:00 2026-06-17T00:24:11+00:00

I have created a website in Symfony2 using website.com/_locale/xxxxxxxx routing to translate static data

  • 0

I have created a website in Symfony2 using website.com/_locale/xxxxxxxx routing to translate static data into two languages. This implementation works successfully but I wish to go further than that. I want to run this website for several other countries and a proper transformation is necessary in order to have those countries (with different languages) managed into one website.

Let’s say I have an entity for Shops. Each object created has some variables like Address, kind of business, equipment etc. This allows the user to create an entry in his own language but all entries will be mixed in the table. The table will have italian, english, spanish data and when someone enters the website from a different location, we unfortunately have to view the other language’s data.

I want the user to have the ability to create a new Shop in two languages: English and his own. The solutions I have thought of are:

  • I will create a new column in the same table for example “original_language” and every entry will be stored with a locale: en_US, es_SP etc. When the website wants to retrieve a row will search through ONE table will thousands of entries.
  • I will create another table which will be the mirror of the original one, in another language. This means that I will have a Shops table/entity, a Shops_it, a Shops_es, a Shops_br etc. Unfortunately this solution will need me to create several tables and relationships between other linked tables.
  • I will create another column in the same row for each field. The Shops.description, Shops.address etc. will also include Shops.description_en, Shops.description_br, Shops.address_en, Shops.address_br etc.

What is the safest, quickest and more professional way to do what I want?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:24:12+00:00Added an answer on June 17, 2026 at 12:24 am

    Either use the [DoctrineExtensions][1] lib to get your columns translated (it uses an EAV-alike structure for translations) or write 1-n relations for translated entities, having a “base” entity and a “translated” one. You can use the indexBy attribute of collections to make fetching and logic easier to handle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a website using vbulletin i have installed CMS and BLOG modules
I have created a website using modx evolution v1.0.2. The website that I have
I have created a facebook website open graph application for my website www.heyngine.com. The
I am new to Joomla. I have created website using Joomla 2.5. I have
I have created a website loading progress bar using Jquery UI Progress bar. This
I have created a website using asp.net and I have created some resource files
I have created a website ... and I have overlapped two images twice. I
I have created a drupal website on an address A ( gn.christophemazuyet.com ) and
I have created an website in Castle Monorails and the users that are using
I have created a website on my machine using rails and now I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.