Results 1 to 2 of 2

Thread: Transliterate from English to French

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Transliterate from English to French

    Hi,

    i have two input box

    input box 1 : name is first

    input box 2 : name is second

    suppose if i enter "family" should be transliterated using google and the output in french should be displayed in the second input box.

    does anyone have any idea how to do this???

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Are you sure you don't mean translate? The pronunciation and characters are so similar. What you are asking is to spell English words phonetically in French, so as that a native French speaker would be using the correct English pronunciation.

    If you do mean transliterate you will need a Google Transliterate API Key, see:

    http://code.google.com/apis/language...etting_started

    if you don't already have one.

    The closest example on the Google Transliterate API pages to what you want appears to be:

    http://code.google.com/apis/language...ed.html#Single

    Once you insert you key into the call for

    Code:
        <script type="text/javascript" src="https://www.google.com/jsapi">
        </script>
    you should be able to simply change the 'hi' to 'fr' and then switch the 'fr' and the 'en'. This assumes they are supported.

    You can always use the:

    Code:
    google.elements.transliteration.LanguageCode.ENGLISH
    Code:
    google.elements.transliteration.LanguageCode.FRENCH
    But I think it still will depend upon whether these are supported or not. English apparently is. I'm not sure about French.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •