Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Within the first afternoon I found 2 of the 3 needed solutions, and the 3rd came to me over the weekend!..."

Geography

Where in the world do Tek-Tips members come from?
walkerdigest (Programmer)
13 Jan 12 4:24
I want to code a website with two language (one of them is english) how can I manage that? thanks
MakeItSo (Programmer)
13 Jan 12 5:15
tons of possibilities.
What have you so far?

"We had to turn off that service to comply with the CDA Bill."
- The Bastard Operator From Hell

walkerdigest (Programmer)
13 Jan 12 5:52
I am starting from scratch. what would be the easiest way? I will have navigator, announcements, slade, text in the website  
MakeItSo (Programmer)
13 Jan 12 7:00
1.) what is the other language going to be? you need to know in order to use the correct encoding for both your content files and your script session, e.g. utf-8 / 65001

2.) you could have all your content stored in language subfolders as text or html snippets which are then dynamically loaded into your ASP framework depending on a combo box choice / flag click etc.

3.) what is a "slade"? I just checked my translation dictionary, it won't tell

4.) of course you can do it all by yourself but you might also consider using a web cms solution like typo3, contao, drupal or joomla

If you have a variable holding your language choice and name your subfolders holding the localised content in the same manner, you your output portion could look like this:

CODE

<%
set fso=Server.CreateObject("Scripting.FileSystemObject")
pfad=Server.MapPath(language) & "\" & "index.htm"
Set f = fso.GetFile(pfad)
set ts=f.OpenAsTextStream
Inhalt=ts.ReadAll
response.write Inhalt
%>
 

"We had to turn off that service to comply with the CDA Bill."
- The Bastard Operator From Hell

walkerdigest (Programmer)
13 Jan 12 10:29
1) encoding will be 8859-9

2)if I understand correctly  there will be /tr and /english subfolder. For example in /english subfolder it holds texts in English. what about menu titles? slide titles?

3) it should be slide.

4) I should have session variable or cookie to tell me that I have a language selection??
ChrisHirst (IS/IT--Management)
13 Jan 12 16:24
Read the part of the of the URL that tells you the language, show content from a database that is already translated.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close