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 8813167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:46:39+00:00 2026-06-14T03:46:39+00:00

I’m new in PHP I’ve made a MVC framework after some tutorial and I

  • 0

I’m new in PHP I’ve made a MVC framework after some tutorial and I really learn a lot. I know with a built-in framework like Zend I’ve could done this easy I think. So what i want to do next is to build a multilingual site. For start will be only to languages like Romanian and English.

The problem that I’ve got is that i will have an option from witch users can add new pages to the site after a review of one of the admins, here the base language will be Romanian. So There will be a text at least of 200 words and there could be as many pages as database can keep. SO There should be something like an automatic translation, but this is not good enough thinking this will be a presentation site.

I have looked into tutorials and examples on this but id cannot fine some solution to fix my problem. My pages content will be generated from database. After some wrong solution I have thought to a solution to keep in the db only some id instead of a word/phrase and to that id to correspond some id’s from translation table. This is not a good option thinking that there will be no good for adaptation from one language to another.

Can you give me some solution for this? Or can you give me some good tutorials/ examples to map to my problem?

Thank you

  • 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-14T03:46:41+00:00Added an answer on June 14, 2026 at 3:46 am

    I would just show English content to people who use the site in English and Romanian content for those using it in Romanian. If I use the site in English and go to your profile I’ll see all of your articles even those in Romanian. But when I browse though latest, popular … I only see those in English.

    Database structure :

    Language table

    language_id | language_name | langauge_code
    -------------------------------------------
         1      |    English    |      en
         2      |     Român     |      ro
         3      |    Spanish    |      es
    

    Post table

    post_id | user_id | language_id | post_title | post_content
    ------------------------------------------------------------
       23   |    7    |      2      |     ...    |     ...
       24   |    5    |      1      |     ...    |     ...
    

    If you really want a translation for everything add a third table, then you would have original language, with options : also availible in Romanian, author : John Doe, translator : Jane Doe …

    Translation table

    trans_id | post_id | user_id | language_id | post_title | post_content
    ----------------------------------------------------------------------
        4    |    23   |    4    |      1      |     ...    |     ...
        5    |    23   |    5    |      3      |     ...    |     ...
    

    You can’t worry too much about translations, I would just translate static content (header, footer, navigation, buttons…), let users post in what ever language they want, if you have comments on your site they will be in lots of languages. Other sites don’t worry about it (facebook, twitter, …).

    You may also want to look into .po and .mo files with gettext, you can generate translation files which you can use with Poedit

    Hope this helps.

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to count the length of a string with PHP. The string
I know there's a lot of other questions out there that deal with this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,

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.