[Tickets #10511] German Numerizer doesn't work properly

bugs at horde.org bugs at horde.org
Tue Sep 13 12:06:13 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/10511
------------------------------------------------------------------------------
  Ticket           | 10511
  Erstellt Von     | michael.groene at zel.uni-hannover.de
  Zusammenfassung  | German Numerizer doesn't work properly
  Warteschlange    | Kronolith
  Version          | 3.0.9
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 1. Low
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


michael.groene at zel.uni-hannover.de (2011-09-13 12:06) hat geschrieben:

In German the word nacht means night - acht means eight.

The problem is, that with QuickEvent and its numerizer the string  
"nacht" is translated to "n8", but it was expected to create an event  
in the night.

I helped me with changing line 37 in Horde/Support/Numerizer/Locale/De.php to
        '(?<!n)acht' => 8,

This works for creating simple events in kronolith so far, but it will  
mess up huge numbers with the term million in it. For example:  
einemillionenachthundertachtzig will now be translated incorrectly,  
because there is the "n" of million before "acht".

I'm not that familiar with regex, so I can not correct it for you.
But it seems, as if there are some more problems with the numerizer  
with huge numbers, e.g. zweimillionachthundertachtzig becomes 20008080  
but should be 2000880 and so on.







More information about the bugs mailing list