Add support for french
This commit is contained in:
parent
a8c61b2c36
commit
138768a46d
4 changed files with 152 additions and 122 deletions
3
web.lua
3
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_ru = file.read(path.join(ROOT, "assets", "index.ru.html"))
|
||||||
local index_pt = file.read(path.join(ROOT, "assets", "index.pt.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_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"))
|
local index_en = file.read(path.join(ROOT, "assets", "index.html"))
|
||||||
function FormHandler:get()
|
function FormHandler:get()
|
||||||
local lang = self.request.headers:get("Accept-Language")
|
local lang = self.request.headers:get("Accept-Language")
|
||||||
|
@ -271,6 +272,8 @@ function FormHandler:get()
|
||||||
self:write(index_pt)
|
self:write(index_pt)
|
||||||
elseif langs[1] == "es" or langs[1] == "es-ES" then
|
elseif langs[1] == "es" or langs[1] == "es-ES" then
|
||||||
self:write(index_es)
|
self:write(index_es)
|
||||||
|
elseif langs[1] == "fr" then
|
||||||
|
self:write(index_fr)
|
||||||
else
|
else
|
||||||
self:write(index_en)
|
self:write(index_en)
|
||||||
end
|
end
|
||||||
|
|
23
webgen/locales/fr.yml
Normal file
23
webgen/locales/fr.yml
Normal file
|
@ -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."
|
|
@ -37,6 +37,10 @@
|
||||||
<a href="index.es.html">
|
<a href="index.es.html">
|
||||||
Español
|
Español
|
||||||
</a>
|
</a>
|
||||||
|
/
|
||||||
|
<a href="index.fr.html">
|
||||||
|
Français
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<p><%= t[:description] %></p>
|
<p><%= t[:description] %></p>
|
||||||
<p class="margin1 link-box">
|
<p class="margin1 link-box">
|
||||||
|
|
Loading…
Reference in a new issue