blob: 8f9443bba8f258675f074225a56242454e4cc236 [file] [log] [blame]
Akroncddd1642015-06-10 21:31:53 +02001# Based on Mojolicious::Plugin::Number::Commify
2my $THOUSAND_SEP_RE = qr/(
3 ^[-+]? # beginning of number.
4 \d+? # first digits before first comma
5 (?= # followed by, (but not included in the match) :
6 (?>(?:\d{3})+) # some positive multiple of three digits.
7 (?!\d) # an *exact* multiple, not x * 3 + 1 or whatever.
8 )| # or:
9 \G\d{3} # after the last group, get three digits
10 (?=\d) # but they have to have more digits after them.
11)/x;
12
13{
14 _ => sub { $_->locale },
15 de => {
16 numf => sub {
17 shift;
18 my %val = @_;
19 my $num = $val{number} or return 0;
20 $num =~ s/$THOUSAND_SEP_RE/$1\./g;
21 return $num;
22 },
23 about => 'Über KorAP',
24 login => 'Anmelden',
Akron43a73092016-02-11 21:52:27 +010025 searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>«<% } elsif (param("collection")) { %>im definierten Korpus<% } %> mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
Akron656c5d92015-11-13 21:17:03 +010026 searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020027 searchplaceholder => 'Finde ...',
28 go => 'Los!',
29 in => 'in',
30 by => 'von',
Akron189b3592016-01-04 20:56:46 +010031 pwd => 'Passwort',
32 email => 'Email',
Akroncddd1642015-06-10 21:31:53 +020033 with => 'mit',
34 glimpse => {
35 -short => 'Stichprobe',
36 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
37 },
38 faq => 'Häufige Fragen',
39 tutorial => 'Einführung',
40 pubOn => 'veröffentlicht am',
41 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010042 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020043 notFound => '404 - Seite nicht gefunden',
44 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
45 underConstruction => 'In Vorbereitung!',
46 korap => {
47 -short => 'KorAP',
48 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
49 overview => 'KorAP - Übersicht',
50 },
51 template => {
52 intro => 'de/intro'
53 }
54 },
55 -en => {
Akron43a73092016-02-11 21:52:27 +010056 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +020057 numf => sub {
58 shift;
59 my %val = @_;
60 my $num = $val{number} or return 0;
61 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
62 return $num;
63 },
64 about => 'About KorAP',
65 login => 'Login',
66 go => 'Go!',
Akron43a73092016-02-11 21:52:27 +010067 searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>«<% } elsif (param("collection")) { %>in the defined corpus<% } %> with <%== loc("QL_". $ql, "unknown query language") %>',
Akron656c5d92015-11-13 21:17:03 +010068 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020069 searchplaceholder => 'Find ...',
70 in => 'in',
71 by => 'by',
Akron189b3592016-01-04 20:56:46 +010072 pwd => 'Password',
73 email => 'Email',
Akroncddd1642015-06-10 21:31:53 +020074 with => 'with',
75 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +020076 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +010077 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +020078 notFound => '404 - Page not found',
79 glimpse => {
80 -short => 'Sample',
81 desc => 'Just show the first matches in arbitrary order'
82 },
83 faq => 'F.A.Q.',
84 underConstruction => 'Under Construction!',
85 tutorial => 'Tutorial',
86 korap => {
87 -short => 'KorAP',
88 desc => 'KorAP - Corpus Analysis Platform',
89 overview => 'KorAP - Overview'
Akron7716f012015-07-01 20:38:32 +020090 },
91 QL => {
92 poliqarp => 'Poliqarp',
93 cosmas2 => 'Cosmas II',
94 annis => 'Annis QL',
95 cql => 'CQL v1.2'
Akroncddd1642015-06-10 21:31:53 +020096 }
97 }
98};