[ Index ] |
|
Code source de Kupu-1.3.5 |
1 /***************************************************************************** 2 * 3 * Copyright (c) 2003-2005 Kupu Contributors. All rights reserved. 4 * 5 * This software is distributed under the terms of the Kupu 6 * License. See LICENSE.txt for license text. For a list of Kupu 7 * Contributors see CREDITS.txt. 8 * 9 *****************************************************************************/ 10 11 // $Id$ 12 13 function startKupu() { 14 // first let's load the message catalog 15 // if there's no global 'i18n_message_catalog' variable available, don't 16 // try to load any translations 17 if (window.i18n_message_catalog) { 18 var request = new XMLHttpRequest(); 19 // sync request, scary... 20 request.open('GET', 'kupu-pox.cgi', false); 21 request.send(''); 22 if (request.status != '200') { 23 alert('Error loading translation (status ' + status + 24 '), falling back to english'); 25 } else { 26 // load successful, continue 27 var dom = request.responseXML; 28 window.i18n_message_catalog.initialize(dom); 29 }; 30 }; 31 32 // initialize the editor, initKupu groks 1 arg, a reference to the iframe 33 var frame = getFromSelector('kupu-editor'); 34 var kupu = initKupu(frame); 35 36 // and now we can initialize... 37 kupu.initialize(); 38 39 return kupu; 40 };
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 15:30:41 2007 | par Balluche grâce à PHPXref 0.7 |