6.0.0-beta1
8/17/25

[#10511] German Numerizer doesn't work properly
Summary German Numerizer doesn't work properly
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester michael.groene (at) zel (dot) uni-hannover (dot) de
Created 09/13/2011 (5087 days ago)
Due
Updated 11/30/2011 (5009 days ago)
Assigned
Resolved 11/30/2011 (5009 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/30/2011 06:17:50 PM Jan Schneider Version ⇒ Git master
Queue ⇒ Horde Framework Packages
 
11/30/2011 06:17:22 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
11/30/2011 06:17:18 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

[jan] Correctly parse "nacht" in German (Bug #10511).

  3 files changed, 7 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/80265ca92d0bef75faea14c653d5473fe825cab6
09/13/2011 12:06:12 PM michael (dot) groene (at) zel (dot) uni-hannover (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ German Numerizer doesn't work properly
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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.


Saved Queries