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