mirror of
https://github.com/soulaklabs/bitoduc.fr.git
synced 2025-12-08 17:13:23 +00:00
Accentuation d'autres variables oubliées
This commit is contained in:
@@ -6,14 +6,14 @@ $(function() {
|
||||
_gaq.pousser(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.creerElement('script');
|
||||
var ga = document.créerÉlément('script');
|
||||
ga.type = 'text/javascript';
|
||||
ga.async = true;
|
||||
ga.src =
|
||||
('https:' == document.localisation.protocole ?
|
||||
'https://ssl' : 'http://www')
|
||||
+ '.google-analytics.com/ga.js';
|
||||
var s = document.recupererElementParNomDEtiquette('script')[0];
|
||||
var s = document.récupérerÉlémentParNomDÉtiquette('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
});
|
||||
|
||||
@@ -71,7 +71,7 @@ function construireListe(traductions) {
|
||||
var l = '';
|
||||
for (var i=0; i < traductions.longueur(); i++) {
|
||||
var mot = traductions[i];
|
||||
var c = mot[langue].caractereA(0).enMajuscules().sansAccents();
|
||||
var c = mot[langue].caractèreÀ(0).enMajuscules().sansAccents();
|
||||
|
||||
|
||||
if (c != l) {
|
||||
@@ -106,7 +106,7 @@ function construireListe(traductions) {
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$.recupererJSON( "traductions.json", function( traductions ) {
|
||||
$.récupérerJSON( "traductions.json", function( traductions ) {
|
||||
construireListe(traductions);
|
||||
mettreÀJourLienInversion();
|
||||
$( "#lienInversion" ).clic( function() {inverser(traductions);} );
|
||||
|
||||
12
js/prototypes-fr.js
vendored
12
js/prototypes-fr.js
vendored
@@ -1,13 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var Objet = Object
|
||||
Objet.creer = Objet.create
|
||||
Objet.créer = Objet.create
|
||||
|
||||
var Chaine = String
|
||||
Chaine.prototype.enMinuscules = Chaine.prototype.toLowerCase
|
||||
Chaine.prototype.enMajuscules = Chaine.prototype.toUpperCase
|
||||
Chaine.prototype.remplacer = Chaine.prototype.replace
|
||||
Chaine.prototype.caractereA = Chaine.prototype.charAt
|
||||
Chaine.prototype.caractèreÀ = Chaine.prototype.charAt
|
||||
Chaine.prototype.tranche = Chaine.prototype.slice
|
||||
Chaine.prototype.sansAccents = function () {
|
||||
// Faute d'une bibliotheque unidecode, nous nous limitons aux lettres
|
||||
@@ -40,7 +40,7 @@ Chaine.prototype.sansAccents = function () {
|
||||
.remplacer("Ü", "U");
|
||||
}
|
||||
Chaine.prototype.majusculer = function() {
|
||||
return this.caractereA(0).enMajuscules() + this.tranche(1);
|
||||
return this.caractèreÀ(0).enMajuscules() + this.tranche(1);
|
||||
}
|
||||
|
||||
var Tableau = Array
|
||||
@@ -48,8 +48,8 @@ Tableau.prototype.trier = Tableau.prototype.sort
|
||||
Tableau.prototype.longueur = function () { return this.length; }
|
||||
Tableau.prototype.pousser = Tableau.prototype.push
|
||||
|
||||
document.creerElement = document.createElement
|
||||
document.recupererElementParNomDEtiquette = document.getElementsByTagName;
|
||||
document.créerÉlément = document.createElement
|
||||
document.récupérerÉlémentParNomDÉtiquette = document.getElementsByTagName;
|
||||
document.localisation = document.location;
|
||||
document.localisation.protocole = document.localisation.protocole;
|
||||
|
||||
@@ -59,4 +59,4 @@ jQuery.fn.extend({
|
||||
dernier: function () { return this.last(); },
|
||||
ajouter: function (x) { return this.append(x); }
|
||||
});
|
||||
$.recupererJSON = $.getJSON
|
||||
$.récupérerJSON = $.getJSON
|
||||
|
||||
Reference in New Issue
Block a user