Bilingual website and database

Last post 05-10-2008 11:57 PM by antica. 10 replies.

Sort Posts:

  • Bilingual website and database

    05-04-2008, 3:57 AM
    • Loading...
    • antica
    • Joined on 09-09-2007, 6:45 AM
    • Posts 16

    Hi all

    I'm looking for a way to create a bilingual website from scratch, what I'm aiming to do is an english and arabic website but my problem is that the database doesnt save arabic data, intead after i enter the data i get (?????) in it's place.

    so i'm looking for two things, i code or tutorial that will help me:

    1) translate the english webpages into arabic

    2) allow the database to read arabic data as well as allow me to use it in grideviews and detailview

    on a final note: This is a graduation project and we are required to use VB.NET language, as far as my seach go i've only found C#  so your help will be much appreciated

    Filed under: , ,
  • Re: Bilingual website and database

    05-04-2008, 5:35 AM

     Hello,

    What databsae type you are using?

    If mssql, then set the fields types to

    nvarchar instead of varchar

     nchar instead of char

    ntext instead of text

     

    Does that make sense? 

  • Re: Bilingual website and database

    05-04-2008, 6:39 AM
    • Loading...
    • antica
    • Joined on 09-09-2007, 6:45 AM
    • Posts 16

    Hi thanks for ur effort

    our college requirements are to use mdf databases ... does the way you told me apply to this as well?

  • Re: Bilingual website and database

    05-04-2008, 8:55 AM

    Yes, this is MSSQL database.

    If you need further help let me know.

     

    Regards 

  • Re: Bilingual website and database

    05-07-2008, 12:27 AM
    • Loading...
    • antica
    • Joined on 09-09-2007, 6:45 AM
    • Posts 16

    thanks is there a way for me to do it on a mdf  database?

     also i want some way i can translate my info to arabic automatically in the page

  • Re: Bilingual website and database

    05-07-2008, 10:57 PM

    mdf = MSSQL :)

    For the translation, there is no direct way for that unless you find a webservice or an API for that from a third party vendor like google. I would advice you to save your data in 2 languages.

     

    Regards 

  • Re: Bilingual website and database

    05-07-2008, 11:32 PM
    • Loading...
    • antica
    • Joined on 09-09-2007, 6:45 AM
    • Posts 16

    oh really? lol didnt know that

    okay what if i wanted to input arabic data into the database from a forum or when i want to edit the data from gridviews, i tried it and it gives me (????) in the database then

    sorry about all the Qs and i'm really desperate

  • Re: Bilingual website and database

    05-07-2008, 11:34 PM

    What are the data fields types you are having the table?

  • Re: Bilingual website and database

    05-08-2008, 3:01 AM
    • Loading...
    • antica
    • Joined on 09-09-2007, 6:45 AM
    • Posts 16

    well most of them are varchar

  • Re: Bilingual website and database

    05-08-2008, 4:14 AM

    As i said in the first reply, you have to use the unicode datatypes

    Convert varchar to nvarchar .... and the other fields

     

    Regards 

  • Re: Bilingual website and database

    05-10-2008, 11:57 PM
    • Loading...
    • antica
    • Joined on 09-09-2007, 6:45 AM
    • Posts 16

    thanks i'll try that Big Smile

Page 1 of 1 (11 items)