diff --git a/data/core.yaml b/data/core.yaml index 75b54f20e..a78b0175c 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -544,10 +544,10 @@ en: show_more: Show More view_on_osm: View on openstreetmap.org view_on_keepRight: View on keepright.at - all_fields: All fields - all_tags: All tags - all_members: All members - all_relations: All relations + fields: Fields + tags_count: "Tags ({count})" + members_count: "Members ({count})" + relations_count: "Relations ({count})" features_count: "Features ({count})" add_to_relation: Add to a relation new_relation: New relation... @@ -589,7 +589,7 @@ en: location: Location add_fields: "Add field:" lock: - suggestion: 'The "{label}" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the "All tags" section.' + suggestion: 'The "{label}" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the "Tags" section.' background: title: Background description: Background settings @@ -1229,11 +1229,11 @@ en: 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 \"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." + tags_all_tags: "Below the fields section, you can expand the \"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: title: Points @@ -1290,8 +1290,8 @@ en: 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} add 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 \"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} add button in the \"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." @@ -1306,10 +1306,10 @@ en: 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 set 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." - route_add: "To add a feature to a route relation, select the feature and scroll down to the \"All relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation." + route_add: "To add a feature to a route relation, select the feature and scroll down to the \"Relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation." boundary_h: "Boundaries" boundary: "A *boundary* relation is a group of one or more line features that together form an administrative boundary." - boundary_add: "To add a feature to a boundary relation, select the feature and scroll down to the \"All relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation." + boundary_add: "To add a feature to a boundary relation, select the feature and scroll down to the \"Relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation." notes: title: Notes intro: "*Notes* are used to alert other users that a feature requires fixing or attention. Notes mark a specific location on the map. To view existing notes or add new ones, click the {data} **Map data** panel to enable the OpenStreetMap notes layer." diff --git a/dist/locales/en.json b/dist/locales/en.json index d42670608..f337fe136 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -687,10 +687,10 @@ "show_more": "Show More", "view_on_osm": "View on openstreetmap.org", "view_on_keepRight": "View on keepright.at", - "all_fields": "All fields", - "all_tags": "All tags", - "all_members": "All members", - "all_relations": "All relations", + "fields": "Fields", + "tags_count": "Tags ({count})", + "members_count": "Members ({count})", + "relations_count": "Relations ({count})", "features_count": "Features ({count})", "add_to_relation": "Add to a relation", "new_relation": "New relation...", @@ -736,7 +736,7 @@ "location": "Location", "add_fields": "Add field:", "lock": { - "suggestion": "The \"{label}\" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the \"All tags\" section." + "suggestion": "The \"{label}\" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the \"Tags\" section." } }, "background": { @@ -1534,11 +1534,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 \"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.", + "tags_all_tags": "Below the fields section, you can expand the \"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": { @@ -1599,8 +1599,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} add 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 \"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} add button in the \"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.", @@ -1615,10 +1615,10 @@ "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 set 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.", - "route_add": "To add a feature to a route relation, select the feature and scroll down to the \"All relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation.", + "route_add": "To add a feature to a route relation, select the feature and scroll down to the \"Relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation.", "boundary_h": "Boundaries", "boundary": "A *boundary* relation is a group of one or more line features that together form an administrative boundary.", - "boundary_add": "To add a feature to a boundary relation, select the feature and scroll down to the \"All relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation." + "boundary_add": "To add a feature to a boundary relation, select the feature and scroll down to the \"Relations\" section of the feature editor, then click the {plus} add button to add this feature to a nearby existing relation or a new relation." }, "notes": { "title": "Notes", diff --git a/modules/ui/form_fields.js b/modules/ui/form_fields.js index d8a1d9018..7fcf84c5b 100644 --- a/modules/ui/form_fields.js +++ b/modules/ui/form_fields.js @@ -54,7 +54,7 @@ export function uiFormFields(context) { var moreFields = notShown.map(function(field) { var label = field.label(); titles.push(label); - + var terms = field.terms(); if (field.key) terms.push(field.key); if (field.keys) terms = terms.concat(field.keys); @@ -80,7 +80,7 @@ export function uiFormFields(context) { .append('div') .attr('class', 'more-fields') .append('label') - .text(t('inspector.add_fields')) + .text(t('inspector.fields')) .merge(more); diff --git a/modules/ui/preset_editor.js b/modules/ui/preset_editor.js index e6d2f66da..571fe83ec 100644 --- a/modules/ui/preset_editor.js +++ b/modules/ui/preset_editor.js @@ -25,7 +25,7 @@ export function uiPresetEditor(context) { function presetEditor(selection) { selection.call(uiDisclosure(context, 'preset_fields', true) - .title(t('inspector.all_fields')) + .title(t('inspector.fields')) .content(render) ); } diff --git a/modules/ui/raw_member_editor.js b/modules/ui/raw_member_editor.js index 4fa567b17..0e4b3c71c 100644 --- a/modules/ui/raw_member_editor.js +++ b/modules/ui/raw_member_editor.js @@ -368,7 +368,7 @@ export function uiRawMemberEditor(context) { var gt = entity.members.length > _maxMembers ? '>' : ''; selection.call(uiDisclosure(context, 'raw_member_editor', true) - .title(t('inspector.all_members') + ' (' + gt + entity.members.slice(0, _maxMembers).length + ')') + .title(t('inspector.members_count', { count: gt + entity.members.slice(0, _maxMembers).length })) .expanded(true) .updatePreference(false) .on('toggled', function(expanded) { diff --git a/modules/ui/raw_membership_editor.js b/modules/ui/raw_membership_editor.js index b383271c7..0af3fe0ff 100644 --- a/modules/ui/raw_membership_editor.js +++ b/modules/ui/raw_membership_editor.js @@ -176,7 +176,7 @@ export function uiRawMembershipEditor(context) { var gt = parents.length > 1000 ? '>' : ''; selection.call(uiDisclosure(context, 'raw_membership_editor', true) - .title(t('inspector.all_relations') + ' (' + gt + memberships.length + ')') + .title(t('inspector.relations_count', { count: gt + memberships.length })) .expanded(true) .updatePreference(false) .on('toggled', function(expanded) { diff --git a/modules/ui/raw_tag_editor.js b/modules/ui/raw_tag_editor.js index 631240662..a2627f98e 100644 --- a/modules/ui/raw_tag_editor.js +++ b/modules/ui/raw_tag_editor.js @@ -38,7 +38,7 @@ export function uiRawTagEditor(context) { var count = Object.keys(_tags).filter(function(d) { return d; }).length; var disclosure = uiDisclosure(context, 'raw_tag_editor', false) - .title(t('inspector.all_tags') + ' (' + count + ')') + .title(t('inspector.tags_count', { count: count })) .on('toggled', toggled) .updatePreference(_updatePreference) .content(content);