blob: 887b254db4496fa76bbc568c4aac2881e4836b65 [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',
Akron778f96c2016-06-27 11:02:18 +020025 register => 'Registrieren',
26 pwdforgotten => 'Password vergessen?',
Akron43a73092016-02-11 21:52:27 +010027 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 +010028 searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020029 searchplaceholder => 'Finde ...',
30 go => 'Los!',
31 in => 'in',
32 by => 'von',
Akron07c720e2016-01-04 20:56:46 +010033 pwd => 'Passwort',
34 email => 'Email',
Akroncddd1642015-06-10 21:31:53 +020035 with => 'mit',
36 glimpse => {
37 -short => 'Stichprobe',
38 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
39 },
40 faq => 'Häufige Fragen',
41 tutorial => 'Einführung',
42 pubOn => 'veröffentlicht am',
43 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010044 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020045 notFound => '404 - Seite nicht gefunden',
46 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
47 underConstruction => 'In Vorbereitung!',
48 korap => {
49 -short => 'KorAP',
50 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
51 overview => 'KorAP - Übersicht',
52 },
53 template => {
54 intro => 'de/intro'
55 }
56 },
57 -en => {
Akron43a73092016-02-11 21:52:27 +010058 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +020059 numf => sub {
60 shift;
61 my %val = @_;
62 my $num = $val{number} or return 0;
63 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
64 return $num;
65 },
66 about => 'About KorAP',
67 login => 'Login',
Akron778f96c2016-06-27 11:02:18 +020068 register => 'Register',
69 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +020070 go => 'Go!',
Akron43a73092016-02-11 21:52:27 +010071 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 +010072 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020073 searchplaceholder => 'Find ...',
74 in => 'in',
75 by => 'by',
Akron07c720e2016-01-04 20:56:46 +010076 pwd => 'Password',
77 email => 'Email',
Akroncddd1642015-06-10 21:31:53 +020078 with => 'with',
79 pubOn => 'published on',
80 matchCount => '<%= num($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +010081 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +020082 notFound => '404 - Page not found',
83 glimpse => {
84 -short => 'Sample',
85 desc => 'Just show the first matches in arbitrary order'
86 },
87 faq => 'F.A.Q.',
88 underConstruction => 'Under Construction!',
89 tutorial => 'Tutorial',
90 korap => {
91 -short => 'KorAP',
92 desc => 'KorAP - Corpus Analysis Platform',
93 overview => 'KorAP - Overview'
Akron7716f012015-07-01 20:38:32 +020094 },
95 QL => {
96 poliqarp => 'Poliqarp',
97 cosmas2 => 'Cosmas II',
98 annis => 'Annis QL',
99 cql => 'CQL v1.2'
Akroncddd1642015-06-10 21:31:53 +0200100 }
101 }
102};