Marc Kupietz | 9510451 | 2019-12-05 10:13:05 +0100 | [diff] [blame] | 1 | # Dictionary template generated Wed, 04 Dec 2019 13:37:00 GMT |
| 2 | # Based on Mojolicious::Plugin::Number::Commify |
| 3 | my $THOUSAND_SEP_RE = qr/( |
| 4 | ^[-+]? # beginning of number. |
| 5 | \d+? # first digits before first comma |
| 6 | (?= # followed by, (but not included in the match) : |
| 7 | (?>(?:\d{3})+) # some positive multiple of three digits. |
| 8 | (?!\d) # an *exact* multiple, not x * 3 + 1 or whatever. |
| 9 | )| # or: |
| 10 | \G\d{3} # after the last group, get three digits |
| 11 | (?=\d) # but they have to have more digits after them. |
| 12 | )/x; |
| 13 | |
| 14 | { |
| 15 | _ => sub { $_->locale }, |
| 16 | de => { |
| 17 | numf => sub { |
| 18 | shift; |
| 19 | my %val = @_; |
| 20 | my $num = $val{number} or return 0; |
| 21 | $num =~ s/$THOUSAND_SEP_RE/$1\./g; |
| 22 | return $num; |
| 23 | }, |
| 24 | Cancel => 'Abbrechen', |
| 25 | Apply => 'Anwenden', |
| 26 | Options => 'Optionen', |
| 27 | SEARCH => 'SUCHE', |
| 28 | words_to_be_searched => 'Zu suchende Wortform(en)', |
| 29 | search_description => 'Wenn sie mehrere Wortformen kontrastieren wollen, trennen Sie diese mit Leerzeichen, um um den Mittelpunkt der Alternativen herum nach ähnlichen Wörtern zu suchen und mit "|", um die Nachbarn zu allen angegebenen Wortformen zur erhalten.', |
| 30 | paradigmatic_tsne => 'Paradigmatisch (t-SNE)', |
| 31 | paradigmatic_som => 'Paradigmatisch (SOM)', |
| 32 | syntagmatic => 'Syntagmatisch', |
| 33 | collocate_w2v => "Kollokat (W2V)", |
| 34 | collocate_ca => "Kollokat (KA)", |
| 35 | af_window => "AF-Fenster" |
| 36 | }, |
| 37 | -en => { |
| 38 | numf => sub { |
| 39 | shift; |
| 40 | my %val = @_; |
| 41 | my $num = $val{number} or return 0; |
| 42 | $num =~ s/$THOUSAND_SEP_RE/$1\,/g; |
| 43 | return $num; |
| 44 | }, |
| 45 | Cancel => 'Cancel', |
| 46 | Apply => 'Apply', |
| 47 | Options => 'Options', |
| 48 | SEARCH => 'SEARCH', |
| 49 | words_to_be_searched => 'Word(s) to be searched', |
| 50 | search_description => 'When looking for multiple words use spaces as separators to search around the average vector and | as separator to get the neighbours for each word.', |
| 51 | paradigmatic_tsne => 'Paradigmatic (t-SNE)', |
| 52 | paradigmatic_som => 'Paradigmatic (SOM)', |
| 53 | syntagmatic => 'Syntagmatic', |
| 54 | collocate_w2v => "Collocate (W2V)", |
| 55 | collocate_ca => "Collocate (CA)", |
| 56 | af_window => "AF window" |
| 57 | } |
| 58 | }; |