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 | 4823ab5 | 2017-04-27 17:10:12 +0200 | [diff] [blame] | 28 | searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>« <% } elsif (param("collection")) { %>im definierten Korpus <% } %>mit <%== loc("QL_" . $ql, "unbekannter Anfragesprache") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 29 | searchtitle => 'KorAP: Finde <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 30 | searchplaceholder => 'Finde ...', |
| 31 | go => 'Los!', |
| 32 | in => 'in', |
| 33 | by => 'von', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 34 | pwd => 'Passwort', |
| 35 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 36 | userormail => 'Benutzername oder Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 37 | with => 'mit', |
| 38 | glimpse => { |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 39 | desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge' |
| 40 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 41 | activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 42 | faq => 'Häufige Fragen', |
| 43 | tutorial => 'Einführung', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 44 | notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 45 | pubOn => 'veröffentlicht am', |
| 46 | matchCount => 'Treffer', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 47 | noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 48 | notFound => '404 - Seite nicht gefunden', |
| 49 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js', |
| 50 | underConstruction => 'In Vorbereitung!', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 51 | loginExplanation => 'Anmeldung mit einem registrierten Cosmas-II-Konto', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 52 | korap => { |
| 53 | -short => 'KorAP', |
| 54 | desc => 'KorAP - Korpusanalyseplattform der nächsten Generation', |
| 55 | overview => 'KorAP - Übersicht', |
| 56 | }, |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 57 | Auth => { |
| 58 | loginSuccess => 'Anmeldung erfolgreich', |
| 59 | loginFail => 'Anmeldung fehlgeschlagen', |
Akron | bc213c0 | 2017-04-20 16:45:55 +0200 | [diff] [blame] | 60 | logoutSuccess => 'Abmeldung erfolgreich', |
| 61 | logoutFail => 'Abmeldung fehlgeschlagen' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 62 | }, |
| 63 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 64 | intro => 'de/intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 65 | doc => { |
| 66 | ql => { |
| 67 | 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus' |
Akron | 4856781 | 2017-09-01 16:49:04 +0200 | [diff] [blame] | 68 | }, |
| 69 | api => { |
| 70 | 'koralquery' => 'de/doc/api/koralquery' |
| 71 | }, |
| 72 | data => { |
| 73 | 'annotation' => 'de/doc/data/annotation' |
| 74 | }, |
| 75 | korap => { |
| 76 | 'kalamar' => 'de/doc/korap/kalamar', |
| 77 | 'karang' => 'de/doc/korap/karang', |
| 78 | 'koral' => 'de/doc/korap/koral', |
| 79 | 'krill' => 'de/doc/korap/krill', |
| 80 | 'kustvakt' => 'de/doc/korap/kustvakt' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 81 | } |
| 82 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 83 | }, |
| 84 | Nav => { |
| 85 | 'ql' => 'Anfragesprachen', |
| 86 | '#segments' => 'Einfache Segmente', |
| 87 | '#complex' => 'Komplexe Segmente', |
| 88 | '#spans' => 'Span Segmente', |
| 89 | '#paradigmatic-operators' => 'Paradigmatische Operatoren', |
| 90 | '#syntagmatic-operators' => 'Syntagmatische Operatoren', |
| 91 | '#class-operators' => 'Klassen Operatoren', |
| 92 | 'regexp' => 'Reguläre Ausdrücke', |
| 93 | 'data' => 'Daten', |
| 94 | 'corpus' => 'Korpora', |
| 95 | 'annotation' => 'Annotationen', |
| 96 | '#default-foundries' => 'Standard Foundries', |
| 97 | 'faq' => 'Häufig gestellte Fragen' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 98 | } |
| 99 | }, |
| 100 | -en => { |
Akron | 43a7309 | 2016-02-11 21:52:27 +0100 | [diff] [blame] | 101 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 102 | numf => sub { |
| 103 | shift; |
| 104 | my %val = @_; |
| 105 | my $num = $val{number} or return 0; |
| 106 | $num =~ s/$THOUSAND_SEP_RE/$1\,/g; |
| 107 | return $num; |
| 108 | }, |
| 109 | about => 'About KorAP', |
| 110 | login => 'Login', |
Akron | a8f56b2 | 2017-09-06 16:01:28 +0200 | [diff] [blame] | 111 | logout => 'Logout', |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 112 | register => 'Register', |
| 113 | pwdforgotten => 'Password forgotten?', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 114 | go => 'Go!', |
Akron | 4823ab5 | 2017-04-27 17:10:12 +0200 | [diff] [blame] | 115 | searchjob => '»<%== $q %>« <% if (param("collection-name")) { %>in »<%== param("collection-name") %>« <% } elsif (param("collection")) { %>in the defined corpus <% } %>with <%== loc("QL_". $ql, "unknown query language") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 116 | searchtitle => 'KorAP: Find <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 117 | searchplaceholder => 'Find ...', |
| 118 | in => 'in', |
| 119 | by => 'by', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 120 | pwd => 'Password', |
| 121 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 122 | userormail => 'Username or Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 123 | with => 'with', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 124 | notAvailInCorpus => 'Not available in the current corpus', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 125 | pubOn => 'published on', |
Akron | cf29b22 | 2016-10-12 16:53:32 +0200 | [diff] [blame] | 126 | matchCount => '<%= quant($found, "match", "matches") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 127 | noMatches => 'There were no matches found for <%== loc("searchjob") %>.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 128 | notFound => '404 - Page not found', |
| 129 | glimpse => { |
Akron | a18ee1a | 2017-07-06 16:40:26 +0200 | [diff] [blame] | 130 | -short => 'Glimpse', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 131 | desc => 'Just show the first matches in arbitrary order' |
| 132 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 133 | activateJS => 'To make use of all features, please activate JavaScript!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 134 | faq => 'F.A.Q.', |
| 135 | underConstruction => 'Under Construction!', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 136 | loginExplanation => 'Login with a registered Cosmas-II account', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 137 | tutorial => 'Tutorial', |
| 138 | korap => { |
| 139 | -short => 'KorAP', |
| 140 | desc => 'KorAP - Corpus Analysis Platform', |
| 141 | overview => 'KorAP - Overview' |
Akron | 7716f01 | 2015-07-01 20:38:32 +0200 | [diff] [blame] | 142 | }, |
| 143 | QL => { |
| 144 | poliqarp => 'Poliqarp', |
| 145 | cosmas2 => 'Cosmas II', |
| 146 | annis => 'Annis QL', |
Akron | ef351fa | 2017-11-22 19:44:50 +0100 | [diff] [blame] | 147 | cql => 'CQL v1.2', |
| 148 | fcsql => 'FCSQL' |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 149 | }, |
| 150 | Auth => { |
| 151 | loginSuccess => 'Login successful', |
| 152 | loginFail => 'Access denied', |
Akron | bc213c0 | 2017-04-20 16:45:55 +0200 | [diff] [blame] | 153 | logoutSuccess => 'Logout successful', |
| 154 | logoutFail => 'Logout failed' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 155 | }, |
| 156 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 157 | intro => 'intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 158 | doc => { |
| 159 | ql => { |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 160 | 'poliqarp-plus' => 'doc/ql/poliqarp-plus' |
| 161 | }, |
| 162 | api => { |
| 163 | 'koralquery' => 'doc/api/koralquery' |
| 164 | }, |
| 165 | data => { |
| 166 | 'annotation' => 'doc/data/annotation' |
| 167 | }, |
| 168 | korap => { |
| 169 | 'kalamar' => 'doc/korap/kalamar', |
| 170 | 'karang' => 'doc/korap/karang', |
| 171 | 'koral' => 'doc/korap/koral', |
| 172 | 'krill' => 'doc/korap/krill', |
| 173 | 'kustvakt' => 'doc/korap/kustvakt' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 174 | } |
| 175 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 176 | }, |
| 177 | Nav => { |
| 178 | 'ql' => 'Query Languages', |
| 179 | '#segments' => 'Simple Segments', |
| 180 | '#complex' => 'Complex Segments', |
| 181 | '#spans' => 'Span Segments', |
| 182 | '#paradigmatic-operators' => 'Paradigmatic Operators', |
| 183 | '#syntagmatic-operators' => 'Syntagmatic Operators', |
| 184 | '#class-operators' => 'Class Operators', |
| 185 | 'regexp' => 'Regular Expressions', |
| 186 | 'data' => 'Data', |
| 187 | 'corpus' => 'Corpora', |
| 188 | 'annotation' => 'Annotations', |
| 189 | '#default-foundries' => 'Default Foundries', |
| 190 | 'faq' => 'F.A.Q.' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 191 | } |
| 192 | } |
| 193 | }; |