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 |
Queue ⇒ Horde Framework Packages
State ⇒ Resolved
[jan] Correctly parse "nacht" in German (
Bug #10511).3 files changed, 7 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/80265ca92d0bef75faea14c653d5473fe825cab6
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ German Numerizer doesn't work properly
Type ⇒ Bug
State ⇒ Unconfirmed
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.