Browse Source

Add German Translation

nagadomi 9 years ago
parent
commit
77bdd16284

+ 1 - 0
appendix/waifu2x.nginx.conf

@@ -11,6 +11,7 @@ map $http_accept_language $lang {
   ~pt pt;
   ~es es;
   ~fr fr;
+  ~de de;
   ~en en;
 }
 

+ 13 - 13
assets/index.de.html

@@ -1,5 +1,5 @@
-<!DOCTYPE html>
-<html lang="en">
+<!DOCTYPE html> 
+<html lang="de">
   <!-- 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">
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>Einzelbild Super-Auflösungs Konvertierung für Bilder im Anime Stil mithilfe eines faltenden neuralen Netzwerks. Zusätzlich dazu unterstützt es auch Fotos.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  Zeige die volle Demonstration an
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  Gehe zu GitHub
 	</a>
@@ -62,7 +62,7 @@
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="URL hier eintragen">
 	    <div class="option-right-small">
-	      Oder wählen Sie eine Datei aus:
+	      Oder wählen Sie eine Datei aus: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
@@ -118,7 +118,7 @@
 	    </label>
 	  </div>
 	  <div class="option-hint">
-      Sie sollten Rauschunterdrückung nutzen, wenn das Bild an sich viel Bildrauschen aufweist. Ansonsten könnte es den entgegensetzten Effekt haben.
+	    Sie sollten Rauschunterdrückung nutzen, wenn das Bild an sich viel Bildrauschen aufweist. Ansonsten könnte es den entgegensetzten Effekt haben.
 	  </div>
 	</div>
 	<div class="option-box">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="Konvertieren">
-
+	
 	<input type="submit" name="download" value="Herunterladen" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>Wenn Sie Firefox benutzen, benutzen Sie bitte SRTG+S um das Bild zu speichern. Herunterladen funktioniert bei Firefox leider nicht.</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 11 - 11
assets/index.es.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html> 
 <html lang="es">
   <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
   <head>
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>Mejora la resolución de ilustraciones de tipo anime utilizando redes neuronales convolucionales. También es compatible con fotografías.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  Ver una demostración
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  Ir a GitHub
 	</a>
@@ -62,7 +62,7 @@
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="Escribe una URL">
 	    <div class="option-right-small">
-	      O selecciona un archivo:
+	      O selecciona un archivo: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="Convertir">
-
+	
 	<input type="submit" name="download" value="Descargar" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>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.</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 11 - 11
assets/index.fr.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html> 
 <html lang="fr">
   <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
   <head>
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>Outil d'agrandissement de dessins de style anime, employant des réseaux de neurones convolutionnels. Fonctionne aussi sur des photos.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  Voir une démonstration
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  Aller sur GitHub
 	</a>
@@ -62,7 +62,7 @@
 	  <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">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="Convertir">
-
+	
 	<input type="submit" name="download" value="Télécharger" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>Si vous utilisez Firefox, utilisez Ctrl+S pour enregistrer l'image. L'option "Enregistrer l'image" ne fonctionne pas.</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 11 - 11
assets/index.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html> 
 <html lang="en">
   <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
   <head>
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  Show full demonstration
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  Go to GitHub
 	</a>
@@ -62,7 +62,7 @@
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="Type URL">
 	    <div class="option-right-small">
-	      Or choose a file:
+	      Or choose a file: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="Convert">
-
+	
 	<input type="submit" name="download" value="Download" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>If you are using Firefox, Please press the CTRL+S key to save image. "Save Image" option doesn't work.</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 11 - 11
assets/index.ja.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html> 
 <html lang="ja">
   <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
   <head>
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>深層畳み込みニューラルネットワークによる二次元画像のための超解像システム。 写真にも対応。</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  実行例を表示
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  プロジェクトページ(GitHub)
 	</a>
@@ -62,7 +62,7 @@
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="URLを入力">
 	    <div class="option-right-small">
-	      ファイルを選択:
+	      ファイルを選択: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="実行">
-
+	
 	<input type="submit" name="download" value="実行結果を保存" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>Firefoxの方は、右クリから画像が保存できないようなので、CTRL+SキーかALTキー後 ファイル - ページを保存 で画像を保存してください。</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 11 - 11
assets/index.pt.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html> 
 <html lang="pt">
   <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
   <head>
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  Sobre
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  Ir para Github
 	</a>
@@ -62,7 +62,7 @@
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="URL">
 	    <div class="option-right-small">
-	      ARQUIVO:
+	      ARQUIVO: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="Converter">
-
+	
 	<input type="submit" name="download" value="Baixar" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>Se Você estiver usando o Firefox, por favor, aperte CTRL+S para salvar a imagem. A opção "Salvar Imagem" não funciona</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 11 - 11
assets/index.ru.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html> 
 <html lang="ru">
   <!-- This file was automatically generated by webgen/gen.rb. Do not make changes to this file manually. -->
   <head>
@@ -22,10 +22,6 @@
 	  English
 	</a>
 	/
-  <a href="index.de.html">
-    Deutsch
-  </a>
-  /
 	<a href="index.ja.html">
 	  日本語
 	</a>
@@ -45,13 +41,17 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p>Waifu2x позволяет увеличивать в 4 раза рисованные изображения, например аниме или арт, а также устранять шум на изображении (преимущественно артефакты сжатия JPEG). Теперь также поддерживаются фотографии.</p>
       <p class="margin1 link-box">
 	<a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" class="blue-link" target="_blank">
 	  Посмотреть полную демонстрацию
 	</a>
-	|
+	| 
 	<a href="https://github.com/nagadomi/waifu2x" class="blue-link" target="_blank">
 	  Перейти на GitHub
 	</a>
@@ -62,7 +62,7 @@
 	  <div class="option-right">
 	    <input type="text" id="url" name="url" placeholder="Укажите URL">
 	    <div class="option-right-small">
-	      Либо выберите файл:
+	      Либо выберите файл: 
 	      <input type="file" id="file" name="file"></div>
 	  </div>
 	  <div class="option-hint">
@@ -144,15 +144,15 @@
 	    </label>
 	  </div>
 	</div>
-
+	
 	  <input type="submit" class="button" value="Преобразовать">
-
+	
 	<input type="submit" name="download" value="Скачать" class="button">
 	<div class="bottom-hint">
 	  <ul>
-
+	    
 	      <li>Если Вы используете Firefox, для сохранения изображения нажмите Ctrl+S (перетаскивание изображения и опция "Сохранить изображение" работать не будут).</li>
-
+	    
 	  </ul>
 	</div>
       </form>

+ 3 - 0
web.lua

@@ -303,6 +303,7 @@ 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_de = file.read(path.join(ROOT, "assets", "index.de.html"))
 local index_en = file.read(path.join(ROOT, "assets", "index.html"))
 function FormHandler:get()
    local lang = self.request.headers:get("Accept-Language")
@@ -321,6 +322,8 @@ function FormHandler:get()
 	 self:write(index_es)
       elseif langs[1] == "fr" then
 	 self:write(index_fr)
+      elseif langs[1] == "de" then
+	 self:write(index_de)
       else
 	 self:write(index_en)
       end

+ 25 - 0
webgen/locales/de.yml

@@ -0,0 +1,25 @@
+---
+description: Einzelbild Super-Auflösungs Konvertierung für Bilder im Anime Stil mithilfe eines faltenden neuralen Netzwerks. Zusätzlich dazu unterstützt es auch Fotos.
+show_demonstration: Zeige die volle Demonstration an
+go_to_github: Gehe zu GitHub
+image_choosing: Bildauswahl
+type_url: URL hier eintragen
+choose_file: Oder wählen Sie eine Datei aus
+file_limits: "Beschränkungen: Größe: 3MB, Rauschunterdrückung: 2560x2560px, maximale Hochskalierung: 1280x1280px."
+style: Stil
+artwork: Kunst
+photo: Foto
+noise_reduction: Rauschunterdrückung
+expect_jpeg: verursacht möglicherweise JPEG Artifakte
+nr_none: Keine
+nr_medium: Mittel
+nr_high: Hoch
+nr_highest: Am Höchsten
+nr_hint: "Sie sollten Rauschunterdrückung nutzen, wenn das Bild an sich viel Bildrauschen aufweist. Ansonsten könnte es den entgegensetzten Effekt haben."
+upscaling: Hochskalierung
+up_none: Keine
+button_convert: Konvertieren
+button_download: Herunterladen
+hints:
+  - "Wenn Sie Firefox benutzen, benutzen Sie bitte SRTG+S um das Bild zu speichern. Herunterladen funktioniert bei Firefox leider nicht."
+  

+ 4 - 0
webgen/templates/index.html.erb

@@ -41,6 +41,10 @@
 	<a href="index.fr.html">
 	  Français
 	</a>
+	/
+	<a href="index.de.html">
+	  Deutsch
+	</a>
       </div>
       <p><%= t[:description] %></p>
       <p class="margin1 link-box">