Remove the unused icons from the replacements object

This commit is contained in:
Bryan Housel
2017-11-22 21:27:24 -05:00
parent d88300e28e
commit 70fb1432ea
3 changed files with 11 additions and 43 deletions

View File

@@ -602,7 +602,7 @@ en:
fields_all_fields: "The \"All fields\" section contains all of the feature's details that you may edit. In OpenStreetMap, all of the fields are optional, and it's OK to leave a field blank if you are unsure."
fields_example: "Each feature type will display different fields. For example, a road may display fields for its surface and speed limit, but a restaurant may display fields for the type of food it serves and the hours it is open."
fields_add_field: "You can also click the \"Add field\" dropdown to add more fields, such as a description, Wikipedia link, wheelchair access, and more."
tags_h: "Tags"
tags_h: "### Tags"
tags_all_tags: "Below the fields section, you can expand the \"All tags\" section to edit any of the OpenStreetMap *tags* for the selected feature. Each tag consists of a *key* and *value*, data elements that define all of the features stored in OpenStreetMap."
tags_resources: "Editing a feature's tags requires intermediate knowledge about OpenStreetMap. You should consult resources like the [OpenStreetMap Wiki](https://wiki.openstreetmap.org/wiki/Main_Page) or [Taginfo](https://taginfo.openstreetmap.org/) to learn more about accepted OpenStreetMap tagging practices."
points:
@@ -691,7 +691,7 @@ en:
offset_change: "Click on the small triangles to adjust the imagery offset in small steps, or hold the left mouse button and drag within the gray square to slide the imagery into alignment."
streetlevel:
title: Street Level Photos
intro: "Street level photos provide a ground-truth prespective of an area, useful for mapping traffic signs, businesses, and other details that you can't see from satellite and aerial images. The iD editor supports street level photos from [Mapillary](https://www.mapillary.com) and [OpenStreetCam](https://www.openstreetcam.org)."
intro: "Street level photos are useful for mapping traffic signs, businesses, and other details that you can't see from satellite and aerial images. The iD editor supports street level photos from [Mapillary](https://www.mapillary.com) and [OpenStreetCam](https://www.openstreetcam.org)."
using_h: "### Using"
using: "To use street level photos for mapping, click the {data} `Map data` panel on the side of the map to enable or disable the available photo layers."
photos: "When enabled, the photo layer displays a line along the sequence of photos. At higher zoom levels, a circle marks at each photo location, and at even higher zoom levels, a cone indicates the direction the camera was facing when the photo was taken."

18
dist/locales/en.json vendored
View File

@@ -686,7 +686,7 @@
"open_data_h": "### Open Data",
"open_data": "Edits that you make on this map will be visible to everyone who uses OpenStreetMap. Your edits can be based on personal knowledge, on-the-ground surveying, or imagery collected from aerial or street level photos. Copying from commercial sources, like Google Maps, [is strictly forbidden](https://www.openstreetmap.org/copyright).",
"before_start_h": "### Before you start",
"before_start": "You should be familiar with OpenStreetMap and this editor before you start editing. iD contains a builtin walkthrough to teach you the basics of editing OpenStreetMap. Click 'Start the Walkthrough' on this screen to take the tutorial - it takes only about 15 minutes.",
"before_start": "You should be familiar with OpenStreetMap and this editor before you start editing. iD contains a builtin walkthrough to teach you the basics of editing OpenStreetMap. Click \"Start the Walkthrough\" on this screen to take the tutorial - it takes only about 15 minutes.",
"open_source_h": "### Open Source",
"open_source": "The iD editor is a collaborative open source project, and you are using version {version} now. The source code is available [on GitHub](https://github.com/openstreetmap/iD).",
"open_source_help": "You can help iD by [translating](https://github.com/openstreetmap/iD/blob/master/CONTRIBUTING.md#translating) or [reporting bugs](https://github.com/openstreetmap/iD/issues)."
@@ -728,11 +728,11 @@
"type": "You can click on the feature type to change the feature to a different type. Everything that exists in the real world can be added to OpenStreetMap, so there are thousands of feature types to choose from.",
"type_picker": "The type picker displays the most common feature types, such as parks, hospitals, restaurants, roads, and buildings. You can search for anything by typing what you're looking for in the search box. You can also click the {inspect} info icon next to the feature type to learn more about it.",
"fields_h": "### Fields",
"fields_all_fields": "The 'All fields' section contains all of the feature's details that you may edit. In OpenStreetMap, all of the fields are optional, and it's OK to leave a field blank if you are unsure.",
"fields_all_fields": "The \"All fields\" section contains all of the feature's details that you may edit. In OpenStreetMap, all of the fields are optional, and it's OK to leave a field blank if you are unsure.",
"fields_example": "Each feature type will display different fields. For example, a road may display fields for its surface and speed limit, but a restaurant may display fields for the type of food it serves and the hours it is open.",
"fields_add_field": "You can also click the 'Add field' dropdown to add more fields, such as a description, Wikipedia link, wheelchair access, and more.",
"tags_h": "Tags",
"tags_all_tags": "Below the fields section, you can expand the 'All tags' section to edit any of the OpenStreetMap *tags* for the selected feature. Each tag consists of a *key* and *value*, data elements that define all of the features stored in OpenStreetMap.",
"fields_add_field": "You can also click the \"Add field\" dropdown to add more fields, such as a description, Wikipedia link, wheelchair access, and more.",
"tags_h": "### Tags",
"tags_all_tags": "Below the fields section, you can expand the \"All tags\" section to edit any of the OpenStreetMap *tags* for the selected feature. Each tag consists of a *key* and *value*, data elements that define all of the features stored in OpenStreetMap.",
"tags_resources": "Editing a feature's tags requires intermediate knowledge about OpenStreetMap. You should consult resources like the [OpenStreetMap Wiki](https://wiki.openstreetmap.org/wiki/Main_Page) or [Taginfo](https://taginfo.openstreetmap.org/) to learn more about accepted OpenStreetMap tagging practices."
},
"points": {
@@ -793,8 +793,8 @@
"title": "Relations",
"intro": "A *relation* is a special type of feature in OpenStreetMap that groups together other features. The features that belong to a relation are called *members*, and each member can have a *role* in the relation.",
"edit_relation_h": "### Editing Relations",
"edit_relation": "At the bottom of the feature editor, you can expand the 'All relations' section to see if the selected feature is a member of any relations. You can then click on the relation to select and edit it.",
"edit_relation_add": "To add a feature to a relation, select the feature, then click the {plus} button in the 'All relations' section of the feature editor. You can choose from a list of nearby relations, or choose the \"New relation...\" option.",
"edit_relation": "At the bottom of the feature editor, you can expand the \"All relations\" section to see if the selected feature is a member of any relations. You can then click on the relation to select and edit it.",
"edit_relation_add": "To add a feature to a relation, select the feature, then click the {plus} button in the \"All relations\" section of the feature editor. You can choose from a list of nearby relations, or choose the \"New relation...\" option.",
"edit_relation_delete": "You can also click the {delete} `Delete` button to remove the selected feature from the relation. If you remove all of the members from a relation, the relation will be deleted automatically.",
"maintain_relation_h": "### Maintaining Relations",
"maintain_relation": "For the most part, iD will maintain relations automatically as you edit. You should take care when replacing features that might be members of relations. For example if you delete a section of road and draw a new section of road to replace it, you should add the new section to the same relations (routes, turn restrictions, etc.) as the original.",
@@ -805,7 +805,7 @@
"multipolygon_merge": "Merging several lines or areas will create a new multipolygon relation with all selected areas as members. iD will choose the inner and outer roles automatically, based on which features are contained inside other features.",
"turn_restriction_h": "### Turn restrictions",
"turn_restriction": "A *turn restriction* relation is a group of several road segments in an intersection. Turn restrictions consist of a *from* road, *via* node or roads, and a *to* road.",
"turn_restriction_field": "To edit turn restrictions, select a junction node where two or more roads meet. The feature editor will display a special 'Turn Restrictions' field containing a model of the intersection.",
"turn_restriction_field": "To edit turn restrictions, select a junction node where two or more roads meet. The feature editor will display a special \"Turn Restrictions\" field containing a model of the intersection.",
"turn_restriction_editing": "In the \"Turn Restrictions\" field, click to select a \"from\" road, and see whether turns are allowed or restricted to any of the \"to\" roads. You can click on the turn icons to toggle them between allowed and restricted. iD will create relations automatically and choose the from, via, and to roles based on your choices.",
"route_h": "### Routes",
"route": "A *route* relation is a group of one or more line features that together form a route network, like a bus route, train route, or highway route.",
@@ -826,7 +826,7 @@
},
"streetlevel": {
"title": "Street Level Photos",
"intro": "Street level photos provide a ground-truth prespective of an area, useful for mapping traffic signs, businesses, and other details that you can't see from satellite and aerial images. The iD editor supports street level photos from [Mapillary](https://www.mapillary.com) and [OpenStreetCam](https://www.openstreetcam.org).",
"intro": "Street level photos are useful for mapping traffic signs, businesses, and other details that you can't see from satellite and aerial images. The iD editor supports street level photos from [Mapillary](https://www.mapillary.com) and [OpenStreetCam](https://www.openstreetcam.org).",
"using_h": "### Using",
"using": "To use street level photos for mapping, click the {data} `Map data` panel on the side of the map to enable or disable the available photo layers.",
"photos": "When enabled, the photo layer displays a line along the sequence of photos. At higher zoom levels, a circle marks at each photo location, and at even higher zoom levels, a cone indicates the direction the camera was facing when the photo was taken.",

View File

@@ -172,50 +172,18 @@ export function uiHelp(context) {
];
var replacements = {
more: icon('#icon-more', 'pre-text'),
apply: icon('#icon-apply', 'pre-text'),
alert: icon('#icon-alert', 'pre-text'),
avatar: icon('#icon-avatar', 'pre-text'),
forward: icon('#icon-forward', 'pre-text'),
backward: icon('#icon-backward', 'pre-text'),
fullscreen: icon('#icon-full-screen', 'pre-text'),
collapsescreen: icon('#icon-collapse-screen', 'pre-text'),
geolocate: icon('#icon-geolocate', 'pre-text'),
load: icon('#icon-load', 'pre-text'),
search: icon('#icon-search', 'pre-text'),
bug: icon('#icon-bug', 'pre-text'),
point: icon('#icon-point', 'pre-text'),
line: icon('#icon-line', 'pre-text'),
area: icon('#icon-area', 'pre-text'),
help: icon('#icon-help', 'pre-text'),
plus: icon('#icon-plus', 'pre-text'),
minus: icon('#icon-minus', 'pre-text'),
nearby: icon('#icon-nearby', 'pre-text'),
outlink: icon('#icon-out-link', 'pre-text'),
relation: icon('#icon-relation', 'pre-text'),
translate: icon('#icon-translate', 'pre-text'),
circularize: icon('#operation-circularize', 'pre-text'),
orthogonalize: icon('#operation-orthogonalize', 'pre-text'),
split: icon('#operation-split', 'pre-text'),
reflect_long: icon('#operation-reflect-long', 'pre-text'),
reflect_short: icon('#operation-reflect-short', 'pre-text'),
simplify: icon('#operation-simplify', 'pre-text'),
smooth: icon('#operation-smooth', 'pre-text'),
straighten: icon('#operation-straighten', 'pre-text'),
rotate: icon('#operation-rotate', 'pre-text'),
reverse: icon('#operation-reverse', 'pre-text'),
continue: icon('#operation-continue', 'pre-text'),
disconnect: icon('#operation-disconnect', 'pre-text'),
layers: icon('#icon-layers', 'pre-text'),
vertex: icon('#icon-vertex', 'pre-text'),
data: icon('#icon-data', 'pre-text'),
down: icon('#icon-down', 'pre-text'),
up: icon('#icon-up', 'pre-text'),
inspect: icon('#icon-inspect', 'pre-text'),
move: icon('#operation-move', 'pre-text'),
merge: icon('#operation-merge', 'pre-text'),
copy: icon('#operation-copy', 'pre-text'),
paste: icon('#operation-paste', 'pre-text'),
delete: icon('#operation-delete', 'pre-text'),
close: icon('#icon-close', 'pre-text'),
undo: icon(textDirection === 'rtl' ? '#icon-redo' : '#icon-undo', 'pre-text'),