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