pragmaMx Support Forum

pragmaMx => Coder und Bastlerecke => Thema gestartet von: algebre am 12 Dezember 2010, 12:52:39

Titel: Translates your site to more than 100 languages
Beitrag von: algebre am 12 Dezember 2010, 12:52:39
Hi
this is a block to translate your site using jquery and jquery translate plugin

what is the difference between this plugin and the classical method   (http://www.google.fr/search?hl=de&safe=off&q=add+google+translate+to+your+site&aq=o&aqi=&aql=&oq=&gs_rfai=)


Installation:
-- choose a version of jquery-translate from http://code.google.com/p/jquery-translat/downloads/list i.e. jquery.translate-1.4.7-debug-all.js rename to "jquery.translate-1.4.7.js"put it in includes/javascript/jquery/

-- if you use pmx v0.1.12 the block work as is
if pmx  v < 0.1.12 : replace this line pmxHeader::add_jquery("jquery.translate-1.4.7.js");
by:
<?php //ignore this line
pmxHeader::add_script("includes/javascript/jquery/jquery.min.js");
pmxHeader::add_script("includes/javascript/jquery/jquery.translate-1.4.7.js");