blob: 6c51d2629a624f2aa9a351a7babbfc66e0182bf5 [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 },
23 about => 'Über KorAP',
24 login => 'Anmelden',
Akrone5ef4e02017-04-19 17:07:52 +020025 logout => 'Abmelden',
Akrone8235be2016-06-27 11:02:18 +020026 register => 'Registrieren',
27 pwdforgotten => 'Password vergessen?',
Akron1f0521b2018-08-28 13:01:24 +020028 # TODO: use document.write() refering to vc.getName()!
29 searchjob => '»<%== $q %>« <% if (param("collection")) { %>im definierten Korpus <% } %>mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
Akron656c5d92015-11-13 21:17:03 +010030 searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020031 searchplaceholder => 'Finde ...',
32 go => 'Los!',
Akron9dda34e2020-07-06 11:38:27 +020033 news => 'Neuigkeiten & Ankündigungen',
Akroncddd1642015-06-10 21:31:53 +020034 in => 'in',
35 by => 'von',
Akron189b3592016-01-04 20:56:46 +010036 pwd => 'Passwort',
37 email => 'Email',
Akrone208d302020-11-28 11:14:50 +010038 username => 'Benutzername',
Akron9f2ad342022-05-04 16:16:40 +020039 upload => 'Hochladen',
Akroncddd1642015-06-10 21:31:53 +020040 with => 'mit',
41 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020042 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
43 },
Akrond1741ae2017-11-29 09:58:53 +010044 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +020045 faq => 'FAQ',
Akroncddd1642015-06-10 21:31:53 +020046 tutorial => 'Einführung',
Akronf4a7cf42018-01-09 15:58:45 +010047 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020048 pubOn => 'veröffentlicht am',
49 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010050 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020051 notFound => '404 - Seite nicht gefunden',
Akron3c390c42020-03-30 09:06:21 +020052 notIssued => 'Die Aktion konnte nicht durchgeführt werden.',
Akron8ea84292018-10-24 13:41:52 +020053 backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!',
Akroncddd1642015-06-10 21:31:53 +020054 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
55 underConstruction => 'In Vorbereitung!',
56 korap => {
57 -short => 'KorAP',
58 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
59 overview => 'KorAP - Übersicht',
Akrona2d92de2019-02-27 15:51:07 +010060 keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache',
Akroncddd1642015-06-10 21:31:53 +020061 },
Akronafeca252018-05-23 15:54:28 +020062 privacy => 'Datenschutz',
63 imprint => 'Impressum',
Akronf7ec4442019-10-27 20:01:05 +010064 settings => 'Einstellungen',
Akronccd71a42017-06-30 18:09:19 +020065 Template => {
Akronbd39a432017-09-20 13:57:13 +020066 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020067 doc => {
68 ql => {
69 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus'
Akron48567812017-09-01 16:49:04 +020070 },
71 api => {
72 'koralquery' => 'de/doc/api/koralquery'
73 },
74 data => {
75 'annotation' => 'de/doc/data/annotation'
76 },
Marc Kupietzfcadda62021-09-08 09:06:25 +020077 development => {
78 'kalamar' => 'de/doc/development/kalamar',
79 'karang' => 'de/doc/development/karang',
80 'koral' => 'de/doc/development/koral',
81 'krill' => 'de/doc/development/krill',
82 'kustvakt' => 'de/doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020083 }
84 }
Akron0dc10902017-09-01 18:00:16 +020085 },
86 Nav => {
87 'ql' => 'Anfragesprachen',
88 '#segments' => 'Einfache Segmente',
89 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +010090 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +020091 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
92 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +010093 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +020094 'regexp' => 'Reguläre Ausdrücke',
Marc Kupietz4689e792021-09-07 23:29:51 +020095 'data' => 'Korpusdaten',
Akron0dc10902017-09-01 18:00:16 +020096 'corpus' => 'Korpora',
97 'annotation' => 'Annotationen',
98 '#default-foundries' => 'Standard Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +020099 'development' => 'Entwicklung',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200100 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200101 }
102 },
103 -en => {
Akron43a73092016-02-11 21:52:27 +0100104 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200105 numf => sub {
106 shift;
107 my %val = @_;
108 my $num = $val{number} or return 0;
109 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
110 return $num;
111 },
112 about => 'About KorAP',
113 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200114 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200115 register => 'Register',
116 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200117 go => 'Go!',
Akron9dda34e2020-07-06 11:38:27 +0200118 news => 'News & Announcements',
Akron1f0521b2018-08-28 13:01:24 +0200119 # TODO: use document.write() refering to vc.getName()!
120 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akron656c5d92015-11-13 21:17:03 +0100121 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200122 searchplaceholder => 'Find ...',
123 in => 'in',
124 by => 'by',
Akron189b3592016-01-04 20:56:46 +0100125 pwd => 'Password',
126 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100127 username => 'Username',
Akron9f2ad342022-05-04 16:16:40 +0200128 upload => 'Upload',
Akroncddd1642015-06-10 21:31:53 +0200129 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100130 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200131 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200132 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100133 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200134 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200135 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200136 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200137 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200138 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200139 desc => 'Just show the first matches in arbitrary order'
140 },
Akrond1741ae2017-11-29 09:58:53 +0100141 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200142 faq => 'FAQ',
Akroncddd1642015-06-10 21:31:53 +0200143 underConstruction => 'Under Construction!',
144 tutorial => 'Tutorial',
145 korap => {
146 -short => 'KorAP',
147 desc => 'KorAP - Corpus Analysis Platform',
Akrona17bc5b2018-10-05 13:35:01 +0200148 overview => 'KorAP - Overview',
149 region => 'DE-BW',
150 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100151 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200152 },
153 QL => {
154 poliqarp => 'Poliqarp',
155 cosmas2 => 'Cosmas II',
156 annis => 'Annis QL',
Akronef351fa2017-11-22 19:44:50 +0100157 cql => 'CQL v1.2',
158 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200159 },
Akronafeca252018-05-23 15:54:28 +0200160 privacy => 'Privacy',
161 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100162 settings => 'Settings',
Akronccd71a42017-06-30 18:09:19 +0200163 Template => {
Akronbd39a432017-09-20 13:57:13 +0200164 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200165 doc => {
166 ql => {
Akron0dc10902017-09-01 18:00:16 +0200167 'poliqarp-plus' => 'doc/ql/poliqarp-plus'
168 },
169 api => {
170 'koralquery' => 'doc/api/koralquery'
171 },
172 data => {
173 'annotation' => 'doc/data/annotation'
174 },
Akrondd5ab892021-09-08 12:46:08 +0200175 development => {
Marc Kupietzfcadda62021-09-08 09:06:25 +0200176 'kalamar' => 'doc/development/kalamar',
177 'karang' => 'doc/development/karang',
178 'koral' => 'doc/development/koral',
179 'krill' => 'doc/development/krill',
180 'kustvakt' => 'doc/development/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200181 }
182 }
Akron0dc10902017-09-01 18:00:16 +0200183 },
184 Nav => {
185 'ql' => 'Query Languages',
186 '#segments' => 'Simple Segments',
187 '#complex' => 'Complex Segments',
188 '#spans' => 'Span Segments',
189 '#paradigmatic-operators' => 'Paradigmatic Operators',
190 '#syntagmatic-operators' => 'Syntagmatic Operators',
191 '#class-operators' => 'Class Operators',
192 'regexp' => 'Regular Expressions',
Marc Kupietz4689e792021-09-07 23:29:51 +0200193 'data' => 'Corpus Data',
Akron0dc10902017-09-01 18:00:16 +0200194 'corpus' => 'Corpora',
195 'annotation' => 'Annotations',
196 '#default-foundries' => 'Default Foundries',
Marc Kupietzfcadda62021-09-08 09:06:25 +0200197 'development' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200198 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200199 }
Akron4c33c622018-11-12 13:43:27 +0100200 },
201 Piwik => {
202 en => {
203 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
204 },
205 de => {
206 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
207 }
Akroncddd1642015-06-10 21:31:53 +0200208 }
209};