Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
Like Tree1Likes

Thread: Translation Script Documentation

  1. #11
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    I have not used Prestashop and this looks like a "how to integrate an external script into Prestashop" issue.

    Have you gone through the Translation Script Troubleshooting Tips?
    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.

  2. #12
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    I don't see any download links?

  3. #13
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    The download link for the translation script is always stored in a sticky in this forum.
    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.

  4. Thanked by:

    Aziz (8 October, 2009)

  5. #14
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts

  6. #15
    iluxa22 is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok great I fixed all the errors; however only the english translates how could i have the russian translate into in english for example in my header i have english text and the rest is russian it only grabs the english.... were is the setting so that it will translate russian into the languages not english.

    please help.

  7. #16
    iluxa22 is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    website url is VitaminCA

    Thank you Will for your help!

  8. #17
    iluxa22 is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    however this works great Google Translate

    Can i just have this code work? ....

  9. #18
    iluxa22 is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok now i put in the google example code.... and i guess the script has a diff encoding of russian than google itself... ? please help visite VitaminCA see whats happening

  10. #19
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    Quote Originally Posted by iluxa22 View Post
    Ok great I fixed all the errors; however only the english translates how could i have the russian translate into in english for example in my header i have english text and the rest is russian it only grabs the english.... were is the setting so that it will translate russian into the languages not english.
    Changing the script to use Russian as the source language should be fairly simple to accomplish.

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

    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=ru&langpair=ru%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=ru_$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.

  11. #20
    iluxa22 is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    doiwantadivorce.com

    translates only the index all the other pages just reload

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Translation Script v.2009-09-23
    By Will.Spencer in forum Translation Script Support
    Replies: 14
    Last Post: 2 January, 2011, 07:43 AM
  2. Translation Script Error 503
    By ytutun in forum Translation Script Support
    Replies: 4
    Last Post: 3 October, 2010, 22:07 PM
  3. Translation script not working
    By jagman in forum Translation Script Support
    Replies: 1
    Last Post: 5 September, 2009, 06:40 AM
  4. Translation Script Version 2.15
    By Will.Spencer in forum Translation Script Support
    Replies: 9
    Last Post: 15 April, 2009, 09:15 AM
  5. Need help with this Translation Script!
    By coder77 in forum Translation Script Support
    Replies: 1
    Last Post: 26 February, 2009, 20:05 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
  •