Skip to content

Commit 461413b

Browse files
authored
document all field types that accept strings
see openstreetmap/iD#12345 (comment)
1 parent a234ac7 commit 461413b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ The user can pick from any of the options, or type their own value.
630630

631631
The `strings` object contains values that the field wants to be translated on Transifex.
632632

633-
[Combo field types](#combodropdown-fields) can accept custom translations for `options` values via the `strings` property.
633+
[Combo](#combodropdown-fields) and [radio](#radio-buttons) fields can accept custom translations for `options` values via the `strings` property.
634634
These values populate the `options` property if it isn't otherwise specified.
635635
If `autoSuggestions` is `true` (as per default), then raw and labeled values might be mixed
636636
in the dropdown suggestions.
@@ -688,6 +688,11 @@ The value of each option can be a reference to another field or preset's name. F
688688
}
689689
```
690690

691+
Some [special](#special) fields define additional strings besides `options`:
692+
* `access` fields define `types` for the different traffic modes
693+
* `directionalCombo` fields define `types` for the respecive directions subtags
694+
* `address` fields define `placeholders` and `labels` for the individual address sub-fields
695+
691696
##### `stringsCrossReference`
692697

693698
An optional property to reference to the strings of another field, indicated by using that field's name contained in brackets, like `{field}`. This is for example useful when there are multiple variants of fields for the same tag, which should all use the same strings. For example:

0 commit comments

Comments
 (0)