blob: af6c594f0085e4a137671d9d498545fd4f61b6c2 [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',
Akroncddd1642015-06-10 21:31:53 +020039 with => 'mit',
40 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020041 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
42 },
Akrond1741ae2017-11-29 09:58:53 +010043 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +020044 faq => 'FAQ',
Akroncddd1642015-06-10 21:31:53 +020045 tutorial => 'Einführung',
Akronf4a7cf42018-01-09 15:58:45 +010046 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020047 pubOn => 'veröffentlicht am',
48 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010049 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020050 notFound => '404 - Seite nicht gefunden',
Akron3c390c42020-03-30 09:06:21 +020051 notIssued => 'Die Aktion konnte nicht durchgeführt werden.',
Akron8ea84292018-10-24 13:41:52 +020052 backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!',
Akroncddd1642015-06-10 21:31:53 +020053 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
54 underConstruction => 'In Vorbereitung!',
55 korap => {
56 -short => 'KorAP',
57 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
58 overview => 'KorAP - Übersicht',
Akrona2d92de2019-02-27 15:51:07 +010059 keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache',
Akroncddd1642015-06-10 21:31:53 +020060 },
Akronafeca252018-05-23 15:54:28 +020061 privacy => 'Datenschutz',
62 imprint => 'Impressum',
Akronf7ec4442019-10-27 20:01:05 +010063 settings => 'Einstellungen',
Akronccd71a42017-06-30 18:09:19 +020064 Template => {
Akronbd39a432017-09-20 13:57:13 +020065 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020066 doc => {
67 ql => {
68 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus'
Akron48567812017-09-01 16:49:04 +020069 },
70 api => {
71 'koralquery' => 'de/doc/api/koralquery'
72 },
73 data => {
74 'annotation' => 'de/doc/data/annotation'
75 },
76 korap => {
77 'kalamar' => 'de/doc/korap/kalamar',
78 'karang' => 'de/doc/korap/karang',
79 'koral' => 'de/doc/korap/koral',
80 'krill' => 'de/doc/korap/krill',
81 'kustvakt' => 'de/doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020082 }
83 }
Akron0dc10902017-09-01 18:00:16 +020084 },
85 Nav => {
86 'ql' => 'Anfragesprachen',
87 '#segments' => 'Einfache Segmente',
88 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +010089 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +020090 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
91 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +010092 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +020093 'regexp' => 'Reguläre Ausdrücke',
94 'data' => 'Daten',
95 'corpus' => 'Korpora',
96 'annotation' => 'Annotationen',
97 '#default-foundries' => 'Standard Foundries',
hebastada903dd2021-07-20 15:58:48 +020098 'korap' => 'Entwicklung',
Marc Kupietzb82939b2021-09-07 22:45:38 +020099 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200100 }
101 },
102 -en => {
Akron43a73092016-02-11 21:52:27 +0100103 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200104 numf => sub {
105 shift;
106 my %val = @_;
107 my $num = $val{number} or return 0;
108 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
109 return $num;
110 },
111 about => 'About KorAP',
112 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200113 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200114 register => 'Register',
115 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200116 go => 'Go!',
Akron9dda34e2020-07-06 11:38:27 +0200117 news => 'News & Announcements',
Akron1f0521b2018-08-28 13:01:24 +0200118 # TODO: use document.write() refering to vc.getName()!
119 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akron656c5d92015-11-13 21:17:03 +0100120 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200121 searchplaceholder => 'Find ...',
122 in => 'in',
123 by => 'by',
Akron189b3592016-01-04 20:56:46 +0100124 pwd => 'Password',
125 email => 'Email',
Akrone208d302020-11-28 11:14:50 +0100126 username => 'Username',
Akroncddd1642015-06-10 21:31:53 +0200127 with => 'with',
Akronf4a7cf42018-01-09 15:58:45 +0100128 notAvailInCorpus => 'Not available in the current corpus',
Akroncddd1642015-06-10 21:31:53 +0200129 pubOn => 'published on',
Akroncf29b222016-10-12 16:53:32 +0200130 matchCount => '<%= quant($found, "match", "matches") %>',
Akron656c5d92015-11-13 21:17:03 +0100131 noMatches => 'There were no matches found for <%== loc("searchjob") %>.',
Akroncddd1642015-06-10 21:31:53 +0200132 notFound => '404 - Page not found',
Akron3c390c42020-03-30 09:06:21 +0200133 notIssued => 'Unable to perform the action.',
Akron8ea84292018-10-24 13:41:52 +0200134 backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!',
Akroncddd1642015-06-10 21:31:53 +0200135 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200136 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200137 desc => 'Just show the first matches in arbitrary order'
138 },
Akrond1741ae2017-11-29 09:58:53 +0100139 activateJS => 'To make use of all features, please activate JavaScript!',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200140 faq => 'FAQ',
Akroncddd1642015-06-10 21:31:53 +0200141 underConstruction => 'Under Construction!',
142 tutorial => 'Tutorial',
143 korap => {
144 -short => 'KorAP',
145 desc => 'KorAP - Corpus Analysis Platform',
Akrona17bc5b2018-10-05 13:35:01 +0200146 overview => 'KorAP - Overview',
147 region => 'DE-BW',
148 placename => 'Mannheim',
Akrona2d92de2019-02-27 15:51:07 +0100149 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language'
Akron7716f012015-07-01 20:38:32 +0200150 },
151 QL => {
152 poliqarp => 'Poliqarp',
153 cosmas2 => 'Cosmas II',
154 annis => 'Annis QL',
Akronef351fa2017-11-22 19:44:50 +0100155 cql => 'CQL v1.2',
156 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200157 },
Akronafeca252018-05-23 15:54:28 +0200158 privacy => 'Privacy',
159 imprint => 'Imprint',
Akronf7ec4442019-10-27 20:01:05 +0100160 settings => 'Settings',
Akronccd71a42017-06-30 18:09:19 +0200161 Template => {
Akronbd39a432017-09-20 13:57:13 +0200162 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200163 doc => {
164 ql => {
Akron0dc10902017-09-01 18:00:16 +0200165 'poliqarp-plus' => 'doc/ql/poliqarp-plus'
166 },
167 api => {
168 'koralquery' => 'doc/api/koralquery'
169 },
170 data => {
171 'annotation' => 'doc/data/annotation'
172 },
173 korap => {
174 'kalamar' => 'doc/korap/kalamar',
175 'karang' => 'doc/korap/karang',
176 'koral' => 'doc/korap/koral',
177 'krill' => 'doc/korap/krill',
178 'kustvakt' => 'doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200179 }
180 }
Akron0dc10902017-09-01 18:00:16 +0200181 },
182 Nav => {
183 'ql' => 'Query Languages',
184 '#segments' => 'Simple Segments',
185 '#complex' => 'Complex Segments',
186 '#spans' => 'Span Segments',
187 '#paradigmatic-operators' => 'Paradigmatic Operators',
188 '#syntagmatic-operators' => 'Syntagmatic Operators',
189 '#class-operators' => 'Class Operators',
190 'regexp' => 'Regular Expressions',
191 'data' => 'Data',
192 'corpus' => 'Corpora',
193 'annotation' => 'Annotations',
194 '#default-foundries' => 'Default Foundries',
hebastada903dd2021-07-20 15:58:48 +0200195 'korap' => 'Development',
Marc Kupietzb82939b2021-09-07 22:45:38 +0200196 'faq' => 'FAQ'
Akroncddd1642015-06-10 21:31:53 +0200197 }
Akron4c33c622018-11-12 13:43:27 +0100198 },
199 Piwik => {
200 en => {
201 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?'
202 },
203 de => {
204 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?'
205 }
Akroncddd1642015-06-10 21:31:53 +0200206 }
207};