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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:19:38+00:00 2026-06-08T10:19:38+00:00

I need an idea on how to make a complete multilanguage website. I came

  • 0

I need an idea on how to make a complete multilanguage website. I came across many ways some are having an xml file to have template bits translated. This works if I only want the main template. But even the content will be translated.

For example I have a new entry in english, it should be translated to 4 other languages. Most attributes are common.

What i reached so far is by creating a table for the main website template with attributes:
lang, tag, value
In my template it will do a match on lang and tag.

What is the best way to translate the rest of the website (dynamic php pages using mysql)

  • 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-08T10:19:39+00:00Added an answer on June 8, 2026 at 10:19 am

    You need a table for languages as below:

    CREATE TABLE `language` (
     `langid` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
     `language` varchar(35) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
     PRIMARY KEY (`langid`)
    ) ENGINE=InnoDB
    

    Then for example you have a table for posts as below:

    CREATE TABLE `post` (
     `postid` int unsigned NOT NULL AUTO_INCREMENT,
     `langid` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
     `content` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
     `title` varchar(35) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
     PRIMARY KEY (`postid`)
    ) ENGINE=InnoDB
    

    In the post table you need a key like langid, which refers to the specific language in the language table. In you dashboard you will have something as below:
    enter image description here
    Each textbox refers to that specific language.
    You should have another table for site’s menus, and put langid foreign key in there. You should be well on your way.

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

Sidebar

Related Questions

I need some help to complete my idea about regexes. Introduction There was a
I need to archive data from a CRM system. Does anyone have any idea
Here is the idea I would like to develop. I need to have an
I have been reading that using HibernateDaoSupport isn't a good idea, so I need
I have a website that is already completed in ASP.NET. I need to add
Postgresql version 9.0 I need an idea for grouping postgresql users. i have 150+
I need to debug remote java code with IntelliJ Idea 10.5 (Ultimate Edition) When
basically need to change the value that - admin_url() returns any idea?
I need to convert a String to enum. I followed the idea in String
I need to implement a SOAP Web Service on Jboss Seam 2.1.0. The idea

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.