SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    web Page in International Language

    How do I create a web page in International languages like Hindi, Chinese, Arabian..,
    What tools I need? Please explain practically.

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The same way you would create one in English. Declare the language in the HTML element (like so - this example uses XHTML):
    HTML Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    But use the two character language code for the language you want to use.

    As for organizing the site, most sites will use either a subdomain (like en.wikipedia.com for English or pt.wikipedia.com for Portuguese) or a subdirectory (like mywebsite.com/en/ for English or mywebsite.com/pt/ for Portuguese).

    You can get a list of the language codes here:
    http://www.cardiff.ac.uk/accessibili...uagecodes.html

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The most important aspect of multi-lingual pages is the character encoding (see the HTML FAQ for information, if you're unfamiliar with encodings).

    If you need to display characters in Hindi, Chinese, Arabian (and possibly Western languages as well) on the same page, you should most likely use UTF-8 for your encoding.

    You must have an editor that allows you to save in UTF-8 (without a BOM) and you must be able to configure your web server to send an charset=utf-8 attribute in the Content-Type HTTP header. You may have to contact your hosting company for the latter.
    Birnam wood is come to Dunsinane

  4. #4
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AutisticCuckoo
    The most important aspect of multi-lingual pages is the character encoding (see the HTML FAQ for information, if you're unfamiliar with encodings).

    If you need to display characters in Hindi, Chinese, Arabian (and possibly Western languages as well) on the same page, you should most likely use UTF-8 for your encoding.

    You must have an editor that allows you to save in UTF-8 (without a BOM) and you must be able to configure your web server to send an charset=utf-8 attribute in the Content-Type HTTP header. You may have to contact your hosting company for the latter.
    Well, How do I insert character in that editor, do I need font and other keyboard?

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How you write the characters depends entirely on which editor you use.

    You must choose a font that contains glyphs for all the characters you wish to display, of course. 'Arial Unicode' that comes with some versions of Windows, for instance, contains Arabic and Hebrew characters, Japanese and Chinese scripts, Korean, Thai, several Indian scripts, etc. (IIRC)
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •