This topic is locked

building a multilanguage web site

10/12/2015 11:26:43 AM
ASPRunner.NET General questions
C
ccvvccc author

Here is the question.
I would like to create a page with multiple languages.

This is my db Table :

Page_Code nvarchar(50)

Page_Language nvarchar(10)

Page_Content ntext
An example entry
PKID PageName Language Page_Content

1 About English this is a simple "about text"

2 About Deutsch Dies ist eine einfache "über Text"

3 About French ceci est un simple "sur le texte"
What is the best way to do it in asprunner.net?
For example for "about page"

I want to edit it in one page. I would like to fill Language fields in one edit page .

Languages are dynamic and coming from another table.
I hope I was clear. It seems it is like Master-Child relationship. But I want to make it mandotary for child entries.

Sergey Kornilov admin 10/13/2015
C
ccvvccc author 10/14/2015

Yes,

There are two approaches on the help link.

  1. To store data for each language in a separate table and redirect users to the page, depending on the selected language.
  2. To store data for all languages ​​in one table by adding new field for storing language.
    But it seems I need third one.
    I would like to store data for each language in one table by adding new row.
    So when I try to edit "About Page", I should be able to edit in different languages coming from Languages Table. Ok I can do it with Master-Child relation.
    But What I need is ; whenever I try to edit "About Page" , I must see those Languages.
    For example. I have three languages in Languages table. English French Deutsch

    When I try to edit "About Page", It should show me three textbox. One for each language. And it should be mandotary. And when I save, 3 rows should be saved in table.
    AboutPage English About

    AboutPage French Sur

    AboutPage Deutsch Über
    I hope everbody understands me.
    Thanks thanks thanks.