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 | e208d30 | 2020-11-28 11:14:50 +0100 | [diff] [blame] | 38 | username => 'Benutzername', |
Akron | 9f2ad34 | 2022-05-04 16:16:40 +0200 | [diff] [blame] | 39 | upload => 'Hochladen', |
Akron | 9fa7cc5 | 2022-05-12 11:17:20 +0200 | [diff] [blame] | 40 | userormail => 'Benutzername oder Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 41 | with => 'mit', |
| 42 | glimpse => { |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 43 | desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge' |
| 44 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 45 | activateJS => 'Für den vollen Funktionsumfang aktivieren Sie bitte JavaScript!', |
Marc Kupietz | b82939b | 2021-09-07 22:45:38 +0200 | [diff] [blame] | 46 | faq => 'FAQ', |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 47 | tutorial => 'Hilfe und Dokumentation', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 48 | notAvailInCorpus => 'Im vorliegenden Korpus nicht verfügbar', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 49 | pubOn => 'veröffentlicht am', |
| 50 | matchCount => 'Treffer', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 51 | noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 52 | notFound => '404 - Seite nicht gefunden', |
Akron | 3c390c4 | 2020-03-30 09:06:21 +0200 | [diff] [blame] | 53 | notIssued => 'Die Aktion konnte nicht durchgeführt werden.', |
Akron | 8ea8429 | 2018-10-24 13:41:52 +0200 | [diff] [blame] | 54 | backendNotAvailable => 'Das Backend ist nicht verfügbar unter <code><%= app->korap->api =></code>!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 55 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js', |
| 56 | underConstruction => 'In Vorbereitung!', |
| 57 | korap => { |
| 58 | -short => 'KorAP', |
| 59 | desc => 'KorAP - Korpusanalyseplattform der nächsten Generation', |
| 60 | overview => 'KorAP - Übersicht', |
Akron | a2d92de | 2019-02-27 15:51:07 +0100 | [diff] [blame] | 61 | keywords => 'KorAP, DeReKo, Korpussuche, IDS Mannheim, Leibniz-Institut für Deutsche Sprache', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 62 | }, |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 63 | privacy => 'Datenschutz', |
| 64 | imprint => 'Impressum', |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 65 | settings => 'Einstellungen', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 66 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 67 | intro => 'de/intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 68 | doc => { |
| 69 | ql => { |
Helge | b4c098c | 2022-10-04 16:26:38 +0200 | [diff] [blame] | 70 | 'poliqarp-plus' => 'de/doc/ql/poliqarp-plus', |
| 71 | 'cosmas-2' => 'de/doc/ql/cosmas-2' |
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 | }, |
Marc Kupietz | fcadda6 | 2021-09-08 09:06:25 +0200 | [diff] [blame] | 79 | development => { |
| 80 | 'kalamar' => 'de/doc/development/kalamar', |
| 81 | 'karang' => 'de/doc/development/karang', |
| 82 | 'koral' => 'de/doc/development/koral', |
| 83 | 'krill' => 'de/doc/development/krill', |
| 84 | 'kustvakt' => 'de/doc/development/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', |
Helge | b4c098c | 2022-10-04 16:26:38 +0200 | [diff] [blame] | 90 | '#queryterms' => 'Suchbegriffe', |
| 91 | '#logical-operators' => 'Logische Operatoren', |
| 92 | '#distance-operators' => 'Abstandsoperatoren', |
| 93 | '#annotation-operators' => 'Annotationsoperatoren', |
| 94 | '#combination-operators'=> 'Kombinationsoperatoren', |
| 95 | '#area-operators' => 'Textbereich-Operatoren', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 96 | '#segments' => 'Einfache Segmente', |
| 97 | '#complex' => 'Komplexe Segmente', |
Akron | ae24e16 | 2018-02-13 18:48:44 +0100 | [diff] [blame] | 98 | '#spans' => 'Span-Segmente', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 99 | '#paradigmatic-operators' => 'Paradigmatische Operatoren', |
| 100 | '#syntagmatic-operators' => 'Syntagmatische Operatoren', |
Akron | ae24e16 | 2018-02-13 18:48:44 +0100 | [diff] [blame] | 101 | '#class-operators' => 'Klassen-Operatoren', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 102 | 'regexp' => 'Reguläre Ausdrücke', |
Marc Kupietz | 4689e79 | 2021-09-07 23:29:51 +0200 | [diff] [blame] | 103 | 'data' => 'Korpusdaten', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 104 | 'corpus' => 'Korpora', |
| 105 | 'annotation' => 'Annotationen', |
| 106 | '#default-foundries' => 'Standard Foundries', |
Marc Kupietz | fcadda6 | 2021-09-08 09:06:25 +0200 | [diff] [blame] | 107 | 'development' => 'Entwicklung', |
Marc Kupietz | b82939b | 2021-09-07 22:45:38 +0200 | [diff] [blame] | 108 | 'faq' => 'FAQ' |
Akron | 397552c | 2023-09-18 12:13:33 +0200 | [diff] [blame] | 109 | }, |
| 110 | QL => { |
| 111 | cqp => 'CQP (neu)' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 112 | } |
| 113 | }, |
| 114 | -en => { |
Akron | 43a7309 | 2016-02-11 21:52:27 +0100 | [diff] [blame] | 115 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 116 | numf => sub { |
| 117 | shift; |
| 118 | my %val = @_; |
| 119 | my $num = $val{number} or return 0; |
| 120 | $num =~ s/$THOUSAND_SEP_RE/$1\,/g; |
| 121 | return $num; |
| 122 | }, |
| 123 | about => 'About KorAP', |
| 124 | login => 'Login', |
Akron | a8f56b2 | 2017-09-06 16:01:28 +0200 | [diff] [blame] | 125 | logout => 'Logout', |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 126 | register => 'Register', |
| 127 | pwdforgotten => 'Password forgotten?', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 128 | go => 'Go!', |
Akron | 9dda34e | 2020-07-06 11:38:27 +0200 | [diff] [blame] | 129 | news => 'News & Announcements', |
Akron | 1f0521b | 2018-08-28 13:01:24 +0200 | [diff] [blame] | 130 | # TODO: use document.write() refering to vc.getName()! |
| 131 | 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] | 132 | searchtitle => 'KorAP: Find <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 133 | searchplaceholder => 'Find ...', |
| 134 | in => 'in', |
| 135 | by => 'by', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 136 | pwd => 'Password', |
| 137 | email => 'Email', |
Akron | e208d30 | 2020-11-28 11:14:50 +0100 | [diff] [blame] | 138 | username => 'Username', |
Akron | 9f2ad34 | 2022-05-04 16:16:40 +0200 | [diff] [blame] | 139 | upload => 'Upload', |
Akron | 9fa7cc5 | 2022-05-12 11:17:20 +0200 | [diff] [blame] | 140 | userormail => 'Username or Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 141 | with => 'with', |
Akron | f4a7cf4 | 2018-01-09 15:58:45 +0100 | [diff] [blame] | 142 | notAvailInCorpus => 'Not available in the current corpus', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 143 | pubOn => 'published on', |
Akron | cf29b22 | 2016-10-12 16:53:32 +0200 | [diff] [blame] | 144 | matchCount => '<%= quant($found, "match", "matches") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 145 | noMatches => 'There were no matches found for <%== loc("searchjob") %>.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 146 | notFound => '404 - Page not found', |
Akron | 3c390c4 | 2020-03-30 09:06:21 +0200 | [diff] [blame] | 147 | notIssued => 'Unable to perform the action.', |
Akron | 8ea8429 | 2018-10-24 13:41:52 +0200 | [diff] [blame] | 148 | backendNotAvailable => 'The backend is not available at <code><%= app->korap->api %></code>!', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 149 | glimpse => { |
Akron | a18ee1a | 2017-07-06 16:40:26 +0200 | [diff] [blame] | 150 | -short => 'Glimpse', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 151 | desc => 'Just show the first matches in arbitrary order' |
| 152 | }, |
Akron | d1741ae | 2017-11-29 09:58:53 +0100 | [diff] [blame] | 153 | activateJS => 'To make use of all features, please activate JavaScript!', |
Marc Kupietz | b82939b | 2021-09-07 22:45:38 +0200 | [diff] [blame] | 154 | faq => 'FAQ', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 155 | underConstruction => 'Under Construction!', |
Helge | 2e434be | 2023-02-01 16:47:16 +0100 | [diff] [blame] | 156 | tutorial => 'Help and Documentation', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 157 | korap => { |
| 158 | -short => 'KorAP', |
| 159 | desc => 'KorAP - Corpus Analysis Platform', |
Akron | a17bc5b | 2018-10-05 13:35:01 +0200 | [diff] [blame] | 160 | overview => 'KorAP - Overview', |
| 161 | region => 'DE-BW', |
| 162 | placename => 'Mannheim', |
Akron | a2d92de | 2019-02-27 15:51:07 +0100 | [diff] [blame] | 163 | 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] | 164 | }, |
| 165 | QL => { |
| 166 | poliqarp => 'Poliqarp', |
| 167 | cosmas2 => 'Cosmas II', |
| 168 | annis => 'Annis QL', |
Akron | 397552c | 2023-09-18 12:13:33 +0200 | [diff] [blame] | 169 | cqp => 'CQP (new)', |
Akron | ef351fa | 2017-11-22 19:44:50 +0100 | [diff] [blame] | 170 | cql => 'CQL v1.2', |
| 171 | fcsql => 'FCSQL' |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 172 | }, |
Akron | afeca25 | 2018-05-23 15:54:28 +0200 | [diff] [blame] | 173 | privacy => 'Privacy', |
| 174 | imprint => 'Imprint', |
Akron | f7ec444 | 2019-10-27 20:01:05 +0100 | [diff] [blame] | 175 | settings => 'Settings', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 176 | Template => { |
Akron | bd39a43 | 2017-09-20 13:57:13 +0200 | [diff] [blame] | 177 | intro => 'intro', |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 178 | doc => { |
| 179 | ql => { |
Helge | b4c098c | 2022-10-04 16:26:38 +0200 | [diff] [blame] | 180 | 'poliqarp-plus' => 'doc/ql/poliqarp-plus', |
| 181 | 'cosmas-2' => 'doc/ql/cosmas-2' |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 182 | }, |
| 183 | api => { |
| 184 | 'koralquery' => 'doc/api/koralquery' |
| 185 | }, |
| 186 | data => { |
| 187 | 'annotation' => 'doc/data/annotation' |
| 188 | }, |
Akron | dd5ab89 | 2021-09-08 12:46:08 +0200 | [diff] [blame] | 189 | development => { |
Marc Kupietz | fcadda6 | 2021-09-08 09:06:25 +0200 | [diff] [blame] | 190 | 'kalamar' => 'doc/development/kalamar', |
| 191 | 'karang' => 'doc/development/karang', |
| 192 | 'koral' => 'doc/development/koral', |
| 193 | 'krill' => 'doc/development/krill', |
| 194 | 'kustvakt' => 'doc/development/kustvakt' |
Akron | ccd71a4 | 2017-06-30 18:09:19 +0200 | [diff] [blame] | 195 | } |
| 196 | } |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 197 | }, |
| 198 | Nav => { |
| 199 | 'ql' => 'Query Languages', |
Helge | b4c098c | 2022-10-04 16:26:38 +0200 | [diff] [blame] | 200 | '#queryterms' => 'Query Terms', |
| 201 | '#logical-operators' => 'Logical Operators', |
| 202 | '#distance-operators' => 'Distance Operators', |
| 203 | '#annotation-operators' => 'Annotation Operators', |
| 204 | '#combination-operators'=> 'Combination Operators', |
| 205 | '#area-operators' => 'Area Operators', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 206 | '#segments' => 'Simple Segments', |
| 207 | '#complex' => 'Complex Segments', |
| 208 | '#spans' => 'Span Segments', |
| 209 | '#paradigmatic-operators' => 'Paradigmatic Operators', |
| 210 | '#syntagmatic-operators' => 'Syntagmatic Operators', |
| 211 | '#class-operators' => 'Class Operators', |
| 212 | 'regexp' => 'Regular Expressions', |
Marc Kupietz | 4689e79 | 2021-09-07 23:29:51 +0200 | [diff] [blame] | 213 | 'data' => 'Corpus Data', |
Akron | 0dc1090 | 2017-09-01 18:00:16 +0200 | [diff] [blame] | 214 | 'corpus' => 'Corpora', |
| 215 | 'annotation' => 'Annotations', |
| 216 | '#default-foundries' => 'Default Foundries', |
Marc Kupietz | fcadda6 | 2021-09-08 09:06:25 +0200 | [diff] [blame] | 217 | 'development' => 'Development', |
Marc Kupietz | b82939b | 2021-09-07 22:45:38 +0200 | [diff] [blame] | 218 | 'faq' => 'FAQ' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 219 | } |
Akron | 4c33c62 | 2018-11-12 13:43:27 +0100 | [diff] [blame] | 220 | }, |
| 221 | Piwik => { |
| 222 | en => { |
| 223 | 'HowToOptOut' => 'How to opt-out from Piwik/Matomo tracking?' |
| 224 | }, |
| 225 | de => { |
| 226 | 'HowToOptOut' => 'Wie kann ich die Weitergabe meiner Daten per Matomo/Piwik unterbinden?' |
| 227 | } |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 228 | } |
| 229 | }; |