blob: 623f7be43245131143c9324131d311b650144758 [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!',
33 in => 'in',
34 by => 'von',
Akron189b3592016-01-04 20:56:46 +010035 pwd => 'Passwort',
36 email => 'Email',
Akron2670f5b2017-05-31 17:54:07 +020037 userormail => 'Benutzername oder Email',
Akroncddd1642015-06-10 21:31:53 +020038 with => 'mit',
39 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020040 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
41 },
Akrond1741ae2017-11-29 09:58:53 +010042 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Akroncddd1642015-06-10 21:31:53 +020043 faq => 'Häufige Fragen',
44 tutorial => 'Einführung',
Akronf4a7cf42018-01-09 15:58:45 +010045 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020046 pubOn => 'veröffentlicht am',
47 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010048 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020049 notFound => '404 - Seite nicht gefunden',
50 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
51 underConstruction => 'In Vorbereitung!',
52 korap => {
53 -short => 'KorAP',
54 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
55 overview => 'KorAP - Übersicht',
Akrona17bc5b2018-10-05 13:35:01 +020056 keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Institut für Deutsche Sprache',
Akroncddd1642015-06-10 21:31:53 +020057 },
Akronafeca252018-05-23 15:54:28 +020058 privacy => 'Datenschutz',
59 imprint => 'Impressum',
Akrone5ef4e02017-04-19 17:07:52 +020060 Auth => {
61 loginSuccess => 'Anmeldung erfolgreich',
62 loginFail => 'Anmeldung fehlgeschlagen',
Akronbc213c02017-04-20 16:45:55 +020063 logoutSuccess => 'Abmeldung erfolgreich',
Akron15158e02018-03-19 12:42:46 +010064 logoutFail => 'Abmeldung fehlgeschlagen',
Akron429aeda2018-03-19 16:02:29 +010065 csrfFail => 'Fehlerhafter CSRF Token',
66 openRedirectFail => 'Weiterleitungsfehler'
Akronccd71a42017-06-30 18:09:19 +020067 },
68 Template => {
Akronbd39a432017-09-20 13:57:13 +020069 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020070 doc => {
71 ql => {
72 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus'
Akron48567812017-09-01 16:49:04 +020073 },
74 api => {
75 'koralquery' => 'de/doc/api/koralquery'
76 },
77 data => {
78 'annotation' => 'de/doc/data/annotation'
79 },
80 korap => {
81 'kalamar' => 'de/doc/korap/kalamar',
82 'karang' => 'de/doc/korap/karang',
83 'koral' => 'de/doc/korap/koral',
84 'krill' => 'de/doc/korap/krill',
85 'kustvakt' => 'de/doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020086 }
87 }
Akron0dc10902017-09-01 18:00:16 +020088 },
89 Nav => {
90 'ql' => 'Anfragesprachen',
91 '#segments' => 'Einfache Segmente',
92 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +010093 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +020094 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
95 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +010096 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +020097 'regexp' => 'Reguläre Ausdrücke',
98 'data' => 'Daten',
99 'corpus' => 'Korpora',
100 'annotation' => 'Annotationen',
101 '#default-foundries' => 'Standard Foundries',
102 'faq' => 'Häufig gestellte Fragen'
Akroncddd1642015-06-10 21:31:53 +0200103 }
104 },
105 -en => {
Akron43a73092016-02-11 21:52:27 +0100106 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200107 numf => sub {
108 shift;
109 my %val = @_;
110 my $num = $val{number} or return 0;
111 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
112 return $num;
113 },
114 about => 'About KorAP',
115 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200116 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200117 register => 'Register',
118 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200119 go => 'Go!',
Akron1f0521b2018-08-28 13:01:24 +0200120 # TODO: use document.write() refering to vc.getName()!
121 searchjob => '»<%== $q %>« <% if (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>',
Akron656c5d92015-11-13 21:17:03 +0100122 searchtitle => 'KorAP: Find <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +0200123 searchplaceholder => 'Find ...',
124 in => 'in',
125 by => 'by',
Akron189b3592016-01-04 20:56:46 +0100126 pwd => 'Password',
127 email => 'Email',
Akron2670f5b2017-05-31 17:54:07 +0200128 userormail => 'Username or Email',
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',
135 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!',
Akroncddd1642015-06-10 21:31:53 +0200140 faq => 'F.A.Q.',
141 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',
149 keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, 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',
Akrone5ef4e02017-04-19 17:07:52 +0200160 Auth => {
161 loginSuccess => 'Login successful',
162 loginFail => 'Access denied',
Akronbc213c02017-04-20 16:45:55 +0200163 logoutSuccess => 'Logout successful',
Akron15158e02018-03-19 12:42:46 +0100164 logoutFail => 'Logout failed',
Akron429aeda2018-03-19 16:02:29 +0100165 csrfFail => 'Bad CSRF token',
166 openRedirectFail => 'Redirect failure'
Akronccd71a42017-06-30 18:09:19 +0200167 },
168 Template => {
Akronbd39a432017-09-20 13:57:13 +0200169 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200170 doc => {
171 ql => {
Akron0dc10902017-09-01 18:00:16 +0200172 'poliqarp-plus' => 'doc/ql/poliqarp-plus'
173 },
174 api => {
175 'koralquery' => 'doc/api/koralquery'
176 },
177 data => {
178 'annotation' => 'doc/data/annotation'
179 },
180 korap => {
181 'kalamar' => 'doc/korap/kalamar',
182 'karang' => 'doc/korap/karang',
183 'koral' => 'doc/korap/koral',
184 'krill' => 'doc/korap/krill',
185 'kustvakt' => 'doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200186 }
187 }
Akron0dc10902017-09-01 18:00:16 +0200188 },
189 Nav => {
190 'ql' => 'Query Languages',
191 '#segments' => 'Simple Segments',
192 '#complex' => 'Complex Segments',
193 '#spans' => 'Span Segments',
194 '#paradigmatic-operators' => 'Paradigmatic Operators',
195 '#syntagmatic-operators' => 'Syntagmatic Operators',
196 '#class-operators' => 'Class Operators',
197 'regexp' => 'Regular Expressions',
198 'data' => 'Data',
199 'corpus' => 'Corpora',
200 'annotation' => 'Annotations',
201 '#default-foundries' => 'Default Foundries',
202 'faq' => 'F.A.Q.'
Akroncddd1642015-06-10 21:31:53 +0200203 }
204 }
205};