Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Members in Chat:
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Alejandro Weber is offline Unknown Net Builder
    Join Date
    Mar 2009
    Location
    Mendoza
    Posts
    5
    $NetBucks
    100
    Thanked 0 Times in 0 Posts

    Translating From Languages Other Than English

    Is this version still restricted only to english in the original site? My site is in spanish language and I would like to translate it to the other major languajes using your script.
    Thanks for your time!

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is online now Skipper Recent Blog: Daily News Montenegro
    Join Date
    Dec 2008
    Location
    Singapore
    Posts
    6,356
    $NetBucks
    21,113
    Blog Entries
    1
    Thanked 2,295 Times in 1,244 Posts
    Quote Originally Posted by Alejandro Weber View Post
    Is this version still restricted only to english in the original site? My site is in spanish language and I would like to translate it to the other major languajes using your script.
    Changing the script to use Spanish as the source language should be fairly simple to accomplish.

    You would have to edit translate/translate.php by replacing "en" with "es":

    Before
    Code:
    //Define translation engines here
    $engines = array(
            'g'     => array(               'trans_url'             => 'http://translate.google.com/translate_c?hl=en&langpair=en%7C$lang&u=$url',
                                                    'timeout'               => 180,
                                                    'max_redir'             => 3,
                                                    'check_func'    => 'GoogleCheck',       //This function should determine if the translation was successful
                                                    'fixup_func'    => 'GoogleFixup'
                                            ),
    //TODO: Yahoo translation requires an IP hostname, should code a workaround for this
            'y'     => array(               'trans_url'             => 'http://72.30.186.56/babelfish/translate_url_content?lp=en_$lang&trurl=$url',
                                                    'timeout'               => 180,
                                                    'max_redir'             => 3,
                                                    'check_func'    => 'YahooCheck',
                                                    'fixup_func'    => 'YahooFixup'
                                            )
    After
    Code:
    //Define translation engines here
    $engines = array(
            'g'     => array(               'trans_url'             => 'http://translate.google.com/translate_c?hl=fr&langpair=fr%7C$lang&u=$url',
                                                    'timeout'               => 180,
                                                    'max_redir'             => 3,
                                                    'check_func'    => 'GoogleCheck',       //This function should determine if the translation was successful
                                                    'fixup_func'    => 'GoogleFixup'
                                            ),
    //TODO: Yahoo translation requires an IP hostname, should code a workaround for this
            'y'     => array(               'trans_url'             => 'http://72.30.186.56/babelfish/translate_url_content?lp=fr_$lang&trurl=$url',
                                                    'timeout'               => 180,
                                                    'max_redir'             => 3,
                                                    'check_func'    => 'YahooCheck',
                                                    'fixup_func'    => 'YahooFixup'
                                            )
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.


 

Similar Threads

  1. How to stop translating...
    By CyberWizard in forum Translation Script Support
    Replies: 2
    Last Post: 5 August, 2010, 07:54 AM
  2. Only Home is translating
    By webdevtech in forum Translation Script Support
    Replies: 1
    Last Post: 22 September, 2009, 17:43 PM
  3. Indian English vs. American English
    By Will.Spencer in forum Building
    Replies: 12
    Last Post: 21 July, 2009, 20:34 PM
  4. [WTB] non-english and english adult sites
    By dinet88 in forum Sites
    Replies: 0
    Last Post: 6 July, 2009, 12:29 PM
  5. Seems to be working... but not translating anything
    By quikned in forum Translation Script Support
    Replies: 5
    Last Post: 26 March, 2009, 21:28 PM

Tags for this Thread

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