Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
make website in german
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cloudymegz  
View profile  
 More options Apr 23 2006, 9:02 pm
From: "cloudymegz" <meghaka...@gmail.com>
Date: Sun, 23 Apr 2006 18:02:01 -0700
Local: Sun, Apr 23 2006 9:02 pm
Subject: make website in german
hi,

I am making a multilingual website in php.

I need to make it in german and english. English i have no problem but
how can i make the pages in german. I have all the content translated
in german but what change in the php and html code do i have to do to
make the content display in german.

pls help me. its really urgent

Thankssss

Cloudymegz


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "multiweb make website in german" by Paul Novitski
Paul Novitski  
View profile  
 More options Apr 24 2006, 1:35 am
From: Paul Novitski <p...@novitskisoftware.com>
Date: Sun, 23 Apr 2006 22:35:48 -0700
Local: Mon, Apr 24 2006 1:35 am
Subject: Re: multiweb make website in german
At 06:02 PM 4/23/2006, cloudymegz wrote:

>I am making a multilingual website in php.

>I need to make it in german and english. English i have no problem but
>how can i make the pages in german. I have all the content translated
>in german but what change in the php and html code do i have to do to
>make the content display in german.

My approach is, first of all, to separate the HTML structure from the
text content, so I can fill an empty HTML template with variable text
according to the user's language choice.

I keep all the text in a MySQL table with one of two record structures:

1)
         `EN` = text in English
         `DE` = text in German

With this record structure, you read the records for the current page
and display either the EN field or the DE field according to the
user's current language choice.

         SELECT {$sLang} AS content FROM `tableName` WHERE
`pageName`="{$sCurrentPage}" ...

2)
         `content` = text
         `language` = EN or DE

With this second record structure, you select records for the current
page AND for the current language choice, then display the `content` field.

         SELECT `content` FROM `tableName` WHERE
`pageName`="{$sCurrentPage}" AND `language`="{$sLang}" ...

Here's a bilingual English/French website I did this way:
http://partcon.ca/

Regards,
Paul


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google