German requires different cases for ‘%s ago’ and ‘%s from now’
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- localization
Direzione di ricerca
Inizia in src/humanize/time.py, intorno all'output di naturaldelta() e alla stringa di formato i18n per “%s ago.”. Traccia come vengono assemblate le traduzioni tedesche per le espressioni al passato e al futuro, quindi determina come rappresentare le forme dativali richieste senza compromettere le altre localizzazioni. Il lavoro è completato quando le espressioni tedesche per “ago” e “from now” usano il caso corretto e le traduzioni esistenti rimangono valide.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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 instance, ’vor‘ will need a dativ. ‘an hour ago’ thus translates into ‘vor einer Stunde‘, rather than ‘vor eine Stunde‘ (that’s nominativ).
humanize forms the expression ‘an hour ago‘ by piping the output of naturaldelta straight into the i18n format string for %s ago. 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.
(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)
I 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
I don’t properly speak any Slavic languages, but I would expect similar issues with those (correct me if I am wrong)
- Lingua principale
- Python
- Stelle
- 757
- Fork
- 148
- Merge medio
- 6g 1h
- PR unite (30g)
- 12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-humanize/humanize
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
python-humanize/humanize#379 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
python-humanize/humanize#366 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
python-humanize/humanize#356 · 2 commenti ·
-
Percentages and ratios Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
python-humanize/humanize#277 · 1 commento ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
python-humanize/humanize#270 · 6 commenti ·
Tutte le issue di python-humanize/humanize
Issue simili
-
triage/confirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100