[openstreetmap-website] notes: relative date in german translation duplicates "vor" (#1080)

Florian77711 notifications at github.com
Sat Nov 7 17:11:44 UTC 2015


Looking at the HTML-Code, this looks kind of interesting, where the title is set twice with different values (but both german):
```
<abbr title="Dienstag, 10. März 2015, 20:28 Uhr">
    vor <span title="10. März 2015 um 20:28">vor 8 Monaten</span>
</abbr>
```
Looking a little bit in the config-locales de (https://github.com/openstreetmap/openstreetmap-website/blob/91d22710ba4b64d8c15f33f694a7a9206556b825/config/locales/de.yml#L165) , the problem may be the following:
```
    commented_by: Kommentar von %{user} <abbr title='%{exact_time}'>vor %{when}</abbr>
```
Where "vor" is "hardcoded" in the locales, but the %{when} already adds a "vor" to the date-string

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1080#issuecomment-154724550
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20151107/92e402cf/attachment.html>


More information about the rails-dev mailing list