blob: 0dafc51d9018e7e722664ad50c18bf858d82741d [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',
Akrone5ef4e02017-04-19 17:07:52 +020025 logout => 'Abmelden',
Akrone8235be2016-06-27 11:02:18 +020026 register => 'Registrieren',
27 pwdforgotten => 'Password vergessen?',
Akron43a73092016-02-11 21:52:27 +010028 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 +010029 searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020030 searchplaceholder => 'Finde ...',
31 go => 'Los!',
32 in => 'in',
33 by => 'von',
Akron189b3592016-01-04 20:56:46 +010034 pwd => 'Passwort',
35 email => 'Email',
Akroncddd1642015-06-10 21:31:53 +020036 with => 'mit',
37 glimpse => {
38 -short => 'Stichprobe',
39 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
40 },
41 faq => 'Häufige Fragen',
42 tutorial => 'Einführung',
43 pubOn => 'veröffentlicht am',
44 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010045 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020046 notFound => '404 - Seite nicht gefunden',
47 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
48 underConstruction => 'In Vorbereitung!',
49 korap => {
50 -short => 'KorAP',
51 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
52 overview => 'KorAP - Übersicht',
53 },
54 template => {
55 intro => 'de/intro'
Akrone5ef4e02017-04-19 17:07:52 +020056 },
57 Auth => {
58 loginSuccess => 'Anmeldung erfolgreich',
59 loginFail => 'Anmeldung fehlgeschlagen',
60 logoutSuccess => 'Abmeldung erfolgreich'
Akroncddd1642015-06-10 21:31:53 +020061 }
62 },
63 -en => {
Akron43a73092016-02-11 21:52:27 +010064 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +020065 numf => sub {
66 shift;
67 my %val = @_;
68 my $num = $val{number} or return 0;
69 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
70 return $num;
71 },
72 about => 'About KorAP',
73 login => 'Login',
Akrone5ef4e02017-04-19 17:07:52 +020074 logout => 'Abmelden',
Akrone8235be2016-06-27 11:02:18 +020075 register => 'Register',
76 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +020077 go => 'Go!',
Akron43a73092016-02-11 21:52:27 +010078 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 +010079 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020080 searchplaceholder => 'Find ...',
81 in => 'in',
82 by => 'by',
Akron189b3592016-01-04 20:56:46 +010083 pwd => 'Password',
84 email => 'Email',
Akroncddd1642015-06-10 21:31:53 +020085 with => 'with',
86 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +020087 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +010088 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +020089 notFound => '404 - Page not found',
90 glimpse => {
91 -short => 'Sample',
92 desc => 'Just show the first matches in arbitrary order'
93 },
94 faq => 'F.A.Q.',
95 underConstruction => 'Under Construction!',
96 tutorial => 'Tutorial',
97 korap => {
98 -short => 'KorAP',
99 desc => 'KorAP - Corpus Analysis Platform',
100 overview => 'KorAP - Overview'
Akron7716f012015-07-01 20:38:32 +0200101 },
102 QL => {
103 poliqarp => 'Poliqarp',
104 cosmas2 => 'Cosmas II',
105 annis => 'Annis QL',
106 cql => 'CQL v1.2'
Akrone5ef4e02017-04-19 17:07:52 +0200107 },
108 Auth => {
109 loginSuccess => 'Login successful',
110 loginFail => 'Access denied',
111 logoutSuccess => 'Logout successful'
Akroncddd1642015-06-10 21:31:53 +0200112 }
113 }
114};