diff --git a/assets/index.fr.html b/assets/index.fr.html
index 8ab8f65..39fb549 100644
--- a/assets/index.fr.html
+++ b/assets/index.fr.html
@@ -18,133 +18,133 @@
waifu2x
Outil d'agrandissement de dessins de style anime, employant des réseaux de neurones convolutionnels. Fonctionne aussi sur des photos.
-
- Voir une démonstration
-
- |
-
- Aller sur GitHub
-
+
+ Voir une démonstration
+
+ |
+
+ Aller sur GitHub
+
diff --git a/web.lua b/web.lua
index 96aa4b9..86e985c 100644
--- a/web.lua
+++ b/web.lua
@@ -255,6 +255,7 @@ local index_ja = file.read(path.join(ROOT, "assets", "index.ja.html"))
local index_ru = file.read(path.join(ROOT, "assets", "index.ru.html"))
local index_pt = file.read(path.join(ROOT, "assets", "index.pt.html"))
local index_es = file.read(path.join(ROOT, "assets", "index.es.html"))
+local index_fr = file.read(path.join(ROOT, "assets", "index.fr.html"))
local index_en = file.read(path.join(ROOT, "assets", "index.html"))
function FormHandler:get()
local lang = self.request.headers:get("Accept-Language")
@@ -271,6 +272,8 @@ function FormHandler:get()
self:write(index_pt)
elseif langs[1] == "es" or langs[1] == "es-ES" then
self:write(index_es)
+ elseif langs[1] == "fr" then
+ self:write(index_fr)
else
self:write(index_en)
end
diff --git a/webgen/locales/fr.yml b/webgen/locales/fr.yml
new file mode 100644
index 0000000..ba9a6cf
--- /dev/null
+++ b/webgen/locales/fr.yml
@@ -0,0 +1,23 @@
+---
+description: "Outil d'agrandissement de dessins de style anime, employant des réseaux de neurones convolutionnels. Fonctionne aussi sur des photos."
+show_demonstration: "Voir une démonstration"
+go_to_github: "Aller sur GitHub"
+image_choosing: "Sélection de l'image"
+type_url: "Entrer un URL"
+choose_file: "Ou utiliser un fichier"
+file_limits: "Limites : Taille : 3MB, Réduction du bruit : 2560x2560px, Agrandissement : 1280x1280px."
+style: "Style"
+artwork: "Dessin"
+photo: "Photo"
+noise_reduction: "Réduction du bruit"
+expect_jpeg: "des artefacts JPEG risquent d'apparaître"
+nr_none: "Aucune"
+nr_medium: "Moyenne"
+nr_high: "Haute"
+nr_hint: "Il est nécessaire d'utiliser la réduction du bruit si l'image possède du bruit. Autrement, cela risque de causer l'effet opposé."
+upscaling: "Agrandissement"
+up_none: "Aucun"
+button_convert: "Convertir"
+button_download: "Télécharger"
+hints:
+ - "Si vous utilisez Firefox, utilisez Ctrl+S pour enregistrer l'image. L'option \"Enregistrer l'image\" ne fonctionne pas."
diff --git a/webgen/templates/index.html.erb b/webgen/templates/index.html.erb
index dedff34..3cf479b 100644
--- a/webgen/templates/index.html.erb
+++ b/webgen/templates/index.html.erb
@@ -37,6 +37,10 @@
Español
+ /
+
+ Français
+