blob: 12bf48441747a60cee9b8b68b1908813db47bfb5 [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',
Rebecca Wilm155687b2024-11-06 15:25:19 +010089 'fcsql' => 'de/doc/ql/fcsql',
90 'cql' => 'de/doc/ql/cql'
Akron48567812017-09-01 16:49:04 +020091 },
92 api => {
93 'koralquery' => 'de/doc/api/koralquery'
94 },
95 data => {
96 'annotation' => 'de/doc/data/annotation'
97 },
Marc Kupietzfcadda62021-09-08 09:06:25 +020098 development => {
99 'kalamar' => 'de/doc/development/kalamar',
100 'karang' => 'de/doc/development/karang',
101 'koral' => 'de/doc/development/koral',
102 'krill' => 'de/doc/development/krill',
103 'kustvakt' => 'de/doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200104 }
105 }
Akron0dc10902017-09-01 18:00:16 +0200106 },
107 Nav => {
108 'ql' => 'Anfragesprachen',
Helgeb4c098c2022-10-04 16:26:38 +0200109 '#queryterms' => 'Suchbegriffe',
110 '#logical-operators' => 'Logische Operatoren',
111 '#distance-operators' => 'Abstandsoperatoren',
112 '#annotation-operators' => 'Annotationsoperatoren',
113 '#combination-operators'=> 'Kombinationsoperatoren',
114 '#area-operators' => 'Textbereich-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200115 '#segments' => 'Einfache Segmente',
116 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +0100117 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +0200118 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
119 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +0100120 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200121 'regexp' => 'Reguläre Ausdrücke',
Marc Kupietz4689e792021-09-07 23:29:51 +0200122 'data' => 'Korpusdaten',
Akron0dc10902017-09-01 18:00:16 +0200123 'corpus' => 'Korpora',
124 'annotation' => 'Annotationen',
125 '#default-foundries' => 'Standard Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200126 'development' => 'Entwicklung',
Akron459bf582023-11-03 10:17:11 +0100127 'faq' => 'FAQ',
Akron397552c2023-09-18 12:13:33 +0200128 },
129 QL => {
130 cqp => 'CQP (neu)'
Akroncddd1642015-06-10 21:31:53 +0200131 }
132 },
133 -en => {
Akron43a73092016-02-11 21:52:27 +0100134 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200135 numf => sub {
136 shift;
137 my %val = @_;
138 my $num = $val{number} or return 0;
139 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
140 return $num;
141 },
Akron459bf582023-11-03 10:17:11 +0100142 numo => sub {
143 shift;
144 my %val = @_;
145 my $day = $val{day} or return '';
146 if ($day > 3) {
147 return $day . 'th';
148 } elsif ($day == 3) {
149 return '3rd';
150 } elsif ($day == 2) {
151 return '2nd';
152 };
153 return '1st';
154 },
Akroncddd1642015-06-10 21:31:53 +0200155 about => 'About KorAP',
156 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200157 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200158 register => 'Register',
159 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200160 go => 'Go!',
Akron88614332024-04-15 12:16:12 +0200161 news => 'News',
Akron1f0521b2018-08-28 13:01:24 +0200162 # TODO: use document.write() refering to vc.getName()!
163 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akronc4177492023-11-29 08:35:37 +0100164 searchtitle => '<%= loc("korap_label") %>: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200165 searchplaceholder => 'Find ...',
166 in => 'in',
167 by => 'by',
Akron22b008a2024-06-26 17:06:05 +0200168 page => {
169 -sg => 'p.',
170 pl => 'pp.',
171 },
Akron189b3592016-01-04 20:56:46 +0100172 pwd => 'Password',
173 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100174 username => 'Username',
Akron9f2ad342022-05-04 16:16:40 +0200175 upload => 'Upload',
Akron9fa7cc52022-05-12 11:17:20 +0200176 userormail => 'Username or Email',
Akroncddd1642015-06-10 21:31:53 +0200177 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100178 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200179 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200180 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100181 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200182 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200183 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200184 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200185 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200186 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200187 desc => 'Just show the first matches in arbitrary order'
188 },
Akrond1741ae2017-11-29 09:58:53 +0100189 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200190 faq => 'FAQ',
Akron459bf582023-11-03 10:17:11 +0100191 'oclock' => 'o\'clock',
Akroncddd1642015-06-10 21:31:53 +0200192 underConstruction => 'Under Construction!',
Helge2e434be2023-02-01 16:47:16 +0100193 tutorial => 'Help and Documentation',
Akroncddd1642015-06-10 21:31:53 +0200194 korap => {
195 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +0100196 label => '<%= loc "korap_short" %><% if (loc("title_addon")) { %>-<%= loc("title_addon") %><% } %>',
197 desc => '<%= loc "korap_label" %> - Corpus Analysis Platform',
198 overview => '<%= loc "korap_label" %> - Overview',
Akrona17bc5b2018-10-05 13:35:01 +0200199 region => 'DE-BW',
200 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100201 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200202 },
203 QL => {
204 poliqarp => 'Poliqarp',
205 cosmas2 => 'Cosmas II',
206 annis => 'Annis QL',
Akron397552c2023-09-18 12:13:33 +0200207 cqp => 'CQP (new)',
Akronef351fa2017-11-22 19:44:50 +0100208 cql => 'CQL v1.2',
209 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200210 },
Akronafeca252018-05-23 15:54:28 +0200211 privacy => 'Privacy',
212 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100213 settings => 'Settings',
Akron459bf582023-11-03 10:17:11 +0100214 maintenanceWork => {
215 time => 'Maintenance',
216 desc => 'Due to maintenance work the service will be interrupted.',
217 },
Akronccd71a42017-06-30 18:09:19 +0200218 Template => {
Akronbd39a432017-09-20 13:57:13 +0200219 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200220 doc => {
221 ql => {
Akronb9ca92b2024-03-14 10:20:18 +0100222 '.' => 'doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +0200223 'poliqarp-plus' => 'doc/ql/poliqarp-plus',
Rebecca Wilmc81e10d2024-08-29 15:48:14 +0200224 'cosmas-2' => 'doc/ql/cosmas-2',
Rebecca Wilm4ce37af2024-09-17 12:06:42 +0200225 'regexp' => 'doc/ql/regexp',
Rebecca Wilm155687b2024-11-06 15:25:19 +0100226 'fcsql' => 'doc/ql/fcsql',
227 'cql' => 'doc/ql/cql'
Akron0dc10902017-09-01 18:00:16 +0200228 },
229 api => {
230 'koralquery' => 'doc/api/koralquery'
231 },
232 data => {
233 'annotation' => 'doc/data/annotation'
234 },
Akrondd5ab892021-09-08 12:46:08 +0200235 development => {
Marc Kupietzfcadda62021-09-08 09:06:25 +0200236 'kalamar' => 'doc/development/kalamar',
237 'karang' => 'doc/development/karang',
238 'koral' => 'doc/development/koral',
239 'krill' => 'doc/development/krill',
240 'kustvakt' => 'doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200241 }
242 }
Akron0dc10902017-09-01 18:00:16 +0200243 },
244 Nav => {
245 'ql' => 'Query Languages',
Helgeb4c098c2022-10-04 16:26:38 +0200246 '#queryterms' => 'Query Terms',
247 '#logical-operators' => 'Logical Operators',
248 '#distance-operators' => 'Distance Operators',
249 '#annotation-operators' => 'Annotation Operators',
250 '#combination-operators'=> 'Combination Operators',
251 '#area-operators' => 'Area Operators',
Akron0dc10902017-09-01 18:00:16 +0200252 '#segments' => 'Simple Segments',
253 '#complex' => 'Complex Segments',
254 '#spans' => 'Span Segments',
255 '#paradigmatic-operators' => 'Paradigmatic Operators',
256 '#syntagmatic-operators' => 'Syntagmatic Operators',
257 '#class-operators' => 'Class Operators',
258 'regexp' => 'Regular Expressions',
Marc Kupietz4689e792021-09-07 23:29:51 +0200259 'data' => 'Corpus Data',
Akron0dc10902017-09-01 18:00:16 +0200260 'corpus' => 'Corpora',
261 'annotation' => 'Annotations',
262 '#default-foundries' => 'Default Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200263 'development' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200264 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200265 }
Akron4c33c622018-11-12 13:43:27 +0100266 },
267 Piwik => {
268 en => {
269 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
270 },
271 de => {
272 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
273 }
Akroncddd1642015-06-10 21:31:53 +0200274 }
275};