Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - 2 language site
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

2 language site

 Post Reply Post Reply Page  12>
Author
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Topic: 2 language site
    Posted: 28 October 2003 at 2:24pm
Does someone has experience here with making a site in 2 languages? I don't mean vb or c# but choose a language on a site like English or Dutch for example. I'm thinking already a couple of days about it, but can't find a good solution.

Put 2 languages seperated in a database doesn't look a good way to do. And I also thought to use strings and look in a cookie wich language and on this way choose the correct string for get the data. Like engData for English and nlData for Dutch or something. Hmmm I really don't know

Some suggestions are welcome.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 3:13pm

You'll have to enter the data somehow, since you can't really make good dutch-english translations. Maybe a .ini file with a text string at every line? Or a database?

The thing I hate to do is to put all the information at one page, because it is very confusing (sometimes). So you can create a class, like Content.vb, and make a function wich puts the content in the page. If this sounds difficult, it really isn't that hard.

Then, in the Form_Load sub on your aspx page, just call the class, and it will fill out the page, based on data in the querystring (Default.aspx?lang=en) or (Default.aspx?en).

Gone..
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 3:14pm

I would make a language file (like on most webwiz apps) with simple translations like

Dim sorrytext

sorrytext="desole"

for french etc.

mart.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 3:16pm

Yup, that is done by making a class I guess, or a module, since I still don't understand the difference.. Problem is when you have a large website. Then that file gets pretty messed up.

Gone..
Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2003 at 1:56pm
yes, these things will be good for the menus and the 'sentences' on your site. Now one more thing, how I can put lots of text in 2 languages. I'm thinking to make a database with for example the colums: id, text_eng, text_nl. And with text_eng the translation of text_nl. When I do a query id=1&lang=text_nl it will show the Dutch text and when i do id=1&lang=text_eng it will show the text in English. Is this the way they do it? I'm just try to find a good solution for it...before I'll start to develop on it.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2003 at 2:23pm

Be sure to not directly load the lang into the query. Hackers like that kinda stuff. Use something like lang=1 and lang=2.

Gone..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2003 at 2:23pm
BTW Yup. that is the way.
Gone..
Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2003 at 2:35pm

Getting more clear now

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.