Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 1 | # Based on Mojolicious::Plugin::Number::Commify |
| 2 | my $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', |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 25 | logout => 'Abmelden', |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 26 | register => 'Registrieren', |
| 27 | pwdforgotten => 'Password vergessen?', |
Akron | 1f0521b | 2018-08-28 13:01:24 +0200 | [diff] [blame] | 28 | # TODO: use document.write() refering to vc.getName()! |
| 29 | searchjob => '»<%== $q %>« <% if (param("collection")) { %>im definierten Korpus <% } %>mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 30 | searchtitle => 'KorAP: Finde <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 31 | searchplaceholder => 'Finde ...', |
| 32 | go => 'Los!', |
| 33 | in => 'in', |
| 34 | by => 'von', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 35 | pwd => 'Passwort', |
| 36 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 37 | userormail => 'Benutzername oder Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 38 | with => 'mit', |
| 39 | glimpse => { |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 40 | desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge' |
| 41 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 42 | activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 43 | faq => 'Häufige Fragen', |
| 44 | tutorial => 'Einführung', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 45 | notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 46 | pubOn => 'veröffentlicht am', |
| 47 | matchCount => 'Treffer', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 48 | noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 49 | 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', |
| 56 | }, |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 57 | privacy => 'Datenschutz', |
| 58 | imprint => 'Impressum', |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 59 | Auth => { |
| 60 | loginSuccess => 'Anmeldung erfolgreich', |
| 61 | loginFail => 'Anmeldung fehlgeschlagen', |
Akron | bc213c0 | 2017-04-20 16:45:55 +0200 | [diff] [blame] | 62 | logoutSuccess => 'Abmeldung erfolgreich', |
Akron | 15158e0 | 2018-03-19 12:42:46 +0100 | [diff] [blame] | 63 | logoutFail => 'Abmeldung fehlgeschlagen', |
Akron | 429aeda | 2018-03-19 16:02:29 +0100 | [diff] [blame] | 64 | csrfFail => 'Fehlerhafter CSRF Token', |
| 65 | openRedirectFail => 'Weiterleitungsfehler' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 66 | }, |
| 67 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 68 | intro => 'de/intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 69 | doc => { |
| 70 | ql => { |
| 71 | 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus' |
Akron | 4856781 | 2017-09-01 16:49:04 +0200 | [diff] [blame] | 72 | }, |
| 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' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 85 | } |
| 86 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 87 | }, |
| 88 | Nav => { |
| 89 | 'ql' => 'Anfragesprachen', |
| 90 | '#segments' => 'Einfache Segmente', |
| 91 | '#complex' => 'Komplexe Segmente', |
Akron | ae24e16 | 2018-02-13 18:48:44 +0100 | [diff] [blame] | 92 | '#spans' => 'Span-Segmente', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 93 | '#paradigmatic-operators' => 'Paradigmatische Operatoren', |
| 94 | '#syntagmatic-operators' => 'Syntagmatische Operatoren', |
Akron | ae24e16 | 2018-02-13 18:48:44 +0100 | [diff] [blame] | 95 | '#class-operators' => 'Klassen-Operatoren', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 96 | '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' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 102 | } |
| 103 | }, |
| 104 | -en => { |
Akron | 43a7309 | 2016-02-11 21:52:27 +0100 | [diff] [blame] | 105 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 106 | 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', |
Akron | a8f56b2 | 2017-09-06 16:01:28 +0200 | [diff] [blame] | 115 | logout => 'Logout', |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 116 | register => 'Register', |
| 117 | pwdforgotten => 'Password forgotten?', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 118 | go => 'Go!', |
Akron | 1f0521b | 2018-08-28 13:01:24 +0200 | [diff] [blame] | 119 | # 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") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 121 | searchtitle => 'KorAP: Find <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 122 | searchplaceholder => 'Find ...', |
| 123 | in => 'in', |
| 124 | by => 'by', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 125 | pwd => 'Password', |
| 126 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 127 | userormail => 'Username or Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 128 | with => 'with', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 129 | notAvailInCorpus => 'Not available in the current corpus', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 130 | pubOn => 'published on', |
Akron | cf29b22 | 2016-10-12 16:53:32 +0200 | [diff] [blame] | 131 | matchCount => '<%= quant($found, "match", "matches") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 132 | noMatches => 'There were no matches found for <%== loc("searchjob") %>.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 133 | notFound => '404 - Page not found', |
| 134 | glimpse => { |
Akron | a18ee1a | 2017-07-06 16:40:26 +0200 | [diff] [blame] | 135 | -short => 'Glimpse', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 136 | desc => 'Just show the first matches in arbitrary order' |
| 137 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 138 | activateJS => 'To make use of all features, please activate JavaScript!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 139 | faq => 'F.A.Q.', |
| 140 | underConstruction => 'Under Construction!', |
| 141 | tutorial => 'Tutorial', |
| 142 | korap => { |
| 143 | -short => 'KorAP', |
| 144 | desc => 'KorAP - Corpus Analysis Platform', |
| 145 | overview => 'KorAP - Overview' |
Akron | 7716f01 | 2015-07-01 20:38:32 +0200 | [diff] [blame] | 146 | }, |
| 147 | QL => { |
| 148 | poliqarp => 'Poliqarp', |
| 149 | cosmas2 => 'Cosmas II', |
| 150 | annis => 'Annis QL', |
Akron | ef351fa | 2017-11-22 19:44:50 +0100 | [diff] [blame] | 151 | cql => 'CQL v1.2', |
| 152 | fcsql => 'FCSQL' |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 153 | }, |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 154 | privacy => 'Privacy', |
| 155 | imprint => 'Imprint', |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 156 | Auth => { |
| 157 | loginSuccess => 'Login successful', |
| 158 | loginFail => 'Access denied', |
Akron | bc213c0 | 2017-04-20 16:45:55 +0200 | [diff] [blame] | 159 | logoutSuccess => 'Logout successful', |
Akron | 15158e0 | 2018-03-19 12:42:46 +0100 | [diff] [blame] | 160 | logoutFail => 'Logout failed', |
Akron | 429aeda | 2018-03-19 16:02:29 +0100 | [diff] [blame] | 161 | csrfFail => 'Bad CSRF token', |
| 162 | openRedirectFail => 'Redirect failure' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 163 | }, |
| 164 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 165 | intro => 'intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 166 | doc => { |
| 167 | ql => { |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 168 | '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' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 182 | } |
| 183 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 184 | }, |
| 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.' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 199 | } |
| 200 | } |
| 201 | }; |