Improved 'no match' message for use with defined virtual corpora
diff --git a/README.md b/README.md
index 324d73b..8a04222 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,12 @@
$ make test
```
+or
+
+```
+$ cpanm .
+```
+
Kalamar can be deployed like all
[Mojolicious apps](http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT).
The easiest way is to start the built-in server:
diff --git a/kalamar.dict b/kalamar.dict
index 39d9e99..e2f3f6b 100644
--- a/kalamar.dict
+++ b/kalamar.dict
@@ -22,7 +22,7 @@
},
about => 'Über KorAP',
login => 'Anmelden',
- searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in <%== param("collection-name") %><% } %> mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
+ searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>«<% } elsif (param("collection")) { %>im definierten Korpus<% } %> mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
searchplaceholder => 'Finde ...',
go => 'Los!',
@@ -51,6 +51,7 @@
}
},
-en => {
+ jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
numf => sub {
shift;
my %val = @_;
@@ -61,7 +62,7 @@
about => 'About KorAP',
login => 'Login',
go => 'Go!',
- searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in <%== param("collection-name") %><% } %> with <%== loc("QL_". $ql, "unknown query language") %>',
+ searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>«<% } elsif (param("collection")) { %>in the defined corpus<% } %> with <%== loc("QL_". $ql, "unknown query language") %>',
searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
searchplaceholder => 'Find ...',
in => 'in',