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