blob: eb648c4655dfbef7eeab21a0eac549649ea4a721 [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',
88 'regexp' => 'de/doc/ql/regexp'
Akron48567812017-09-01 16:49:04 +020089 },
90 api => {
91 'koralquery' => 'de/doc/api/koralquery'
92 },
93 data => {
94 'annotation' => 'de/doc/data/annotation'
95 },
Marc Kupietzfcadda62021-09-08 09:06:25 +020096 development => {
97 'kalamar' => 'de/doc/development/kalamar',
98 'karang' => 'de/doc/development/karang',
99 'koral' => 'de/doc/development/koral',
100 'krill' => 'de/doc/development/krill',
101 'kustvakt' => 'de/doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200102 }
103 }
Akron0dc10902017-09-01 18:00:16 +0200104 },
105 Nav => {
106 'ql' => 'Anfragesprachen',
Helgeb4c098c2022-10-04 16:26:38 +0200107 '#queryterms' => 'Suchbegriffe',
108 '#logical-operators' => 'Logische Operatoren',
109 '#distance-operators' => 'Abstandsoperatoren',
110 '#annotation-operators' => 'Annotationsoperatoren',
111 '#combination-operators'=> 'Kombinationsoperatoren',
112 '#area-operators' => 'Textbereich-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200113 '#segments' => 'Einfache Segmente',
114 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +0100115 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +0200116 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
117 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +0100118 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +0200119 'regexp' => 'Reguläre Ausdrücke',
Marc Kupietz4689e792021-09-07 23:29:51 +0200120 'data' => 'Korpusdaten',
Akron0dc10902017-09-01 18:00:16 +0200121 'corpus' => 'Korpora',
122 'annotation' => 'Annotationen',
123 '#default-foundries' => 'Standard Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200124 'development' => 'Entwicklung',
Akron459bf582023-11-03 10:17:11 +0100125 'faq' => 'FAQ',
Akron397552c2023-09-18 12:13:33 +0200126 },
127 QL => {
128 cqp => 'CQP (neu)'
Akroncddd1642015-06-10 21:31:53 +0200129 }
130 },
131 -en => {
Akron43a73092016-02-11 21:52:27 +0100132 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200133 numf => sub {
134 shift;
135 my %val = @_;
136 my $num = $val{number} or return 0;
137 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
138 return $num;
139 },
Akron459bf582023-11-03 10:17:11 +0100140 numo => sub {
141 shift;
142 my %val = @_;
143 my $day = $val{day} or return '';
144 if ($day > 3) {
145 return $day . 'th';
146 } elsif ($day == 3) {
147 return '3rd';
148 } elsif ($day == 2) {
149 return '2nd';
150 };
151 return '1st';
152 },
Akroncddd1642015-06-10 21:31:53 +0200153 about => 'About KorAP',
154 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200155 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200156 register => 'Register',
157 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200158 go => 'Go!',
Akron88614332024-04-15 12:16:12 +0200159 news => 'News',
Akron1f0521b2018-08-28 13:01:24 +0200160 # TODO: use document.write() refering to vc.getName()!
161 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akronc4177492023-11-29 08:35:37 +0100162 searchtitle => '<%= loc("korap_label") %>: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200163 searchplaceholder => 'Find ...',
164 in => 'in',
165 by => 'by',
Akron22b008a2024-06-26 17:06:05 +0200166 page => {
167 -sg => 'p.',
168 pl => 'pp.',
169 },
Akron189b3592016-01-04 20:56:46 +0100170 pwd => 'Password',
171 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100172 username => 'Username',
Akron9f2ad342022-05-04 16:16:40 +0200173 upload => 'Upload',
Akron9fa7cc52022-05-12 11:17:20 +0200174 userormail => 'Username or Email',
Akroncddd1642015-06-10 21:31:53 +0200175 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100176 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200177 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200178 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100179 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200180 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200181 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200182 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200183 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200184 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200185 desc => 'Just show the first matches in arbitrary order'
186 },
Akrond1741ae2017-11-29 09:58:53 +0100187 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200188 faq => 'FAQ',
Akron459bf582023-11-03 10:17:11 +0100189 'oclock' => 'o\'clock',
Akroncddd1642015-06-10 21:31:53 +0200190 underConstruction => 'Under Construction!',
Helge2e434be2023-02-01 16:47:16 +0100191 tutorial => 'Help and Documentation',
Akroncddd1642015-06-10 21:31:53 +0200192 korap => {
193 -short => 'KorAP',
Akronc4177492023-11-29 08:35:37 +0100194 label => '<%= loc "korap_short" %><% if (loc("title_addon")) { %>-<%= loc("title_addon") %><% } %>',
195 desc => '<%= loc "korap_label" %> - Corpus Analysis Platform',
196 overview => '<%= loc "korap_label" %> - Overview',
Akrona17bc5b2018-10-05 13:35:01 +0200197 region => 'DE-BW',
198 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100199 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200200 },
201 QL => {
202 poliqarp => 'Poliqarp',
203 cosmas2 => 'Cosmas II',
204 annis => 'Annis QL',
Akron397552c2023-09-18 12:13:33 +0200205 cqp => 'CQP (new)',
Akronef351fa2017-11-22 19:44:50 +0100206 cql => 'CQL v1.2',
207 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200208 },
Akronafeca252018-05-23 15:54:28 +0200209 privacy => 'Privacy',
210 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100211 settings => 'Settings',
Akron459bf582023-11-03 10:17:11 +0100212 maintenanceWork => {
213 time => 'Maintenance',
214 desc => 'Due to maintenance work the service will be interrupted.',
215 },
Akronccd71a42017-06-30 18:09:19 +0200216 Template => {
Akronbd39a432017-09-20 13:57:13 +0200217 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200218 doc => {
219 ql => {
Akronb9ca92b2024-03-14 10:20:18 +0100220 '.' => 'doc/ql',
Helgeb4c098c2022-10-04 16:26:38 +0200221 'poliqarp-plus' => 'doc/ql/poliqarp-plus',
Rebecca Wilmc81e10d2024-08-29 15:48:14 +0200222 'cosmas-2' => 'doc/ql/cosmas-2',
223 'regexp' => 'doc/ql/regexp'
Akron0dc10902017-09-01 18:00:16 +0200224 },
225 api => {
226 'koralquery' => 'doc/api/koralquery'
227 },
228 data => {
229 'annotation' => 'doc/data/annotation'
230 },
Akrondd5ab892021-09-08 12:46:08 +0200231 development => {
Marc Kupietzfcadda62021-09-08 09:06:25 +0200232 'kalamar' => 'doc/development/kalamar',
233 'karang' => 'doc/development/karang',
234 'koral' => 'doc/development/koral',
235 'krill' => 'doc/development/krill',
236 'kustvakt' => 'doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200237 }
238 }
Akron0dc10902017-09-01 18:00:16 +0200239 },
240 Nav => {
241 'ql' => 'Query Languages',
Helgeb4c098c2022-10-04 16:26:38 +0200242 '#queryterms' => 'Query Terms',
243 '#logical-operators' => 'Logical Operators',
244 '#distance-operators' => 'Distance Operators',
245 '#annotation-operators' => 'Annotation Operators',
246 '#combination-operators'=> 'Combination Operators',
247 '#area-operators' => 'Area Operators',
Akron0dc10902017-09-01 18:00:16 +0200248 '#segments' => 'Simple Segments',
249 '#complex' => 'Complex Segments',
250 '#spans' => 'Span Segments',
251 '#paradigmatic-operators' => 'Paradigmatic Operators',
252 '#syntagmatic-operators' => 'Syntagmatic Operators',
253 '#class-operators' => 'Class Operators',
254 'regexp' => 'Regular Expressions',
Marc Kupietz4689e792021-09-07 23:29:51 +0200255 'data' => 'Corpus Data',
Akron0dc10902017-09-01 18:00:16 +0200256 'corpus' => 'Corpora',
257 'annotation' => 'Annotations',
258 '#default-foundries' => 'Default Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200259 'development' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200260 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200261 }
Akron4c33c622018-11-12 13:43:27 +0100262 },
263 Piwik => {
264 en => {
265 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
266 },
267 de => {
268 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
269 }
Akroncddd1642015-06-10 21:31:53 +0200270 }
271};