...

View Full Version : developing site for different languages



ASAAKI
02-27-2003, 03:12 AM
I really hope someone can help me with this.
I really don't know much (read: I hardly know an atom) about development with language-support.
I'm trying to develop a site with 2 very different languages but I'm stumped as to how to go about it. This is not one of those "Choose your language" sites, rather it's got to have different languages on the same page- Arabic and English. To simplify the site's function let's just say it's going to be like an Arabic-to-English dictionary. So there will have to be tables that display English in one column and Arabic in the other.
I'm ramming my head against these main problems:

1. How can I code Arabic text (text, not graphical typing as I've noticed so many places) in HTML in the first place?:confused: I've searched like anything but there's hardly a clear solution. After lots of research (meddling with all sorts of confusing stuff about unicode and fonts and ascii stuff) what I think is the most practical solution is to force users to download a certain arabic font before being able to view the site. Would this really be the best approach?

2. How can I keep the page displaying both languages correctly? (English is a left-to-right language but Arabic is right-to-left).

3. I'm using a mysql db with php for the data (eg. Arabic word, and corresponding English meanings). How can you store different languages in mysql? Will the characters go as binary or something?

These problems aren't giving way, but my empty head is. :(

meow
02-27-2003, 03:28 AM
1. Unicode?
http://www.alanwood.net/unicode/index.html

2. Both HTML and CSS have methods to change the text direction.
http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir

http://www.w3.org/TR/REC-CSS2/visuren.html#direction

ASAAKI
02-27-2003, 01:17 PM
thanks meow i'm checking out the links they look extremely helpful.
any suggestions about languages in the db?

meow
02-27-2003, 03:32 PM
Not form me. I'm scared of data bases. :eek:

Just thought I would post this URL. This sites does what you want to do I think.
http://www.issho.org/

oracleguy
02-27-2003, 05:18 PM
Regarding the mysql database, I recommend you look in the mysql manual. Perhaps there is something about multiple languages. I'd assume people use it for more than just english text.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum