Add support for spanish
This commit is contained in:
parent
109c3b7855
commit
4e7527cc45
4 changed files with 31 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="es">
|
||||
<!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
|
|
3
web.lua
3
web.lua
|
@ -252,6 +252,7 @@ local FormHandler = class("FormHandler", turbo.web.RequestHandler)
|
|||
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_en = file.read(path.join(ROOT, "assets", "index.html"))
|
||||
function FormHandler:get()
|
||||
local lang = self.request.headers:get("Accept-Language")
|
||||
|
@ -266,6 +267,8 @@ function FormHandler:get()
|
|||
self:write(index_ru)
|
||||
elseif langs[1] == "pt" or langs[1] == "pt-BR" then
|
||||
self:write(index_pt)
|
||||
elseif langs[1] == "es" or langs[1] == "es-ES" then
|
||||
self:write(index_es)
|
||||
else
|
||||
self:write(index_en)
|
||||
end
|
||||
|
|
23
webgen/locales/es.yml
Normal file
23
webgen/locales/es.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
description: Mejora la resolución de ilustraciones de tipo anime utilizando redes neuronales convolucionales. También es compatible con fotografías.
|
||||
show_demonstration: Ver una demostración
|
||||
go_to_github: Ir a GitHub
|
||||
image_choosing: Selección de imagen
|
||||
type_url: Escribe una URL
|
||||
choose_file: O selecciona un archivo
|
||||
file_limits: "Límites: Tamaño: 3 MB, Reducción de ruido: 2560x2560px, Aumento de resolución: 1280x1280px."
|
||||
style: Estilo
|
||||
artwork: Ilustración
|
||||
photo: Fotografía
|
||||
noise_reduction: Reducción de ruido
|
||||
expect_jpeg: se esperarán artefactos de compresión JPEG
|
||||
nr_none: Ninguno
|
||||
nr_medium: Medio
|
||||
nr_high: Alto
|
||||
nr_hint: "Es necesario utilizar la reducción de ruido si la imagen dispone de artefactos de compresión; de lo contrario podría producir el efecto opuesto."
|
||||
upscaling: Aumento de resolución
|
||||
up_none: Ninguno
|
||||
button_convert: Convertir
|
||||
button_download: Descargar
|
||||
hints:
|
||||
- "Si estás utilizando el navegador Firefox, utiliza la combinación de botones Control+S para guardar la imagen. La opción «Guardar imagen como...» no funciona."
|
|
@ -33,6 +33,10 @@
|
|||
<a href="index.pt.html">
|
||||
Português
|
||||
</a>
|
||||
/
|
||||
<a href="index.es.html">
|
||||
Español
|
||||
</a>
|
||||
</div>
|
||||
<p><%= t[:description] %></p>
|
||||
<p class="margin1 link-box">
|
||||
|
|
Loading…
Reference in a new issue