blob: 6ec2e5242fee2c3cae700066bd1c064f409e0794 [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?',
Akron4823ab52017-04-27 17:10:12 +020028 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',
Akron2670f5b2017-05-31 17:54:07 +020036 userormail => 'Benutzername oder Email',
Akroncddd1642015-06-10 21:31:53 +020037 with => 'mit',
38 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020039 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
40 },
Akrond1741ae2017-11-29 09:58:53 +010041 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Akroncddd1642015-06-10 21:31:53 +020042 faq => 'Häufige Fragen',
43 tutorial => 'Einführung',
Akronf4a7cf42018-01-09 15:58:45 +010044 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020045 pubOn => 'veröffentlicht am',
46 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010047 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020048 notFound => '404 - Seite nicht gefunden',
49 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
50 underConstruction => 'In Vorbereitung!',
51 korap => {
52 -short => 'KorAP',
53 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
54 overview => 'KorAP - Übersicht',
55 },
Akronafeca252018-05-23 15:54:28 +020056 privacy => 'Datenschutz',
57 imprint => 'Impressum',
Akrone5ef4e02017-04-19 17:07:52 +020058 Auth => {
59 loginSuccess => 'Anmeldung erfolgreich',
60 loginFail => 'Anmeldung fehlgeschlagen',
Akronbc213c02017-04-20 16:45:55 +020061 logoutSuccess => 'Abmeldung erfolgreich',
Akron15158e02018-03-19 12:42:46 +010062 logoutFail => 'Abmeldung fehlgeschlagen',
Akron429aeda2018-03-19 16:02:29 +010063 csrfFail => 'Fehlerhafter CSRF Token',
64 openRedirectFail => 'Weiterleitungsfehler'
Akronccd71a42017-06-30 18:09:19 +020065 },
66 Template => {
Akronbd39a432017-09-20 13:57:13 +020067 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020068 doc => {
69 ql => {
70 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus'
Akron48567812017-09-01 16:49:04 +020071 },
72 api => {
73 'koralquery' => 'de/doc/api/koralquery'
74 },
75 data => {
76 'annotation' => 'de/doc/data/annotation'
77 },
78 korap => {
79 'kalamar' => 'de/doc/korap/kalamar',
80 'karang' => 'de/doc/korap/karang',
81 'koral' => 'de/doc/korap/koral',
82 'krill' => 'de/doc/korap/krill',
83 'kustvakt' => 'de/doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020084 }
85 }
Akron0dc10902017-09-01 18:00:16 +020086 },
87 Nav => {
88 'ql' => 'Anfragesprachen',
89 '#segments' => 'Einfache Segmente',
90 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +010091 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +020092 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
93 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +010094 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +020095 'regexp' => 'Reguläre Ausdrücke',
96 'data' => 'Daten',
97 'corpus' => 'Korpora',
98 'annotation' => 'Annotationen',
99 '#default-foundries' => 'Standard Foundries',
100 'faq' => 'Häufig gestellte Fragen'
Akroncddd1642015-06-10 21:31:53 +0200101 }
102 },
103 -en => {
Akron43a73092016-02-11 21:52:27 +0100104 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200105 numf => sub {
106 shift;
107 my %val = @_;
108 my $num = $val{number} or return 0;
109 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
110 return $num;
111 },
112 about => 'About KorAP',
113 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200114 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200115 register => 'Register',
116 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200117 go => 'Go!',
Akron4823ab52017-04-27 17:10:12 +0200118 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 +0100119 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200120 searchplaceholder => 'Find ...',
121 in => 'in',
122 by => 'by',
Akron189b3592016-01-04 20:56:46 +0100123 pwd => 'Password',
124 email => 'Email',
Akron2670f5b2017-05-31 17:54:07 +0200125 userormail => 'Username or Email',
Akroncddd1642015-06-10 21:31:53 +0200126 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100127 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200128 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200129 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100130 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200131 notFound => '404 - Page not found',
132 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200133 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200134 desc => 'Just show the first matches in arbitrary order'
135 },
Akrond1741ae2017-11-29 09:58:53 +0100136 activateJS => 'To make use of all features, please activate JavaScript!',
Akroncddd1642015-06-10 21:31:53 +0200137 faq => 'F.A.Q.',
138 underConstruction => 'Under Construction!',
139 tutorial => 'Tutorial',
140 korap => {
141 -short => 'KorAP',
142 desc => 'KorAP - Corpus Analysis Platform',
143 overview => 'KorAP - Overview'
Akron7716f012015-07-01 20:38:32 +0200144 },
145 QL => {
146 poliqarp => 'Poliqarp',
147 cosmas2 => 'Cosmas II',
148 annis => 'Annis QL',
Akronef351fa2017-11-22 19:44:50 +0100149 cql => 'CQL v1.2',
150 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200151 },
Akronafeca252018-05-23 15:54:28 +0200152 privacy => 'Privacy',
153 imprint => 'Imprint',
Akrone5ef4e02017-04-19 17:07:52 +0200154 Auth => {
155 loginSuccess => 'Login successful',
156 loginFail => 'Access denied',
Akronbc213c02017-04-20 16:45:55 +0200157 logoutSuccess => 'Logout successful',
Akron15158e02018-03-19 12:42:46 +0100158 logoutFail => 'Logout failed',
Akron429aeda2018-03-19 16:02:29 +0100159 csrfFail => 'Bad CSRF token',
160 openRedirectFail => 'Redirect failure'
Akronccd71a42017-06-30 18:09:19 +0200161 },
162 Template => {
Akronbd39a432017-09-20 13:57:13 +0200163 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200164 doc => {
165 ql => {
Akron0dc10902017-09-01 18:00:16 +0200166 'poliqarp-plus' => 'doc/ql/poliqarp-plus'
167 },
168 api => {
169 'koralquery' => 'doc/api/koralquery'
170 },
171 data => {
172 'annotation' => 'doc/data/annotation'
173 },
174 korap => {
175 'kalamar' => 'doc/korap/kalamar',
176 'karang' => 'doc/korap/karang',
177 'koral' => 'doc/korap/koral',
178 'krill' => 'doc/korap/krill',
179 'kustvakt' => 'doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200180 }
181 }
Akron0dc10902017-09-01 18:00:16 +0200182 },
183 Nav => {
184 'ql' => 'Query Languages',
185 '#segments' => 'Simple Segments',
186 '#complex' => 'Complex Segments',
187 '#spans' => 'Span Segments',
188 '#paradigmatic-operators' => 'Paradigmatic Operators',
189 '#syntagmatic-operators' => 'Syntagmatic Operators',
190 '#class-operators' => 'Class Operators',
191 'regexp' => 'Regular Expressions',
192 'data' => 'Data',
193 'corpus' => 'Corpora',
194 'annotation' => 'Annotations',
195 '#default-foundries' => 'Default Foundries',
196 'faq' => 'F.A.Q.'
Akroncddd1642015-06-10 21:31:53 +0200197 }
198 }
199};