1
0
Fork 0
mirror of synced 2024-06-27 02:30:34 +12:00

Add support for french

This commit is contained in:
nagadomi 2016-02-23 00:00:01 +09:00
parent a8c61b2c36
commit 138768a46d
4 changed files with 152 additions and 122 deletions

View file

@ -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
View 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."

View file

@ -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">