Title: German requires different cases for ‘%s ago’ and ‘%s from now’ · Issue #263 · python-humanize/humanize · GitHub
Open Graph Title: German requires different cases for ‘%s ago’ and ‘%s from now’ · Issue #263 · python-humanize/humanize
X Title: German requires different cases for ‘%s ago’ and ‘%s from now’ · Issue #263 · python-humanize/humanize
Description: This is somewhat related to #88 , but hasn’t been resolved and also needs changes to more than the translation files I am afraid. So what this is about is that German grammar is a beast, and prepositions require certain cases. For instan...
Open Graph Description: This is somewhat related to #88 , but hasn’t been resolved and also needs changes to more than the translation files I am afraid. So what this is about is that German grammar is a beast, and prepos...
X Description: This is somewhat related to #88 , but hasn’t been resolved and also needs changes to more than the translation files I am afraid. So what this is about is that German grammar is a beast, and prepos...
Opengraph URL: https://github.com/python-humanize/humanize/issues/263
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"German requires different cases for ‘%s ago’ and ‘%s from now’","articleBody":"This is somewhat related to #88 , but hasn’t been resolved and also needs changes to more than the translation files I am afraid.\n\nSo what this is about is that German grammar is a beast, and prepositions require certain cases. For instance, ’vor‘ will need a _dativ_. ‘an hour ago’ thus translates into ‘vor einer Stunde‘, rather than ‘vor eine Stunde‘ (that’s _nominativ_). \n\n`humanize` forms the expression ‘an hour ago‘ by [piping the output of `naturaldelta` straight into the i18n format string for `%s ago`](https://github.com/python-humanize/humanize/blob/0e027051034b7dcb4eb65aded290cf56a89d8aa9/src/humanize/time.py#L274-L275). `naturaldelta()` returns a _nominativ_, that is correct as long as the expression stands by itself. However, as soon as a preposition is placed in front of the value, the grammatical case should change. \n\n(The same is true for ‘in ...’/‘... from now’(which currently translates into ‘... ab jetzt’ which sounds odd). Conveniently, both ‘in’ and ‘vor’ require the same case, _dativ_)\n\nI would be happy to contribute, but I do not know where to start without breaking things big time. If anybody can give me some directions of how to implement this best, I would go ahead and dig my head in \n\nI don’t properly speak any Slavic languages, but I would expect similar issues with those (correct me if I am wrong)","author":{"url":"https://github.com/christophfink","@type":"Person","name":"christophfink"},"datePublished":"2025-08-29T20:08:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/263/humanize/issues/263"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3d791305-8bcc-35f1-e928-69b6b5f0edb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C442:203A5F:411042:58F820:6A5377FF |
| html-safe-nonce | 916e8e95ccf720b5b54ebe86fc124df271850a3d8a29fbd444453aaa05f76586 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDQyOjIwM0E1Rjo0MTEwNDI6NThGODIwOjZBNTM3N0ZGIiwidmlzaXRvcl9pZCI6IjY3OTUyOTU2NTE3NTAxODA4NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2093ec84ba8ac142fabd7e6f5b44ad9cdc88e56ce2183fe7d0756e72093299f4 |
| hovercard-subject-tag | issue:3368003282 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-humanize/humanize/263/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d246f349e6ab02b0016964ecf03db47dfa79e3faebe26387e856916429463d0/python-humanize/humanize/issues/263 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d246f349e6ab02b0016964ecf03db47dfa79e3faebe26387e856916429463d0/python-humanize/humanize/issues/263 |
| og:image:alt | This is somewhat related to #88 , but hasn’t been resolved and also needs changes to more than the translation files I am afraid. So what this is about is that German grammar is a beast, and prepos... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | christophfink |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git |
| octolytics-dimension-user_id | 62149795 |
| octolytics-dimension-user_login | python-humanize |
| octolytics-dimension-repository_id | 466683324 |
| octolytics-dimension-repository_nwo | python-humanize/humanize |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 466683324 |
| octolytics-dimension-repository_network_root_nwo | python-humanize/humanize |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width