blob: daf0698ef4050037b46e9e2a394a62b9ef569382 [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!',
Akron9dda34e2020-07-06 11:38:27 +020039 news => 'Neuigkeiten & Ankündigungen',
Akroncddd1642015-06-10 21:31:53 +020040 in => 'in',
41 by => 'von',
Akron189b3592016-01-04 20:56:46 +010042 pwd => 'Passwort',
43 email => 'Email',
Akrone208d302020-11-28 11:14:50 +010044 username => 'Benutzername',
Akron9f2ad342022-05-04 16:16:40 +020045 upload => 'Hochladen',
Akron9fa7cc52022-05-12 11:17:20 +020046 userormail => 'Benutzername oder Email',
Akroncddd1642015-06-10 21:31:53 +020047 with => 'mit',
48 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020049 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
50 },
Akrond1741ae2017-11-29 09:58:53 +010051 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +020052 faq => 'FAQ',
Helge2e434be2023-02-01 16:47:16 +010053 tutorial => 'Hilfe und Dokumentation',
Akronf4a7cf42018-01-09 15:58:45 +010054 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020055 pubOn => 'veröffentlicht am',
56 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010057 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020058 notFound => '404 - Seite nicht gefunden',
Akron3c390c42020-03-30 09:06:21 +020059 notIssued => 'Die Aktion konnte nicht durchgeführt werden.',
Akron8ea84292018-10-24 13:41:52 +020060 backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!',
Akroncddd1642015-06-10 21:31:53 +020061 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
62 underConstruction => 'In Vorbereitung!',
63 korap => {
64 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +010065 desc => '<%= loc "en_korap_label" %> - Korpusanalyseplattform der nächsten Generation',
66 overview => '<%= loc "en_korap_label" %> - Übersicht',
Akrona2d92de2019-02-27 15:51:07 +010067 keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache',
Akroncddd1642015-06-10 21:31:53 +020068 },
Akronafeca252018-05-23 15:54:28 +020069 privacy => 'Datenschutz',
70 imprint => 'Impressum',
Akronf7ec4442019-10-27 20:01:05 +010071 settings => 'Einstellungen',
Akron459bf582023-11-03 10:17:11 +010072 'oclock' => 'Uhr',
73 maintenanceWork => {
74 time => 'Wartungsfenster',
75 desc => 'Aufgrund von Wartungsarbeiten wird es zu Unterbrechungen des Dienstes kommen.',
76 },
Akronccd71a42017-06-30 18:09:19 +020077 Template => {
Akronbd39a432017-09-20 13:57:13 +020078 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020079 doc => {
80 ql => {
Akronb9ca92b2024-03-14 10:20:18 +010081 '.' => 'de/doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +020082 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus',
83 'cosmas-2' => 'de/doc/ql/cosmas-2'
Akron48567812017-09-01 16:49:04 +020084 },
85 api => {
86 'koralquery' => 'de/doc/api/koralquery'
87 },
88 data => {
89 'annotation' => 'de/doc/data/annotation'
90 },
Marc Kupietzfcadda62021-09-08 09:06:25 +020091 development => {
92 'kalamar' => 'de/doc/development/kalamar',
93 'karang' => 'de/doc/development/karang',
94 'koral' => 'de/doc/development/koral',
95 'krill' => 'de/doc/development/krill',
96 'kustvakt' => 'de/doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020097 }
98 }
Akron0dc10902017-09-01 18:00:16 +020099 },
100 Nav => {
101 'ql' => 'Anfragesprachen',
Helgeb4c098c2022-10-04 16:26:38 +0200102 '#queryterms' => 'Suchbegriffe',
103 '#logical-operators' => 'Logische Operatoren',
104 '#distance-operators' => 'Abstandsoperatoren',
105 '#annotation-operators' => 'Annotationsoperatoren',
106 '#combination-operators'=> 'Kombinationsoperatoren',
107 '#area-operators' => 'Textbereich-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200108 '#segments' => 'Einfache Segmente',
109 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +0100110 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +0200111 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
112 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +0100113 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200114 'regexp' => 'Reguläre Ausdrücke',
Marc Kupietz4689e792021-09-07 23:29:51 +0200115 'data' => 'Korpusdaten',
Akron0dc10902017-09-01 18:00:16 +0200116 'corpus' => 'Korpora',
117 'annotation' => 'Annotationen',
118 '#default-foundries' => 'Standard Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200119 'development' => 'Entwicklung',
Akron459bf582023-11-03 10:17:11 +0100120 'faq' => 'FAQ',
Akron397552c2023-09-18 12:13:33 +0200121 },
122 QL => {
123 cqp => 'CQP (neu)'
Akroncddd1642015-06-10 21:31:53 +0200124 }
125 },
126 -en => {
Akron43a73092016-02-11 21:52:27 +0100127 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200128 numf => sub {
129 shift;
130 my %val = @_;
131 my $num = $val{number} or return 0;
132 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
133 return $num;
134 },
Akron459bf582023-11-03 10:17:11 +0100135 numo => sub {
136 shift;
137 my %val = @_;
138 my $day = $val{day} or return '';
139 if ($day > 3) {
140 return $day . 'th';
141 } elsif ($day == 3) {
142 return '3rd';
143 } elsif ($day == 2) {
144 return '2nd';
145 };
146 return '1st';
147 },
Akroncddd1642015-06-10 21:31:53 +0200148 about => 'About KorAP',
149 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200150 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200151 register => 'Register',
152 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200153 go => 'Go!',
Akron9dda34e2020-07-06 11:38:27 +0200154 news => 'News & Announcements',
Akron1f0521b2018-08-28 13:01:24 +0200155 # TODO: use document.write() refering to vc.getName()!
156 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akronc4177492023-11-29 08:35:37 +0100157 searchtitle => '<%= loc("korap_label") %>: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200158 searchplaceholder => 'Find ...',
159 in => 'in',
160 by => 'by',
Akron189b3592016-01-04 20:56:46 +0100161 pwd => 'Password',
162 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100163 username => 'Username',
Akron9f2ad342022-05-04 16:16:40 +0200164 upload => 'Upload',
Akron9fa7cc52022-05-12 11:17:20 +0200165 userormail => 'Username or Email',
Akroncddd1642015-06-10 21:31:53 +0200166 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100167 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200168 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200169 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100170 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200171 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200172 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200173 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200174 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200175 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200176 desc => 'Just show the first matches in arbitrary order'
177 },
Akrond1741ae2017-11-29 09:58:53 +0100178 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200179 faq => 'FAQ',
Akron459bf582023-11-03 10:17:11 +0100180 'oclock' => 'o\'clock',
Akroncddd1642015-06-10 21:31:53 +0200181 underConstruction => 'Under Construction!',
Helge2e434be2023-02-01 16:47:16 +0100182 tutorial => 'Help and Documentation',
Akroncddd1642015-06-10 21:31:53 +0200183 korap => {
184 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +0100185 label => '<%= loc "korap_short" %><% if (loc("title_addon")) { %>-<%= loc("title_addon") %><% } %>',
186 desc => '<%= loc "korap_label" %> - Corpus Analysis Platform',
187 overview => '<%= loc "korap_label" %> - Overview',
Akrona17bc5b2018-10-05 13:35:01 +0200188 region => 'DE-BW',
189 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100190 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200191 },
192 QL => {
193 poliqarp => 'Poliqarp',
194 cosmas2 => 'Cosmas II',
195 annis => 'Annis QL',
Akron397552c2023-09-18 12:13:33 +0200196 cqp => 'CQP (new)',
Akronef351fa2017-11-22 19:44:50 +0100197 cql => 'CQL v1.2',
198 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200199 },
Akronafeca252018-05-23 15:54:28 +0200200 privacy => 'Privacy',
201 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100202 settings => 'Settings',
Akron459bf582023-11-03 10:17:11 +0100203 maintenanceWork => {
204 time => 'Maintenance',
205 desc => 'Due to maintenance work the service will be interrupted.',
206 },
Akronccd71a42017-06-30 18:09:19 +0200207 Template => {
Akronbd39a432017-09-20 13:57:13 +0200208 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200209 doc => {
210 ql => {
Akronb9ca92b2024-03-14 10:20:18 +0100211 '.' => 'doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +0200212 'poliqarp-plus' => 'doc/ql/poliqarp-plus',
213 'cosmas-2' => 'doc/ql/cosmas-2'
Akron0dc10902017-09-01 18:00:16 +0200214 },
215 api => {
216 'koralquery' => 'doc/api/koralquery'
217 },
218 data => {
219 'annotation' => 'doc/data/annotation'
220 },
Akrondd5ab892021-09-08 12:46:08 +0200221 development => {
Marc Kupietzfcadda62021-09-08 09:06:25 +0200222 'kalamar' => 'doc/development/kalamar',
223 'karang' => 'doc/development/karang',
224 'koral' => 'doc/development/koral',
225 'krill' => 'doc/development/krill',
226 'kustvakt' => 'doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200227 }
228 }
Akron0dc10902017-09-01 18:00:16 +0200229 },
230 Nav => {
231 'ql' => 'Query Languages',
Helgeb4c098c2022-10-04 16:26:38 +0200232 '#queryterms' => 'Query Terms',
233 '#logical-operators' => 'Logical Operators',
234 '#distance-operators' => 'Distance Operators',
235 '#annotation-operators' => 'Annotation Operators',
236 '#combination-operators'=> 'Combination Operators',
237 '#area-operators' => 'Area Operators',
Akron0dc10902017-09-01 18:00:16 +0200238 '#segments' => 'Simple Segments',
239 '#complex' => 'Complex Segments',
240 '#spans' => 'Span Segments',
241 '#paradigmatic-operators' => 'Paradigmatic Operators',
242 '#syntagmatic-operators' => 'Syntagmatic Operators',
243 '#class-operators' => 'Class Operators',
244 'regexp' => 'Regular Expressions',
Marc Kupietz4689e792021-09-07 23:29:51 +0200245 'data' => 'Corpus Data',
Akron0dc10902017-09-01 18:00:16 +0200246 'corpus' => 'Corpora',
247 'annotation' => 'Annotations',
248 '#default-foundries' => 'Default Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200249 'development' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200250 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200251 }
Akron4c33c622018-11-12 13:43:27 +0100252 },
253 Piwik => {
254 en => {
255 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
256 },
257 de => {
258 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
259 }
Akroncddd1642015-06-10 21:31:53 +0200260 }
261};