blob: 82295668ff13b08915ba067be7165aeacf433eb0 [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?',
Akron4823ab52017-04-27 17:10:12 +020028 searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>« <% } elsif (param("collection")) { %>im definierten Korpus <% } %>mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>',
Akron656c5d92015-11-13 21:17:03 +010029 searchtitle => 'KorAP: Finde <%== loc("searchjob") %>',
Akroncddd1642015-06-10 21:31:53 +020030 searchplaceholder => 'Finde ...',
31 go => 'Los!',
32 in => 'in',
33 by => 'von',
Akron189b3592016-01-04 20:56:46 +010034 pwd => 'Passwort',
35 email => 'Email',
Akron2670f5b2017-05-31 17:54:07 +020036 userormail => 'Benutzername oder Email',
Akroncddd1642015-06-10 21:31:53 +020037 with => 'mit',
38 glimpse => {
Akroncddd1642015-06-10 21:31:53 +020039 desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge'
40 },
Akrond1741ae2017-11-29 09:58:53 +010041 activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!',
Akroncddd1642015-06-10 21:31:53 +020042 faq => 'Häufige Fragen',
43 tutorial => 'Einführung',
Akronf4a7cf42018-01-09 15:58:45 +010044 notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar',
Akroncddd1642015-06-10 21:31:53 +020045 pubOn => 'veröffentlicht am',
46 matchCount => 'Treffer',
Akron656c5d92015-11-13 21:17:03 +010047 noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.',
Akroncddd1642015-06-10 21:31:53 +020048 notFound => '404 - Seite nicht gefunden',
49 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js',
50 underConstruction => 'In Vorbereitung!',
Akron28cab562018-04-23 13:52:22 +020051 loginExplanation => 'Anmeldung mit einem registrierten <%= link_to "Cosmas-II" => "https://www.ids-mannheim.de/cosmas2/projekt/registrierung/", style => "white-space: nowrap" %>-Konto',
Akroncddd1642015-06-10 21:31:53 +020052 korap => {
53 -short => 'KorAP',
54 desc => 'KorAP - Korpusanalyseplattform der nächsten Generation',
55 overview => 'KorAP - Übersicht',
56 },
Akronafeca252018-05-23 15:54:28 +020057 privacy => 'Datenschutz',
58 imprint => 'Impressum',
Akrone5ef4e02017-04-19 17:07:52 +020059 Auth => {
60 loginSuccess => 'Anmeldung erfolgreich',
61 loginFail => 'Anmeldung fehlgeschlagen',
Akronbc213c02017-04-20 16:45:55 +020062 logoutSuccess => 'Abmeldung erfolgreich',
Akron15158e02018-03-19 12:42:46 +010063 logoutFail => 'Abmeldung fehlgeschlagen',
Akron429aeda2018-03-19 16:02:29 +010064 csrfFail => 'Fehlerhafter CSRF Token',
65 openRedirectFail => 'Weiterleitungsfehler'
Akronccd71a42017-06-30 18:09:19 +020066 },
67 Template => {
Akronbd39a432017-09-20 13:57:13 +020068 intro => 'de/intro',
Akronccd71a42017-06-30 18:09:19 +020069 doc => {
70 ql => {
71 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus'
Akron48567812017-09-01 16:49:04 +020072 },
73 api => {
74 'koralquery' => 'de/doc/api/koralquery'
75 },
76 data => {
77 'annotation' => 'de/doc/data/annotation'
78 },
79 korap => {
80 'kalamar' => 'de/doc/korap/kalamar',
81 'karang' => 'de/doc/korap/karang',
82 'koral' => 'de/doc/korap/koral',
83 'krill' => 'de/doc/korap/krill',
84 'kustvakt' => 'de/doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +020085 }
86 }
Akron0dc10902017-09-01 18:00:16 +020087 },
88 Nav => {
89 'ql' => 'Anfragesprachen',
90 '#segments' => 'Einfache Segmente',
91 '#complex' => 'Komplexe Segmente',
Akronae24e162018-02-13 18:48:44 +010092 '#spans' => 'Span-Segmente',
Akron0dc10902017-09-01 18:00:16 +020093 '#paradigmatic-operators' => 'Paradigmatische Operatoren',
94 '#syntagmatic-operators' => 'Syntagmatische Operatoren',
Akronae24e162018-02-13 18:48:44 +010095 '#class-operators' => 'Klassen-Operatoren',
Akron0dc10902017-09-01 18:00:16 +020096 'regexp' => 'Reguläre Ausdrücke',
97 'data' => 'Daten',
98 'corpus' => 'Korpora',
99 'annotation' => 'Annotationen',
100 '#default-foundries' => 'Standard Foundries',
101 'faq' => 'Häufig gestellte Fragen'
Akroncddd1642015-06-10 21:31:53 +0200102 }
103 },
104 -en => {
Akron43a73092016-02-11 21:52:27 +0100105 jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js',
Akroncddd1642015-06-10 21:31:53 +0200106 numf => sub {
107 shift;
108 my %val = @_;
109 my $num = $val{number} or return 0;
110 $num =~ s/$THOUSAND_SEP_RE/$1\,/g;
111 return $num;
112 },
113 about => 'About KorAP',
114 login => 'Login',
Akrona8f56b22017-09-06 16:01:28 +0200115 logout => 'Logout',
Akrone8235be2016-06-27 11:02:18 +0200116 register => 'Register',
117 pwdforgotten => 'Password forgotten?',
Akroncddd1642015-06-10 21:31:53 +0200118 go => 'Go!',
Akron4823ab52017-04-27 17:10:12 +0200119 searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>« <% } elsif (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',
Akron2670f5b2017-05-31 17:54:07 +0200126 userormail => 'Username or Email',
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',
133 glimpse => {
Akrona18ee1a2017-07-06 16:40:26 +0200134 -short => 'Glimpse',
Akroncddd1642015-06-10 21:31:53 +0200135 desc => 'Just show the first matches in arbitrary order'
136 },
Akrond1741ae2017-11-29 09:58:53 +0100137 activateJS => 'To make use of all features, please activate JavaScript!',
Akroncddd1642015-06-10 21:31:53 +0200138 faq => 'F.A.Q.',
139 underConstruction => 'Under Construction!',
Akron28cab562018-04-23 13:52:22 +0200140 loginExplanation => 'Login with a registered <%= link_to "Cosmas-II" => "https://www.ids-mannheim.de/cosmas2/projekt/registrierung/", style => "white-space: nowrap" %> account',
Akroncddd1642015-06-10 21:31:53 +0200141 tutorial => 'Tutorial',
142 korap => {
143 -short => 'KorAP',
144 desc => 'KorAP - Corpus Analysis Platform',
145 overview => 'KorAP - Overview'
Akron7716f012015-07-01 20:38:32 +0200146 },
147 QL => {
148 poliqarp => 'Poliqarp',
149 cosmas2 => 'Cosmas II',
150 annis => 'Annis QL',
Akronef351fa2017-11-22 19:44:50 +0100151 cql => 'CQL v1.2',
152 fcsql => 'FCSQL'
Akrone5ef4e02017-04-19 17:07:52 +0200153 },
Akronafeca252018-05-23 15:54:28 +0200154 privacy => 'Privacy',
155 imprint => 'Imprint',
Akrone5ef4e02017-04-19 17:07:52 +0200156 Auth => {
157 loginSuccess => 'Login successful',
158 loginFail => 'Access denied',
Akronbc213c02017-04-20 16:45:55 +0200159 logoutSuccess => 'Logout successful',
Akron15158e02018-03-19 12:42:46 +0100160 logoutFail => 'Logout failed',
Akron429aeda2018-03-19 16:02:29 +0100161 csrfFail => 'Bad CSRF token',
162 openRedirectFail => 'Redirect failure'
Akronccd71a42017-06-30 18:09:19 +0200163 },
164 Template => {
Akronbd39a432017-09-20 13:57:13 +0200165 intro => 'intro',
Akronccd71a42017-06-30 18:09:19 +0200166 doc => {
167 ql => {
Akron0dc10902017-09-01 18:00:16 +0200168 'poliqarp-plus' => 'doc/ql/poliqarp-plus'
169 },
170 api => {
171 'koralquery' => 'doc/api/koralquery'
172 },
173 data => {
174 'annotation' => 'doc/data/annotation'
175 },
176 korap => {
177 'kalamar' => 'doc/korap/kalamar',
178 'karang' => 'doc/korap/karang',
179 'koral' => 'doc/korap/koral',
180 'krill' => 'doc/korap/krill',
181 'kustvakt' => 'doc/korap/kustvakt'
Akronccd71a42017-06-30 18:09:19 +0200182 }
183 }
Akron0dc10902017-09-01 18:00:16 +0200184 },
185 Nav => {
186 'ql' => 'Query Languages',
187 '#segments' => 'Simple Segments',
188 '#complex' => 'Complex Segments',
189 '#spans' => 'Span Segments',
190 '#paradigmatic-operators' => 'Paradigmatic Operators',
191 '#syntagmatic-operators' => 'Syntagmatic Operators',
192 '#class-operators' => 'Class Operators',
193 'regexp' => 'Regular Expressions',
194 'data' => 'Data',
195 'corpus' => 'Corpora',
196 'annotation' => 'Annotations',
197 '#default-foundries' => 'Default Foundries',
198 'faq' => 'F.A.Q.'
Akroncddd1642015-06-10 21:31:53 +0200199 }
200 }
201};