Customizing SMF > Modifications and Packages

Google Translate for SMF 2.0

(1/16) > >>

Doburpally:
Link to Mod

Google Translate for SMF 2.0
Adds a language drop down to your forum powered by Google Translate.  It works for guests and logged users.

Compatibility:

* SMF 1.1.10 - 1.1.16
* SMF 2.0 RC4 & 2.0 RC5
* SMF 2.0
* SMF 2.0.x
Version History:

* v1.3 (18 April 2012)

* (SMF 1.1.xx & SMF 2.0.x) Added table to predefine space on page, this prevents the annoying page drop when google translate appears in its position. Thanks to Simtronx
* v1.2 (24 March 2012)

* Added Auto Detect forum language.
* 27 March 2012 Added support for SMF 1.1.10 - 1.1.16 Thanks to samurai-lupin
* v1.1 (16 January 2012)

* Added location selection (left | center | right)
* Added style selection (Horizontal | Drop down only | Vertical)
* v1.0 (September 2011)

* Initial Release
* For SMF 2.0 only

krash661:
I'm having problems installing it.



Installations actions for "Google Translate for SMF 2.0"
Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./Themes/default/index.template.php    Test successful

Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
      insidious
*       Execute Modification    ./Themes/Insidius2/index.template.php    Test failed
      1.    Add Before    ./Themes/Insidius2/index.template.php    Test failed

Bugo:
@Reaper.CSF., you can replace this block

--- Code: ---<script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL
  }, 'google_translate_element');
}
</script>

--- End code ---
with:

--- Code: ---<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: "' . $txt['lang_dictionary'] . '",
    layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL
  }, \'google_translate_element\');
}
</script>

--- End code ---

Mick.:
Nice to see someone took my tut and made it into a mod.

Doburpally:

--- Quote from: bluedevil on October 28, 2011, 03:36:20 PM ---Nice to see someone took my tut and made it into a mod.

--- End quote ---

Actually my source was from Google translate site.

You have a tut? where? ???

Navigation

[0] Message Index

[#] Next page

Go to full version