1
0
Fork 0
mirror of synced 2024-06-18 19:04:30 +12:00

Add support for spanish

This commit is contained in:
nagadomi 2016-02-12 09:51:29 +09:00
parent 109c3b7855
commit 4e7527cc45
4 changed files with 31 additions and 1 deletions

View file

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

View file

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

View file

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