Diferència entre revisions de la pàgina «MediaWiki:Common.js/traductor.js»
De Català a Cort
m |
|||
| Línia 5: | Línia 5: | ||
h = 'Direcció de traducció:'; | h = 'Direcció de traducció:'; | ||
h += '<input type="radio" name="direccio" id="spa-cat" value="spa-cat">'; | h += '<input type="radio" name="direccio" id="spa-cat" value="spa-cat">'; | ||
| − | h += '<label for="spa-cat">Castellà ➔ català</label | + | h += '<label for="spa-cat">Castellà ➔ català</label>'; |
h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa">'; | h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa">'; | ||
| − | h += '<label for="cat-spa">Català ➔ castellà</label | + | h += '<label for="cat-spa">Català ➔ castellà</label>'; |
jQuery("#traductor").html(h); | jQuery("#traductor").html(h); | ||
}()); | }()); | ||
Revisió del 11:06, 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ó:';
h += '<input type="radio" name="direccio" id="spa-cat" value="spa-cat">';
h += '<label for="spa-cat">Castellà ➔ català</label>';
h += '<input type="radio" name="direccio" id="cat-spa" value="cat-spa">';
h += '<label for="cat-spa">Català ➔ castellà</label>';
jQuery("#traductor").html(h);
}());