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!', |
Akron | 9dda34e | 2020-07-06 11:38:27 +0200 | [diff] [blame] | 33 | news => 'Neuigkeiten & Ankündigungen', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 34 | in => 'in', |
| 35 | by => 'von', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 36 | pwd => 'Passwort', |
| 37 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 38 | userormail => 'Benutzername oder Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 39 | with => 'mit', |
| 40 | glimpse => { |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 41 | desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge' |
| 42 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 43 | activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 44 | faq => 'Häufige Fragen', |
| 45 | tutorial => 'Einführung', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 46 | notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 47 | pubOn => 'veröffentlicht am', |
| 48 | matchCount => 'Treffer', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 49 | noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 50 | notFound => '404 - Seite nicht gefunden', |
Akron | 3c390c4 | 2020-03-30 09:06:21 +0200 | [diff] [blame] | 51 | notIssued => 'Die Aktion konnte nicht durchgeführt werden.', |
Akron | 8ea8429 | 2018-10-24 13:41:52 +0200 | [diff] [blame] | 52 | backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 53 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js', |
| 54 | underConstruction => 'In Vorbereitung!', |
| 55 | korap => { |
| 56 | -short => 'KorAP', |
| 57 | desc => 'KorAP - Korpusanalyseplattform der nächsten Generation', |
| 58 | overview => 'KorAP - Übersicht', |
Akron | a2d92de | 2019-02-27 15:51:07 +0100 | [diff] [blame] | 59 | keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 60 | }, |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 61 | privacy => 'Datenschutz', |
| 62 | imprint => 'Impressum', |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 63 | settings => 'Einstellungen', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 64 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 65 | intro => 'de/intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 66 | doc => { |
| 67 | ql => { |
| 68 | 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus' |
Akron | 4856781 | 2017-09-01 16:49:04 +0200 | [diff] [blame] | 69 | }, |
| 70 | api => { |
| 71 | 'koralquery' => 'de/doc/api/koralquery' |
| 72 | }, |
| 73 | data => { |
| 74 | 'annotation' => 'de/doc/data/annotation' |
| 75 | }, |
| 76 | korap => { |
| 77 | 'kalamar' => 'de/doc/korap/kalamar', |
| 78 | 'karang' => 'de/doc/korap/karang', |
| 79 | 'koral' => 'de/doc/korap/koral', |
| 80 | 'krill' => 'de/doc/korap/krill', |
| 81 | 'kustvakt' => 'de/doc/korap/kustvakt' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 82 | } |
| 83 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 84 | }, |
| 85 | Nav => { |
| 86 | 'ql' => 'Anfragesprachen', |
| 87 | '#segments' => 'Einfache Segmente', |
| 88 | '#complex' => 'Komplexe Segmente', |
Akron | ae24e16 | 2018-02-13 18:48:44 +0100 | [diff] [blame] | 89 | '#spans' => 'Span-Segmente', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 90 | '#paradigmatic-operators' => 'Paradigmatische Operatoren', |
| 91 | '#syntagmatic-operators' => 'Syntagmatische Operatoren', |
Akron | ae24e16 | 2018-02-13 18:48:44 +0100 | [diff] [blame] | 92 | '#class-operators' => 'Klassen-Operatoren', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 93 | 'regexp' => 'Reguläre Ausdrücke', |
| 94 | 'data' => 'Daten', |
| 95 | 'corpus' => 'Korpora', |
| 96 | 'annotation' => 'Annotationen', |
| 97 | '#default-foundries' => 'Standard Foundries', |
| 98 | 'faq' => 'Häufig gestellte Fragen' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 99 | } |
| 100 | }, |
| 101 | -en => { |
Akron | 43a7309 | 2016-02-11 21:52:27 +0100 | [diff] [blame] | 102 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 103 | numf => sub { |
| 104 | shift; |
| 105 | my %val = @_; |
| 106 | my $num = $val{number} or return 0; |
| 107 | $num =~ s/$THOUSAND_SEP_RE/$1\,/g; |
| 108 | return $num; |
| 109 | }, |
| 110 | about => 'About KorAP', |
| 111 | login => 'Login', |
Akron | a8f56b2 | 2017-09-06 16:01:28 +0200 | [diff] [blame] | 112 | logout => 'Logout', |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 113 | register => 'Register', |
| 114 | pwdforgotten => 'Password forgotten?', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 115 | go => 'Go!', |
Akron | 9dda34e | 2020-07-06 11:38:27 +0200 | [diff] [blame] | 116 | news => 'News & Announcements', |
Akron | 1f0521b | 2018-08-28 13:01:24 +0200 | [diff] [blame] | 117 | # TODO: use document.write() refering to vc.getName()! |
| 118 | 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] | 119 | searchtitle => 'KorAP: Find <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 120 | searchplaceholder => 'Find ...', |
| 121 | in => 'in', |
| 122 | by => 'by', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 123 | pwd => 'Password', |
| 124 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame] | 125 | userormail => 'Username or Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 126 | with => 'with', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 127 | notAvailInCorpus => 'Not available in the current corpus', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 128 | pubOn => 'published on', |
Akron | cf29b22 | 2016-10-12 16:53:32 +0200 | [diff] [blame] | 129 | matchCount => '<%= quant($found, "match", "matches") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 130 | noMatches => 'There were no matches found for <%== loc("searchjob") %>.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 131 | notFound => '404 - Page not found', |
Akron | 3c390c4 | 2020-03-30 09:06:21 +0200 | [diff] [blame] | 132 | notIssued => 'Unable to perform the action.', |
Akron | 8ea8429 | 2018-10-24 13:41:52 +0200 | [diff] [blame] | 133 | backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 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', |
Akron | a17bc5b | 2018-10-05 13:35:01 +0200 | [diff] [blame] | 145 | overview => 'KorAP - Overview', |
| 146 | region => 'DE-BW', |
| 147 | placename => 'Mannheim', |
Akron | a2d92de | 2019-02-27 15:51:07 +0100 | [diff] [blame] | 148 | keywords => 'KorAP, DeReKo, Corpus Query Platform, IDS Mannheim, Leibniz Institute for the German Language' |
Akron | 7716f01 | 2015-07-01 20:38:32 +0200 | [diff] [blame] | 149 | }, |
| 150 | QL => { |
| 151 | poliqarp => 'Poliqarp', |
| 152 | cosmas2 => 'Cosmas II', |
| 153 | annis => 'Annis QL', |
Akron | ef351fa | 2017-11-22 19:44:50 +0100 | [diff] [blame] | 154 | cql => 'CQL v1.2', |
| 155 | fcsql => 'FCSQL' |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 156 | }, |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 157 | privacy => 'Privacy', |
| 158 | imprint => 'Imprint', |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 159 | settings => 'Settings', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 160 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 161 | intro => 'intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 162 | doc => { |
| 163 | ql => { |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 164 | 'poliqarp-plus' => 'doc/ql/poliqarp-plus' |
| 165 | }, |
| 166 | api => { |
| 167 | 'koralquery' => 'doc/api/koralquery' |
| 168 | }, |
| 169 | data => { |
| 170 | 'annotation' => 'doc/data/annotation' |
| 171 | }, |
| 172 | korap => { |
| 173 | 'kalamar' => 'doc/korap/kalamar', |
| 174 | 'karang' => 'doc/korap/karang', |
| 175 | 'koral' => 'doc/korap/koral', |
| 176 | 'krill' => 'doc/korap/krill', |
| 177 | 'kustvakt' => 'doc/korap/kustvakt' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 178 | } |
| 179 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 180 | }, |
| 181 | Nav => { |
| 182 | 'ql' => 'Query Languages', |
| 183 | '#segments' => 'Simple Segments', |
| 184 | '#complex' => 'Complex Segments', |
| 185 | '#spans' => 'Span Segments', |
| 186 | '#paradigmatic-operators' => 'Paradigmatic Operators', |
| 187 | '#syntagmatic-operators' => 'Syntagmatic Operators', |
| 188 | '#class-operators' => 'Class Operators', |
| 189 | 'regexp' => 'Regular Expressions', |
| 190 | 'data' => 'Data', |
| 191 | 'corpus' => 'Corpora', |
| 192 | 'annotation' => 'Annotations', |
| 193 | '#default-foundries' => 'Default Foundries', |
| 194 | 'faq' => 'F.A.Q.' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 195 | } |
Akron | 4c33c62 | 2018-11-12 13:43:27 +0100 | [diff] [blame] | 196 | }, |
| 197 | Piwik => { |
| 198 | en => { |
| 199 | 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?' |
| 200 | }, |
| 201 | de => { |
| 202 | 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?' |
| 203 | } |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 204 | } |
| 205 | }; |