From 389f80977c272f660ead2385a14369550f5548ca Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Mon, 5 Dec 2016 05:14:54 +0100
Subject: [PATCH] Add missing translations.

---
 pd/nw/locales/de/translation.json |  6 +++++-
 pd/nw/locales/en/translation.json |  6 +++++-
 pd/nw/pd_canvas.html              | 13 +++++++------
 3 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/pd/nw/locales/de/translation.json b/pd/nw/locales/de/translation.json
index a7108e59f..3bb0fc233 100644
--- a/pd/nw/locales/de/translation.json
+++ b/pd/nw/locales/de/translation.json
@@ -262,6 +262,7 @@
   "canvas": {
     "paste_clipboard_prompt": "Warnung: Sie sind dabei, Pd-Code einzufügen, der außerhalb von Pd erstellt wurde. Möchten Sie fortfahren?",
     "save_dialog": {
+      "prompt": "Speichern der Änderungen in",
       "yes": "Ja",
       "yes_tt": "Speichern der Änderungen in einer Datei vor dem Schließen des Patches",
       "no": "Nein",
@@ -270,7 +271,10 @@
       "cancel_tt": "Kein Speichern der Änderungen und kein Schließen des Patches"
     },
     "find": {
-      "placeholder": "Suche im Patch"
+      "placeholder": "Suche im Patch",
+      "search": "Suche",
+      "search_tt": "Das nächste Vorkommen suchen",
+      "whole_word": "Ganze Wörter"
     },
     "menu": {
       "props": "Einstellungen",
diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json
index 85024b356..70c0a9ad3 100644
--- a/pd/nw/locales/en/translation.json
+++ b/pd/nw/locales/en/translation.json
@@ -262,6 +262,7 @@
   "canvas": {
     "paste_clipboard_prompt": "Warning: you are about to paste Pd code that came from somewhere outside of Pd. Do you want to continue?",
     "save_dialog": {
+      "prompt": "Do you want to save the changes you made in",
       "yes": "Yes",
       "yes_tt": "Write the changes to file before closing the patch",
       "no": "No",
@@ -270,7 +271,10 @@
       "cancel_tt": "Don't save any changes, and don't close the patch"
     },
     "find": {
-      "placeholder": "Search in Canvas"
+      "placeholder": "Search in Canvas",
+      "search": "Search",
+      "search_tt": "Find next occurrence",
+      "whole_word": "Match Whole Word"
     },
     "menu": {
       "props": "Properties",
diff --git a/pd/nw/pd_canvas.html b/pd/nw/pd_canvas.html
index f825ee723..a960a8498 100644
--- a/pd/nw/pd_canvas.html
+++ b/pd/nw/pd_canvas.html
@@ -31,19 +31,20 @@
                     defaultValue="Search in Canvas"
                     style="width:10em"/>
       </label>
-      <label>Match Whole Word
+      <label><span data-i18n="canvas.find.whole_word"></span>
         <input type="checkbox"
                id="canvas_find_whole_word"
                name="canvas_find_whole_word"
                onchange="canvas_find_whole_word(this);"/> 
       </label>
-      <input type="button"
-             id="canvas_find_button"
-             name="canvas_find_button"
-             value="Search"/>
+      <button type="button"
+              id="canvas_find_button"
+              data-i18n="[title]canvas.find.search_tt">
+        <span data-i18n="canvas.find.search"></span>
+      </button>
     </div>
     <dialog id="save_before_quit">
-      <h4>Do you want to save the changes you made in
+      <h4><span data-i18n="canvas.save_dialog.prompt"></span>
         <span id="save_before_quit_filename"></span>?
       </h4>
       <div class="submit_buttons">
-- 
GitLab