Add support for french
This commit is contained in:
parent
a8c61b2c36
commit
138768a46d
4 changed files with 152 additions and 122 deletions
|
@ -54,11 +54,11 @@
|
|||
</p>
|
||||
<form action="/api" method="POST" enctype="multipart/form-data" target="_blank">
|
||||
<div class="option-box first">
|
||||
<div class="option-left">Sélection de l'image :</div>
|
||||
<div class="option-left">Sélection de l'image:</div>
|
||||
<div class="option-right">
|
||||
<input type="text" id="url" name="url" placeholder="Entrer un URL">
|
||||
<div class="option-right-small">
|
||||
Ou utiliser un fichier :
|
||||
Ou utiliser un fichier:
|
||||
<input type="file" id="file" name="file"></div>
|
||||
</div>
|
||||
<div class="option-hint">
|
||||
|
@ -67,7 +67,7 @@
|
|||
</div>
|
||||
<div class="option-box">
|
||||
<div class="option-left">
|
||||
Style :
|
||||
Style:
|
||||
</div>
|
||||
<div class="option-right">
|
||||
<label><input type="radio" name="style" class="radio" value="art" checked>
|
||||
|
@ -113,7 +113,7 @@
|
|||
</div>
|
||||
<div class="option-box">
|
||||
<div class="option-left">
|
||||
Agrandissement :
|
||||
Agrandissement:
|
||||
<div class="option-left-small"></div>
|
||||
</div>
|
||||
<div class="option-right">
|
||||
|
|
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_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
|
||||
|
|
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">
|
||||
Español
|
||||
</a>
|
||||
/
|
||||
<a href="index.fr.html">
|
||||
Français
|
||||
</a>
|
||||
</div>
|
||||
<p><%= t[:description] %></p>
|
||||
<p class="margin1 link-box">
|
||||
|
|
Loading…
Reference in a new issue