blob: 41df1eb9363374cdba308420643cf3a212fc0ce3 [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',
87 'cosmas-2' => 'de/doc/ql/cosmas-2'
Akron48567812017-09-01 16:49:04 +020088 },
89 api => {
90 'koralquery' => 'de/doc/api/koralquery'
91 },
92 data => {
93 'annotation' => 'de/doc/data/annotation'
94 },
Marc Kupietzfcadda62021-09-08 09:06:25 +020095 development => {
96 'kalamar' => 'de/doc/development/kalamar',
97 'karang' => 'de/doc/development/karang',
98 'koral' => 'de/doc/development/koral',
99 'krill' => 'de/doc/development/krill',
100 'kustvakt' => 'de/doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200101 }
102 }
Akron0dc10902017-09-01 18:00:16 +0200103 },
104 Nav => {
105 'ql' => 'Anfragesprachen',
Helgeb4c098c2022-10-04 16:26:38 +0200106 '#queryterms' => 'Suchbegriffe',
107 '#logical-operators' => 'Logische Operatoren',
108 '#distance-operators' => 'Abstandsoperatoren',
109 '#annotation-operators' => 'Annotationsoperatoren',
110 '#combination-operators'=> 'Kombinationsoperatoren',
111 '#area-operators' => 'Textbereich-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200112 '#segments' => 'Einfache Segmente',
113 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +0100114 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +0200115 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
116 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +0100117 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200118 'regexp' => 'Reguläre Ausdrücke',
Marc Kupietz4689e792021-09-07 23:29:51 +0200119 'data' => 'Korpusdaten',
Akron0dc10902017-09-01 18:00:16 +0200120 'corpus' => 'Korpora',
121 'annotation' => 'Annotationen',
122 '#default-foundries' => 'Standard Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200123 'development' => 'Entwicklung',
Akron459bf582023-11-03 10:17:11 +0100124 'faq' => 'FAQ',
Akron397552c2023-09-18 12:13:33 +0200125 },
126 QL => {
127 cqp => 'CQP (neu)'
Akroncddd1642015-06-10 21:31:53 +0200128 }
129 },
130 -en => {
Akron43a73092016-02-11 21:52:27 +0100131 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200132 numf => sub {
133 shift;
134 my %val = @_;
135 my $num = $val{number} or return 0;
136 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
137 return $num;
138 },
Akron459bf582023-11-03 10:17:11 +0100139 numo => sub {
140 shift;
141 my %val = @_;
142 my $day = $val{day} or return '';
143 if ($day > 3) {
144 return $day . 'th';
145 } elsif ($day == 3) {
146 return '3rd';
147 } elsif ($day == 2) {
148 return '2nd';
149 };
150 return '1st';
151 },
Akroncddd1642015-06-10 21:31:53 +0200152 about => 'About KorAP',
153 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200154 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200155 register => 'Register',
156 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200157 go => 'Go!',
Akron88614332024-04-15 12:16:12 +0200158 news => 'News',
Akron1f0521b2018-08-28 13:01:24 +0200159 # TODO: use document.write() refering to vc.getName()!
160 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akronc4177492023-11-29 08:35:37 +0100161 searchtitle => '<%= loc("korap_label") %>: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200162 searchplaceholder => 'Find ...',
163 in => 'in',
164 by => 'by',
Akron22b008a2024-06-26 17:06:05 +0200165 page => {
166 -sg => 'p.',
167 pl => 'pp.',
168 },
Akron189b3592016-01-04 20:56:46 +0100169 pwd => 'Password',
170 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100171 username => 'Username',
Akron9f2ad342022-05-04 16:16:40 +0200172 upload => 'Upload',
Akron9fa7cc52022-05-12 11:17:20 +0200173 userormail => 'Username or Email',
Akroncddd1642015-06-10 21:31:53 +0200174 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100175 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200176 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200177 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100178 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200179 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200180 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200181 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200182 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200183 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200184 desc => 'Just show the first matches in arbitrary order'
185 },
Akrond1741ae2017-11-29 09:58:53 +0100186 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200187 faq => 'FAQ',
Akron459bf582023-11-03 10:17:11 +0100188 'oclock' => 'o\'clock',
Akroncddd1642015-06-10 21:31:53 +0200189 underConstruction => 'Under Construction!',
Helge2e434be2023-02-01 16:47:16 +0100190 tutorial => 'Help and Documentation',
Akroncddd1642015-06-10 21:31:53 +0200191 korap => {
192 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +0100193 label => '<%= loc "korap_short" %><% if (loc("title_addon")) { %>-<%= loc("title_addon") %><% } %>',
194 desc => '<%= loc "korap_label" %> - Corpus Analysis Platform',
195 overview => '<%= loc "korap_label" %> - Overview',
Akrona17bc5b2018-10-05 13:35:01 +0200196 region => 'DE-BW',
197 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100198 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200199 },
200 QL => {
201 poliqarp => 'Poliqarp',
202 cosmas2 => 'Cosmas II',
203 annis => 'Annis QL',
Akron397552c2023-09-18 12:13:33 +0200204 cqp => 'CQP (new)',
Akronef351fa2017-11-22 19:44:50 +0100205 cql => 'CQL v1.2',
206 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200207 },
Akronafeca252018-05-23 15:54:28 +0200208 privacy => 'Privacy',
209 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100210 settings => 'Settings',
Akron459bf582023-11-03 10:17:11 +0100211 maintenanceWork => {
212 time => 'Maintenance',
213 desc => 'Due to maintenance work the service will be interrupted.',
214 },
Akronccd71a42017-06-30 18:09:19 +0200215 Template => {
Akronbd39a432017-09-20 13:57:13 +0200216 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200217 doc => {
218 ql => {
Akronb9ca92b2024-03-14 10:20:18 +0100219 '.' => 'doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +0200220 'poliqarp-plus' => 'doc/ql/poliqarp-plus',
221 'cosmas-2' => 'doc/ql/cosmas-2'
Akron0dc10902017-09-01 18:00:16 +0200222 },
223 api => {
224 'koralquery' => 'doc/api/koralquery'
225 },
226 data => {
227 'annotation' => 'doc/data/annotation'
228 },
Akrondd5ab892021-09-08 12:46:08 +0200229 development => {
Marc Kupietzfcadda62021-09-08 09:06:25 +0200230 'kalamar' => 'doc/development/kalamar',
231 'karang' => 'doc/development/karang',
232 'koral' => 'doc/development/koral',
233 'krill' => 'doc/development/krill',
234 'kustvakt' => 'doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200235 }
236 }
Akron0dc10902017-09-01 18:00:16 +0200237 },
238 Nav => {
239 'ql' => 'Query Languages',
Helgeb4c098c2022-10-04 16:26:38 +0200240 '#queryterms' => 'Query Terms',
241 '#logical-operators' => 'Logical Operators',
242 '#distance-operators' => 'Distance Operators',
243 '#annotation-operators' => 'Annotation Operators',
244 '#combination-operators'=> 'Combination Operators',
245 '#area-operators' => 'Area Operators',
Akron0dc10902017-09-01 18:00:16 +0200246 '#segments' => 'Simple Segments',
247 '#complex' => 'Complex Segments',
248 '#spans' => 'Span Segments',
249 '#paradigmatic-operators' => 'Paradigmatic Operators',
250 '#syntagmatic-operators' => 'Syntagmatic Operators',
251 '#class-operators' => 'Class Operators',
252 'regexp' => 'Regular Expressions',
Marc Kupietz4689e792021-09-07 23:29:51 +0200253 'data' => 'Corpus Data',
Akron0dc10902017-09-01 18:00:16 +0200254 'corpus' => 'Corpora',
255 'annotation' => 'Annotations',
256 '#default-foundries' => 'Default Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200257 'development' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200258 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200259 }
Akron4c33c622018-11-12 13:43:27 +0100260 },
261 Piwik => {
262 en => {
263 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
264 },
265 de => {
266 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
267 }
Akroncddd1642015-06-10 21:31:53 +0200268 }
269};