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 => { |
| 39 | -short => 'Stichprobe', |
| 40 | desc => 'Zeige nur die ersten Treffer in beliebiger Reihenfolge' |
| 41 | }, |
| 42 | faq => 'Häufige Fragen', |
| 43 | tutorial => 'Einführung', |
| 44 | pubOn => 'veröffentlicht am', |
| 45 | matchCount => 'Treffer', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 46 | noMatches => 'Es wurden keine Treffer für <%== loc("searchjob") %> gefunden.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 47 | notFound => '404 - Seite nicht gefunden', |
| 48 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-de.js', |
| 49 | underConstruction => 'In Vorbereitung!', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame^] | 50 | loginExplanation => 'Anmeldung mit einem registrierten Cosmas-II-Konto', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 51 | korap => { |
| 52 | -short => 'KorAP', |
| 53 | desc => 'KorAP - Korpusanalyseplattform der nächsten Generation', |
| 54 | overview => 'KorAP - Übersicht', |
| 55 | }, |
| 56 | template => { |
| 57 | intro => 'de/intro' |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 58 | }, |
| 59 | Auth => { |
| 60 | loginSuccess => 'Anmeldung erfolgreich', |
| 61 | loginFail => 'Anmeldung fehlgeschlagen', |
Akron | bc213c0 | 2017-04-20 16:45:55 +0200 | [diff] [blame] | 62 | logoutSuccess => 'Abmeldung erfolgreich', |
| 63 | logoutFail => 'Abmeldung fehlgeschlagen' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 64 | } |
| 65 | }, |
| 66 | -en => { |
Akron | 43a7309 | 2016-02-11 21:52:27 +0100 | [diff] [blame] | 67 | jsFile => 'kalamar-<%= $Kalamar::VERSION %>-en.js', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 68 | numf => sub { |
| 69 | shift; |
| 70 | my %val = @_; |
| 71 | my $num = $val{number} or return 0; |
| 72 | $num =~ s/$THOUSAND_SEP_RE/$1\,/g; |
| 73 | return $num; |
| 74 | }, |
| 75 | about => 'About KorAP', |
| 76 | login => 'Login', |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 77 | logout => 'Abmelden', |
Akron | e8235be | 2016-06-27 11:02:18 +0200 | [diff] [blame] | 78 | register => 'Register', |
| 79 | pwdforgotten => 'Password forgotten?', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 80 | go => 'Go!', |
Akron | 4823ab5 | 2017-04-27 17:10:12 +0200 | [diff] [blame] | 81 | 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] | 82 | searchtitle => 'KorAP: Find <%== loc("searchjob") %>', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 83 | searchplaceholder => 'Find ...', |
| 84 | in => 'in', |
| 85 | by => 'by', |
Akron | 189b359 | 2016-01-04 20:56:46 +0100 | [diff] [blame] | 86 | pwd => 'Password', |
| 87 | email => 'Email', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame^] | 88 | userormail => 'Username or Email', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 89 | with => 'with', |
| 90 | pubOn => 'published on', |
Akron | cf29b22 | 2016-10-12 16:53:32 +0200 | [diff] [blame] | 91 | matchCount => '<%= quant($found, "match", "matches") %>', |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 92 | noMatches => 'There were no matches found for <%== loc("searchjob") %>.', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 93 | notFound => '404 - Page not found', |
| 94 | glimpse => { |
| 95 | -short => 'Sample', |
| 96 | desc => 'Just show the first matches in arbitrary order' |
| 97 | }, |
| 98 | faq => 'F.A.Q.', |
| 99 | underConstruction => 'Under Construction!', |
Akron | 2670f5b | 2017-05-31 17:54:07 +0200 | [diff] [blame^] | 100 | loginExplanation => 'Login with a registered Cosmas-II account', |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 101 | tutorial => 'Tutorial', |
| 102 | korap => { |
| 103 | -short => 'KorAP', |
| 104 | desc => 'KorAP - Corpus Analysis Platform', |
| 105 | overview => 'KorAP - Overview' |
Akron | 7716f01 | 2015-07-01 20:38:32 +0200 | [diff] [blame] | 106 | }, |
| 107 | QL => { |
| 108 | poliqarp => 'Poliqarp', |
| 109 | cosmas2 => 'Cosmas II', |
| 110 | annis => 'Annis QL', |
| 111 | cql => 'CQL v1.2' |
Akron | e5ef4e0 | 2017-04-19 17:07:52 +0200 | [diff] [blame] | 112 | }, |
| 113 | Auth => { |
| 114 | loginSuccess => 'Login successful', |
| 115 | loginFail => 'Access denied', |
Akron | bc213c0 | 2017-04-20 16:45:55 +0200 | [diff] [blame] | 116 | logoutSuccess => 'Logout successful', |
| 117 | logoutFail => 'Logout failed' |
Akron | cddd164 | 2015-06-10 21:31:53 +0200 | [diff] [blame] | 118 | } |
| 119 | } |
| 120 | }; |