derekovecs: localize not found dialog
diff --git a/templates/index.html.ep b/templates/index.html.ep
index ccb5ea4..4fbd8af 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -822,13 +822,9 @@
</div>
% } elsif($word !~ /^\s*$/) {
<div id="wrapper">
- <div id="not-found-dialog" title="Not found">
- <p>ERROR: "<%= $word %>" not found in vocabluary.</p>
- <p>If you are sure you have spelled the word as intended, you can try to increase the cutoff parameter in the options menu.</p>
- </div>
<script>
$( function() {
- $( "#not-found-dialog" ).dialog({
+ $( "<%== loc 'notfounddialog' %>").dialog({
autoOpen: true,
modal: true,
draggable: false,
@@ -838,14 +834,22 @@
buttons: {
"OK": function() {
$( this ).dialog( "close" );
- },
+ } /* ,
"Apply": function() {
window.open($(location).attr('pathname')+'?'+$('form').serialize(), "_self");
- }
+ } */
}
});
});
</script>
+ <div id="not-found-dialog_de" style="display: none" title="Nicht gefunden">
+ <p>FEHLER: Konnte "<%= $word %>" nicht finden.</p>
+ <p>Wenn Sie der Meinung sind, dass es Vokabluar enthalten sein sollte, können Sie versuchen den Cut-Off-Parameter in den Optionen zu erhöhen.</p>
+ </div>
+ <div id="not-found-dialog_en" style="display: none" title="Not found">
+ <p>ERROR: "<%= $word %>" not found in vocabluary.</p>
+ <p>If you are sure you have spelled the word as intended, you can try to increase the cutoff parameter in the options menu.</p>
+ </div>
</div>
% }
</div>
diff --git a/w2v-server.dict b/w2v-server.dict
index 8136fe1..d344bdc 100644
--- a/w2v-server.dict
+++ b/w2v-server.dict
@@ -43,7 +43,8 @@
training_parameters => "Training-Parameter",
references => "Literatur",
abouttext => "de/about",
- footer => "de/footer"
+ footer => "de/footer",
+ notfounddialog => "#not-found-dialog_de"
},
-en => {
numf => sub {
@@ -74,6 +75,8 @@
training_parameters => "Training Parameters",
references => "Literature",
abouttext => "en/about",
- footer => "en/footer"
+ footer => "en/footer",
+ notfounddialog => "#not-found-dialog_en"
+
}
};