blob: c63ec8f70b6fe94f5e290b35f1a007f840aa280f [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?',
Akron1f0521b2018-08-28 13:01:24 +020028 # TODO: use document.write() refering to vc.getName()!
29 searchjob => '»<%== $q %>« <% if (param("collection")) { %>im definierten Korpus <% } %>mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
Akron656c5d92015-11-13 21:17:03 +010030 searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020031 searchplaceholder => 'Finde ...',
32 go => 'Los!',
Akron9dda34e2020-07-06 11:38:27 +020033 news => 'Neuigkeiten & Ankündigungen',
Akroncddd1642015-06-10 21:31:53 +020034 in => 'in',
35 by => 'von',
Akron189b3592016-01-04 20:56:46 +010036 pwd => 'Passwort',
37 email => 'Email',
Akron2670f5b2017-05-31 17:54:07 +020038 userormail => 'Benutzername oder Email',
Akroncddd1642015-06-10 21:31:53 +020039 with => 'mit',
40 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020041 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
42 },
Akrond1741ae2017-11-29 09:58:53 +010043 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Akroncddd1642015-06-10 21:31:53 +020044 faq => 'Häufige Fragen',
45 tutorial => 'Einführung',
Akronf4a7cf42018-01-09 15:58:45 +010046 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020047 pubOn => 'veröffentlicht am',
48 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010049 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020050 notFound => '404 - Seite nicht gefunden',
Akron3c390c42020-03-30 09:06:21 +020051 notIssued => 'Die Aktion konnte nicht durchgeführt werden.',
Akron8ea84292018-10-24 13:41:52 +020052 backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!',
Akroncddd1642015-06-10 21:31:53 +020053 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
54 underConstruction => 'In Vorbereitung!',
55 korap => {
56 -short => 'KorAP',
57 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
58 overview => 'KorAP - Übersicht',
Akrona2d92de2019-02-27 15:51:07 +010059 keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache',
Akroncddd1642015-06-10 21:31:53 +020060 },
Akronafeca252018-05-23 15:54:28 +020061 privacy => 'Datenschutz',
62 imprint => 'Impressum',
Akronf7ec4442019-10-27 20:01:05 +010063 settings => 'Einstellungen',
Akronccd71a42017-06-30 18:09:19 +020064 Template => {
Akronbd39a432017-09-20 13:57:13 +020065 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020066 doc => {
67 ql => {
68 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus'
Akron48567812017-09-01 16:49:04 +020069 },
70 api => {
71 'koralquery' => 'de/doc/api/koralquery'
72 },
73 data => {
74 'annotation' => 'de/doc/data/annotation'
75 },
76 korap => {
77 'kalamar' => 'de/doc/korap/kalamar',
78 'karang' => 'de/doc/korap/karang',
79 'koral' => 'de/doc/korap/koral',
80 'krill' => 'de/doc/korap/krill',
81 'kustvakt' => 'de/doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020082 }
83 }
Akron0dc10902017-09-01 18:00:16 +020084 },
85 Nav => {
86 'ql' => 'Anfragesprachen',
87 '#segments' => 'Einfache Segmente',
88 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +010089 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +020090 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
91 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +010092 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +020093 'regexp' => 'Reguläre Ausdrücke',
94 'data' => 'Daten',
95 'corpus' => 'Korpora',
96 'annotation' => 'Annotationen',
97 '#default-foundries' => 'Standard Foundries',
98 'faq' => 'Häufig gestellte Fragen'
Akroncddd1642015-06-10 21:31:53 +020099 }
100 },
101 -en => {
Akron43a73092016-02-11 21:52:27 +0100102 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200103 numf => sub {
104 shift;
105 my %val = @_;
106 my $num = $val{number} or return 0;
107 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
108 return $num;
109 },
110 about => 'About KorAP',
111 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200112 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200113 register => 'Register',
114 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200115 go => 'Go!',
Akron9dda34e2020-07-06 11:38:27 +0200116 news => 'News & Announcements',
Akron1f0521b2018-08-28 13:01:24 +0200117 # TODO: use document.write() refering to vc.getName()!
118 searchjob => '»<%== $q %>« <% if (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',
Akron3c390c42020-03-30 09:06:21 +0200132 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200133 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200134 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200135 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200136 desc => 'Just show the first matches in arbitrary order'
137 },
Akrond1741ae2017-11-29 09:58:53 +0100138 activateJS => 'To make use of all features, please activate JavaScript!',
Akroncddd1642015-06-10 21:31:53 +0200139 faq => 'F.A.Q.',
140 underConstruction => 'Under Construction!',
141 tutorial => 'Tutorial',
142 korap => {
143 -short => 'KorAP',
144 desc => 'KorAP - Corpus Analysis Platform',
Akrona17bc5b2018-10-05 13:35:01 +0200145 overview => 'KorAP - Overview',
146 region => 'DE-BW',
147 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100148 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200149 },
150 QL => {
151 poliqarp => 'Poliqarp',
152 cosmas2 => 'Cosmas II',
153 annis => 'Annis QL',
Akronef351fa2017-11-22 19:44:50 +0100154 cql => 'CQL v1.2',
155 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200156 },
Akronafeca252018-05-23 15:54:28 +0200157 privacy => 'Privacy',
158 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100159 settings => 'Settings',
Akronccd71a42017-06-30 18:09:19 +0200160 Template => {
Akronbd39a432017-09-20 13:57:13 +0200161 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200162 doc => {
163 ql => {
Akron0dc10902017-09-01 18:00:16 +0200164 'poliqarp-plus' => 'doc/ql/poliqarp-plus'
165 },
166 api => {
167 'koralquery' => 'doc/api/koralquery'
168 },
169 data => {
170 'annotation' => 'doc/data/annotation'
171 },
172 korap => {
173 'kalamar' => 'doc/korap/kalamar',
174 'karang' => 'doc/korap/karang',
175 'koral' => 'doc/korap/koral',
176 'krill' => 'doc/korap/krill',
177 'kustvakt' => 'doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200178 }
179 }
Akron0dc10902017-09-01 18:00:16 +0200180 },
181 Nav => {
182 'ql' => 'Query Languages',
183 '#segments' => 'Simple Segments',
184 '#complex' => 'Complex Segments',
185 '#spans' => 'Span Segments',
186 '#paradigmatic-operators' => 'Paradigmatic Operators',
187 '#syntagmatic-operators' => 'Syntagmatic Operators',
188 '#class-operators' => 'Class Operators',
189 'regexp' => 'Regular Expressions',
190 'data' => 'Data',
191 'corpus' => 'Corpora',
192 'annotation' => 'Annotations',
193 '#default-foundries' => 'Default Foundries',
194 'faq' => 'F.A.Q.'
Akroncddd1642015-06-10 21:31:53 +0200195 }
Akron4c33c622018-11-12 13:43:27 +0100196 },
197 Piwik => {
198 en => {
199 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
200 },
201 de => {
202 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
203 }
Akroncddd1642015-06-10 21:31:53 +0200204 }
205};