Forums / Cotonti / General / Google Translate API for Cotonti.com

Amro
#8104 2009-02-16 07:07
Make all the styles in the css, then edit right in JS files. The reason your page:

<div class="codetitle">Kod:</div><div class="code"style="margin:0px; padding:6px; border:1px inset; width:660px; max-height:300px; overflow:auto">MYSQL = 1 / / Buraya 1 değerini verdiğiniz zaman mysql&#039;ı aktif hale getirmiş oluyorsunuz.<br />
MySqlHost = localhost / / MySQL&#039;ın bulunduğu adres.<br />
MySqlUser = root / / MySQL kullanıcınız<br />
MySqlPassword = password / / Var ise MySQL şifreniz.<br />
MySqlDatabase = sphere / / Son olarak bu da MySQL üzerinde kullanacağınız veritabanı adı olarak ayarlanmalıdır.</div><br />
A need to make it so :
<div class="codetitle">Kod:</div><div class="code">MYSQL = 1 / / Buraya 1 değerini verdiğiniz zaman mysql&#039;ı aktif hale getirmiş oluyorsunuz.<br />
MySqlHost = localhost / / MySQL&#039;ın bulunduğu adres.<br />
MySqlUser = root / / MySQL kullanıcınız<br />
MySqlPassword = password / / Var ise MySQL şifreniz.<br />
MySqlDatabase = sphere / / Son olarak bu da MySQL üzerinde kullanacağınız veritabanı adı olarak ayarlanmalıdır.</div><br />
To work properly you need all the styles were made in your CSS file.
Then see the settings in the JS file translate.forumposts.js and translate.pages.js and edit them to fit your needs.
var text_block_id = ".fmsg";
var translate_block_id = ".translate_fmsg";
var translate_block_insert = "<div class=\"translate_fmsg\" style=\"width:550px; overflow-x:auto; overflow-y:visible; margin-bottom:8px;\"\"></div>";
var def_lang_chekbox = "#deflang";
var langselectbox = "#lang";
var cfg_lock_tags = true;
var clone_mod = ""; //"notext" OR "" - with clone resource text 
var lock_tag = new Array("div.highlight", "pre.code", "div.spoiler");
var max_words_send = 480;
In translating tables, as well as to the type of "HTML" pages can be bugs.