Diferència entre revisions de la pàgina «MediaWiki:Common.js/traductor.js»
De Català a Cort
| Línia 4: | Línia 4: | ||
return; | return; | ||
h = 'Direcció de traducció: <input type="radio" name="direccio" id="spa-cat" value="spa-cat"><input type="radio" name="direccio" id="cat-spa" value="cat-spa">'; | h = 'Direcció de traducció: <input type="radio" name="direccio" id="spa-cat" value="spa-cat"><input type="radio" name="direccio" id="cat-spa" value="cat-spa">'; | ||
| − | / | + | h += '<label for="spa-cat">Castellà ➔ català</label><br>'; |
| + | h += '<label for="cat-spa">Castalà ➔ castellà</label><br>'; | ||
jQuery("#traductor").html(h); | jQuery("#traductor").html(h); | ||
}()); | }()); | ||
Revisió del 11:00, 22 set 2022
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
if (jQuery("#traductor").length == 0)
return;
h = 'Direcció de traducció: <input type="radio" name="direccio" id="spa-cat" value="spa-cat"><input type="radio" name="direccio" id="cat-spa" value="cat-spa">';
h += '<label for="spa-cat">Castellà ➔ català</label><br>';
h += '<label for="cat-spa">Castalà ➔ castellà</label><br>';
jQuery("#traductor").html(h);
}());