Pengguna:Endo999/GoogleTrans.js: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
new languages, including sundanese and javanese as well as Indonesian |
|||
Baris 43:
var SCLanguageDefaultTo = SCLanguageTo;
var SCLanguageDefaultFrom='id';
var SCGoogleTransPersistString = 'GoogleTrans';
Baris 110 ⟶ 99:
var SCbIsIE11 = false;
if(navigator.appVersion.match(/
{
var version1 = new Number(RegExp.$1);
Baris 267 ⟶ 256:
// list made 8/10/2011
// may have to remake list if Indian regional languages become supported.
var SCGoogleLanguageNames = [
'Afrikaans',
Baris 284 ⟶ 269:
'Catalan',
'Cebuano',
'Chinese (traditional)',
'Chinese (simplified)',
Baris 317 ⟶ 300:
'Javanese',
'Kannada',
'Khmer',
'Korean',
Baris 326 ⟶ 307:
'Lithuanian',
'Macedonian',
'Malay',
'Maltese',
'Marathi',
'Maori',
'Mongolian',
'Nepali',
'Norwegian',
Baris 346 ⟶ 321:
'Russian',
'Serbian',
'Slovak',
'Slovenian',
'Somali',
'Spanish',
'Swahili',
'Swedish',
'Tamil',
'Telugu',
Baris 366 ⟶ 333:
'Ukrainian',
'Urdu',
'Vietnamese',
'Welsh',
Baris 374 ⟶ 339:
'Zulu'
];
var SCGoogleLanguageCodes = [
'af',
Baris 390 ⟶ 352:
'ca',
'ceb',
'zh-TW',
'zh-CN',
Baris 421 ⟶ 382:
'ja',
'jv',
'kn',
'km',
'ko',
Baris 431 ⟶ 390:
'lt',
'mk',
'ms',
'mt',
'mr',
'mi',
'mn',
'ne',
'no',
Baris 453 ⟶ 404:
'ru',
'sr',
'sk',
'sl',
'so',
'es',
'sw',
'sv',
'ta',
'te',
Baris 473 ⟶ 416:
'uk',
'ur',
'vi',
'cy',
Baris 481 ⟶ 422:
'zu'
];
var SCnewoptions =
'<option value="af">Afrikaans</option>'+
Baris 496 ⟶ 435:
'<option value="ca">Catalan</option>'+
'<option value="ceb">Cebuano</option>'+
'<option value="zh-TW">Chinese (traditional)</option>'+
'<option value="zh-CN">Chinese (simplified)</option>'+
Baris 528 ⟶ 466:
'<option value="jv">Javanese</option>'+
'<option value="kn">Kannada</option>' +
'<option value="km">Khmer</option>' +
'<option value="ko">Korean</option>' +
Baris 536 ⟶ 473:
'<option value="lt">Lithuanian</option>'+
'<option value="mk">Macedonian</option>'+
'<option value="ms">Malay</option>'+
'<option value="mt">Maltese</option>'+
'<option value="mi">Maori</option>'+
'<option value="mr">Marathi</option>'+
'<option value="mn">Mongolian</option>'+
'<option value="ne">Nepali</option>'+
'<option value="no">Norwegian</option>'+
Baris 553 ⟶ 487:
'<option value="ru">Russian</option>'+
'<option value="sr">Serbian</option>'+
'<option value="sk">Slovak</option>'+
'<option value="sl">Slovenian</option>'+
'<option value="es">Spanish</option>'+
'<option value="so">Somali</option>'+
'<option value="sw">Swahili</option>'+
'<option value="sv">Swedish</option>'+
'<option value="ta">Tamil</option>' +
'<option value="te">Telugu</option>' +
Baris 569 ⟶ 499:
'<option value="uk">Ukrainian</option>'+
'<option value="ur">Urdu</option>'+
'<option value="vi">Vietnamese</option>'+
'<option value="cy">Welsh</option>'+
Baris 577 ⟶ 506:
;
var SCTranslateableLanguages = [
'af',
Baris 659 ⟶ 587:
'so',
'yo',
'zu'
];
function SCMakeGoogleLanguages()
Baris 1.065 ⟶ 909:
}
SCbIsIE11 = false;
if(navigator.appVersion.match(/
{
var version1 = new Number(RegExp.$1);
Baris 3.533 ⟶ 3.377:
}
}
var SCTranslatedFromLanguage="";
function SCTranslatedText(response) {
// if (result.translation||result.error)
Baris 3.631 ⟶ 3.411:
var pretranslatedword = "";
var numofwords = SClinkword.split(/\s/).length;
if(numofwords == 1)
pretranslatedword = SClinkword + ": ";
|