blob: c5c9bfc8a355dfd62923a27c39f42ec671665e4a [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 },
Akron459bf582023-11-03 10:17:11 +010023 numo => sub {
24 shift;
25 my %val = @_;
26 my $day = $val{day} or return '';
27 return $day . '.';
28 },
Akroncddd1642015-06-10 21:31:53 +020029 about => 'Über KorAP',
30 login => 'Anmelden',
Akrone5ef4e02017-04-19 17:07:52 +020031 logout => 'Abmelden',
Akrone8235be2016-06-27 11:02:18 +020032 register => 'Registrieren',
33 pwdforgotten => 'Password vergessen?',
Akron1f0521b2018-08-28 13:01:24 +020034 # TODO: use document.write() refering to vc.getName()!
35 searchjob => '»<%== $q %>« <% if (param("collection")) { %>im definierten Korpus <% } %>mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
Akronc4177492023-11-29 08:35:37 +010036 searchtitle => '<%= loc("en_korap_label") %>: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020037 searchplaceholder => 'Finde ...',
38 go => 'Los!',
Akron88614332024-04-15 12:16:12 +020039 news => 'Neuigkeiten',
Akroncddd1642015-06-10 21:31:53 +020040 in => 'in',
41 by => 'von',
Akron22b008a2024-06-26 17:06:05 +020042 page => {
43 -sg => 'S.',
44 pl => 'S.'
45 },
Akron189b3592016-01-04 20:56:46 +010046 pwd => 'Passwort',
47 email => 'Email',
Akrone208d302020-11-28 11:14:50 +010048 username => 'Benutzername',
Akron9f2ad342022-05-04 16:16:40 +020049 upload => 'Hochladen',
Akron9fa7cc52022-05-12 11:17:20 +020050 userormail => 'Benutzername oder Email',
Akroncddd1642015-06-10 21:31:53 +020051 with => 'mit',
52 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020053 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
54 },
Akrond1741ae2017-11-29 09:58:53 +010055 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +020056 faq => 'FAQ',
Helge2e434be2023-02-01 16:47:16 +010057 tutorial => 'Hilfe und Dokumentation',
Akronf4a7cf42018-01-09 15:58:45 +010058 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020059 pubOn => 'veröffentlicht am',
60 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010061 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020062 notFound => '404 - Seite nicht gefunden',
Akron3c390c42020-03-30 09:06:21 +020063 notIssued => 'Die Aktion konnte nicht durchgeführt werden.',
Akron8ea84292018-10-24 13:41:52 +020064 backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!',
Akroncddd1642015-06-10 21:31:53 +020065 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
66 underConstruction => 'In Vorbereitung!',
67 korap => {
68 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +010069 desc => '<%= loc "en_korap_label" %> - Korpusanalyseplattform der nächsten Generation',
70 overview => '<%= loc "en_korap_label" %> - Übersicht',
Akrona2d92de2019-02-27 15:51:07 +010071 keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache',
Akroncddd1642015-06-10 21:31:53 +020072 },
Akronafeca252018-05-23 15:54:28 +020073 privacy => 'Datenschutz',
74 imprint => 'Impressum',
Akronf7ec4442019-10-27 20:01:05 +010075 settings => 'Einstellungen',
Akron459bf582023-11-03 10:17:11 +010076 'oclock' => 'Uhr',
77 maintenanceWork => {
78 time => 'Wartungsfenster',
79 desc => 'Aufgrund von Wartungsarbeiten wird es zu Unterbrechungen des Dienstes kommen.',
80 },
Akronccd71a42017-06-30 18:09:19 +020081 Template => {
Akronbd39a432017-09-20 13:57:13 +020082 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020083 doc => {
84 ql => {
Akronb9ca92b2024-03-14 10:20:18 +010085 '.' => 'de/doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +020086 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus',
Rebecca Wilmc81e10d2024-08-29 15:48:14 +020087 'cosmas-2' => 'de/doc/ql/cosmas-2',
Rebecca Wilm4ce37af2024-09-17 12:06:42 +020088 'regexp' => 'de/doc/ql/regexp',
89 'fcsql' => 'de/doc/ql/fcsql'
Akron48567812017-09-01 16:49:04 +020090 },
91 api => {
92 'koralquery' => 'de/doc/api/koralquery'
93 },
94 data => {
95 'annotation' => 'de/doc/data/annotation'
96 },
Marc Kupietzfcadda62021-09-08 09:06:25 +020097 development => {
98 'kalamar' => 'de/doc/development/kalamar',
99 'karang' => 'de/doc/development/karang',
100 'koral' => 'de/doc/development/koral',
101 'krill' => 'de/doc/development/krill',
102 'kustvakt' => 'de/doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200103 }
104 }
Akron0dc10902017-09-01 18:00:16 +0200105 },
106 Nav => {
107 'ql' => 'Anfragesprachen',
Helgeb4c098c2022-10-04 16:26:38 +0200108 '#queryterms' => 'Suchbegriffe',
109 '#logical-operators' => 'Logische Operatoren',
110 '#distance-operators' => 'Abstandsoperatoren',
111 '#annotation-operators' => 'Annotationsoperatoren',
112 '#combination-operators'=> 'Kombinationsoperatoren',
113 '#area-operators' => 'Textbereich-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200114 '#segments' => 'Einfache Segmente',
115 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +0100116 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +0200117 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
118 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +0100119 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200120 'regexp' => 'Reguläre Ausdrücke',
Marc Kupietz4689e792021-09-07 23:29:51 +0200121 'data' => 'Korpusdaten',
Akron0dc10902017-09-01 18:00:16 +0200122 'corpus' => 'Korpora',
123 'annotation' => 'Annotationen',
124 '#default-foundries' => 'Standard Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200125 'development' => 'Entwicklung',
Akron459bf582023-11-03 10:17:11 +0100126 'faq' => 'FAQ',
Akron397552c2023-09-18 12:13:33 +0200127 },
128 QL => {
129 cqp => 'CQP (neu)'
Akroncddd1642015-06-10 21:31:53 +0200130 }
131 },
132 -en => {
Akron43a73092016-02-11 21:52:27 +0100133 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200134 numf => sub {
135 shift;
136 my %val = @_;
137 my $num = $val{number} or return 0;
138 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
139 return $num;
140 },
Akron459bf582023-11-03 10:17:11 +0100141 numo => sub {
142 shift;
143 my %val = @_;
144 my $day = $val{day} or return '';
145 if ($day > 3) {
146 return $day . 'th';
147 } elsif ($day == 3) {
148 return '3rd';
149 } elsif ($day == 2) {
150 return '2nd';
151 };
152 return '1st';
153 },
Akroncddd1642015-06-10 21:31:53 +0200154 about => 'About KorAP',
155 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200156 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200157 register => 'Register',
158 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200159 go => 'Go!',
Akron88614332024-04-15 12:16:12 +0200160 news => 'News',
Akron1f0521b2018-08-28 13:01:24 +0200161 # TODO: use document.write() refering to vc.getName()!
162 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akronc4177492023-11-29 08:35:37 +0100163 searchtitle => '<%= loc("korap_label") %>: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200164 searchplaceholder => 'Find ...',
165 in => 'in',
166 by => 'by',
Akron22b008a2024-06-26 17:06:05 +0200167 page => {
168 -sg => 'p.',
169 pl => 'pp.',
170 },
Akron189b3592016-01-04 20:56:46 +0100171 pwd => 'Password',
172 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100173 username => 'Username',
Akron9f2ad342022-05-04 16:16:40 +0200174 upload => 'Upload',
Akron9fa7cc52022-05-12 11:17:20 +0200175 userormail => 'Username or Email',
Akroncddd1642015-06-10 21:31:53 +0200176 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100177 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200178 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200179 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100180 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200181 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200182 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200183 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200184 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200185 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200186 desc => 'Just show the first matches in arbitrary order'
187 },
Akrond1741ae2017-11-29 09:58:53 +0100188 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200189 faq => 'FAQ',
Akron459bf582023-11-03 10:17:11 +0100190 'oclock' => 'o\'clock',
Akroncddd1642015-06-10 21:31:53 +0200191 underConstruction => 'Under Construction!',
Helge2e434be2023-02-01 16:47:16 +0100192 tutorial => 'Help and Documentation',
Akroncddd1642015-06-10 21:31:53 +0200193 korap => {
194 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +0100195 label => '<%= loc "korap_short" %><% if (loc("title_addon")) { %>-<%= loc("title_addon") %><% } %>',
196 desc => '<%= loc "korap_label" %> - Corpus Analysis Platform',
197 overview => '<%= loc "korap_label" %> - Overview',
Akrona17bc5b2018-10-05 13:35:01 +0200198 region => 'DE-BW',
199 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100200 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200201 },
202 QL => {
203 poliqarp => 'Poliqarp',
204 cosmas2 => 'Cosmas II',
205 annis => 'Annis QL',
Akron397552c2023-09-18 12:13:33 +0200206 cqp => 'CQP (new)',
Akronef351fa2017-11-22 19:44:50 +0100207 cql => 'CQL v1.2',
208 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200209 },
Akronafeca252018-05-23 15:54:28 +0200210 privacy => 'Privacy',
211 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100212 settings => 'Settings',
Akron459bf582023-11-03 10:17:11 +0100213 maintenanceWork => {
214 time => 'Maintenance',
215 desc => 'Due to maintenance work the service will be interrupted.',
216 },
Akronccd71a42017-06-30 18:09:19 +0200217 Template => {
Akronbd39a432017-09-20 13:57:13 +0200218 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200219 doc => {
220 ql => {
Akronb9ca92b2024-03-14 10:20:18 +0100221 '.' => 'doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +0200222 'poliqarp-plus' => 'doc/ql/poliqarp-plus',
Rebecca Wilmc81e10d2024-08-29 15:48:14 +0200223 'cosmas-2' => 'doc/ql/cosmas-2',
Rebecca Wilm4ce37af2024-09-17 12:06:42 +0200224 'regexp' => 'doc/ql/regexp',
225 'fcsql' => 'doc/ql/fcsql'
Akron0dc10902017-09-01 18:00:16 +0200226 },
227 api => {
228 'koralquery' => 'doc/api/koralquery'
229 },
230 data => {
231 'annotation' => 'doc/data/annotation'
232 },
Akrondd5ab892021-09-08 12:46:08 +0200233 development => {
Marc Kupietzfcadda62021-09-08 09:06:25 +0200234 'kalamar' => 'doc/development/kalamar',
235 'karang' => 'doc/development/karang',
236 'koral' => 'doc/development/koral',
237 'krill' => 'doc/development/krill',
238 'kustvakt' => 'doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200239 }
240 }
Akron0dc10902017-09-01 18:00:16 +0200241 },
242 Nav => {
243 'ql' => 'Query Languages',
Helgeb4c098c2022-10-04 16:26:38 +0200244 '#queryterms' => 'Query Terms',
245 '#logical-operators' => 'Logical Operators',
246 '#distance-operators' => 'Distance Operators',
247 '#annotation-operators' => 'Annotation Operators',
248 '#combination-operators'=> 'Combination Operators',
249 '#area-operators' => 'Area Operators',
Akron0dc10902017-09-01 18:00:16 +0200250 '#segments' => 'Simple Segments',
251 '#complex' => 'Complex Segments',
252 '#spans' => 'Span Segments',
253 '#paradigmatic-operators' => 'Paradigmatic Operators',
254 '#syntagmatic-operators' => 'Syntagmatic Operators',
255 '#class-operators' => 'Class Operators',
256 'regexp' => 'Regular Expressions',
Marc Kupietz4689e792021-09-07 23:29:51 +0200257 'data' => 'Corpus Data',
Akron0dc10902017-09-01 18:00:16 +0200258 'corpus' => 'Corpora',
259 'annotation' => 'Annotations',
260 '#default-foundries' => 'Default Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200261 'development' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200262 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200263 }
Akron4c33c622018-11-12 13:43:27 +0100264 },
265 Piwik => {
266 en => {
267 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
268 },
269 de => {
270 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
271 }
Akroncddd1642015-06-10 21:31:53 +0200272 }
273};