Hi! I developed a Javascript module for localizing start_date (and similar) tags:
https://github.com/plepe/openstreetmap-date-format e.g. it can turn a value "~1920..1925-10" into "between c. 1920 and October 1925". when German locale is loaded: "zwischen ca. 1920 und Oktober 1925". Currently only English and German are available (I don't speak other languages well enough). The library is already in use within OpenStreetBrowser, e.g. in the category "Building age": https://www.openstreetbrowser.org/#map=18/47.07159/15.43820&categories=buildings-start_date (read more about the latest update here: https://blog.openstreetbrowser.org/node/64) If you are interested in using this library, it is available on npmjs: https://www.npmjs.com/package/openstreetmap-date-format If you are interested in contributing, e.g. to add further locales, go to https://github.com/plepe/openstreetmap-date-format/blob/master/HOWTO_CONTRIBUTE.md greetings, Stephan -- Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich ,----------------------------------------------------------------------. | Stephan Bösch-Plepelits ❤ code ❤ urbanism ❤ free software ❤ cycling | | Projects: | | > OpenStreetMap: openstreetbrowser.org > openstreetmap.at | | > Urbanism: Radlobby Wien | | Contact: | | > Mail: sk...@xover.mud.at > Blog: plepe.at > Code: github.com/plepe | | > Twitter: twitter.com/plepe > Jabber: sk...@jabber.at | | > Mastodon: @pl...@en.osm.town | `----------------------------------------------------------------------'
signature.asc
Description: Digital signature
_______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev