From 94f13611fe804f16ee3c8956b0d23fbe4d05bf4e Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 20 May 2014 22:47:55 +0200 Subject: Put "about" texts in i18n files. --- taginfo-config-example.json | 4 +- web/i18n/en.yml | 74 +++++++++++++++++++++++++++++++++ web/views/about.erb | 99 ++++----------------------------------------- 3 files changed, 85 insertions(+), 92 deletions(-) diff --git a/taginfo-config-example.json b/taginfo-config-example.json index 0c5dda2..1c91f79 100644 --- a/taginfo-config-example.json +++ b/taginfo-config-example.json @@ -7,8 +7,10 @@ "url": "http://localhost:4567", // Used in the title of all HTML pages. "name": "OpenStreetMap Taginfo", - // Description of this taginfo instance. + // Description of this taginfo instance. Will appear on the home page and about page. "description": "This is a taginfo test instance. Change this text in your taginfo-config.json.", + // Additional description that will only appear on the about page. + "about": "

This site is maintained by XXX.

There isn't just one taginfo site, there are several. The main site is at taginfo.openstreetmap.org, but several other taginfo sites are operated by different people.

", // URL path to instance icon in the upper left. "icon": "/img/logo/test.png", // Contact name and email address. diff --git a/web/i18n/en.yml b/web/i18n/en.yml index a01cd62..38e1d21 100644 --- a/web/i18n/en.yml +++ b/web/i18n/en.yml @@ -151,6 +151,80 @@ pages: more: More about taginfo... international: see: See other taginfo sites... + about: + about_taginfo: + title: About taginfo + text: | +

OpenStreetMap uses tags to add meaning to geographic objects. There + is no fixed list of those tags. New tags can be invented and used as needed. + Everybody can come up with a new tag and add it to new or existing objects. + This makes OpenStreetMap enormously flexible, but sometimes also a bit hard + to work with.

+

Whether you are contributing to OSM or using the OSM data, there are always + questions like: What tags do people use for feature X? What tags can I use + for feature Y so that it appears properly on the map? Is the tag Z described + on the wiki actually in use and where?

+

Taginfo helps you by showing statistics about which tags are actually in the + database, how many people use those tags, where they are used and so on. It + also gets information about tags from the wiki and from other places. Taginfo + tries to bring together all information about tags to help you understand + how they are used and what they mean. See a list of sources + taginfo uses.

+ about_site: + title: About This Site + building_on_taginfo: + title: Building on taginfo + text: | +

You can use the data from taginfo in your own projects:

+

API

+

Taginfo data can be accessed through a REST API. See the + API documentation for the details, some general information is + on the OSM wiki. + The servers running the taginfo API do not have unlimited resources. + Please use the API responsibly. If in doubt contact the maintainers of the + site you are using or talk to us on the mailing list.

+

Download

+

If you want to play around with the data used by taginfo, you can download the + regularly updated Sqlite database files. All the preprocessing is done for you. + See the download page for a list of files. Note that + some of these files can get quite large. If you want to download them regularly, + contact the maintainers of the site you are using or talk to us on the mailing list.

+

License

+

The data available through taginfo is licenced under ODbL, the + same + license as the OpenStreetMap data.

+ software: + title: The taginfo software + text: | +

The taginfo software was created and is maintained by + Jochen Topf. + The web design was created by + Christian Topf.

+

Translations

+

We need translators for the taginfo user interface. See the translations overview for languages that need + some work. More information on how to help is on the + OSM wiki.

+

Code

+

All the software behind the taginfo sites is Open Source. You can get it on + GitHub. For an overview + see the page about the taginfo + architecture on the OSM wiki.

+

Running your own instance

+

You can run your own + taginfo site, + for instance with data for just your own country. Instructions are + on the OSM + wiki.

+

Bug reports and feature requests

+

Bug reports and feature requests should be directed to the GitHub issue tracker. Or you can + come talk to us on the mailing list.

+

Contact/Mailing list

+

Contact us on the + taginfo-dev mailing list + if you have questions or want to help.

sources: intro: |

Taginfo collects data about OSM tags from several sources and brings them diff --git a/web/views/about.erb b/web/views/about.erb index 425b16c..6d7ea54 100644 --- a/web/views/about.erb +++ b/web/views/about.erb @@ -1,112 +1,29 @@ - + - + - + - +

<%= h(t.taginfo.about) %>

<%= h(t.pages.about.about_taginfo.title) %>

Building on taginfo

<%= h(t.pages.about.building_on_taginfo.title) %>

The taginfo Software

<%= h(t.pages.about.software.title) %>

-

OpenStreetMap uses tags to add meaning to geographic objects. There - is no fixed list of those tags. New tags can be invented and used as needed. - Everybody can come up with a new tag and add it to new or existing objects. - This makes OpenStreetMap enormously flexible, but sometimes also a bit hard - to work with.

-

Whether you are contributing to OSM or using the OSM data, there are always - questions like: What tags do people use for feature X? What tags can I use - for feature Y so that it appears properly on the map? Is the tag Z described - on the wiki actually in use and where?

-

Taginfo helps you by showing statistics about which tags are actually in the - database, how many people use those tags, where they are used and so on. It - also gets information about tags from the wiki and from other places. Taginfo - tries to bring together all information about tags to help you understand - how they are used and what they mean. See a list of sources - taginfo uses.

+<%= t.pages.about.about_taginfo.text %>
-

You can use the data from taginfo in your own projects:

- -

API

- -

Taginfo data can be accessed through a REST API. See the - API documentation for the details, some general information is - on the OSM wiki. - The servers running the taginfo API do not have unlimited resources. - Please use the API responsibly. If in doubt contact the maintainers of the - site you are using or talk to us on the mailing list.

- -

Download

- -

If you want to play around with the data used by taginfo, you can download the - regularly updated Sqlite database files. All the preprocessing is done for you. - See the download page for a list of files. Note that - some of these files can get quite large. If you want to download them regularly, - talk to us first on the mailing list.

- -

License

-

The data available through taginfo is licenced under ODbL, the - same - license as the OpenStreetMap data.

- +<%= t.pages.about.building_on_taginfo.text %>
- -

The taginfo software was created and is maintained by - Jochen Topf. - The web design was created by - Christian Topf.

- -

Translations

- -

We need translators for the taginfo user interface. See the translations overview for languages that need - some work. More information on how to help is on the - OSM wiki.

- -

Code

- -

All the software behind the taginfo sites is Open Source. You can get it on - GitHub. For an overview - see the page about the taginfo - architecture on the OSM wiki.

- -

Running your own instance

- -

You can run your own - taginfo site, - for instance with data for just your own country. Instructions are - on the OSM - wiki.

- -

Bug reports and feature requests

- -

Bug reports and feature requests should be directed to the GitHub issue tracker. Or you can - come talk to us on the mailing list.

- -

Contact/Mailing list

- -

Contact us on the - taginfo-dev mailing list - if you have questions or want to help.

- +<%= t.pages.about.software.text %>
-

About this site

-

<%= h(t.pages.about.about_site.title) %>

-

There isn't just one taginfo, there are several. The main taginfo site is - at taginfo.openstreetmap.org, - but several - other taginfo sites - are operated by different people.

<%= TaginfoConfig.get('instance.description') %>

+ <%= TaginfoConfig.get('instance.about') %>
-- cgit v1.2.3