Skip to content

Expose more border_type=* values for translation #986

Closed
OpenHistoricalMap/ohm-website
#310

Description

@1ec5

Nominatim search results and Overpass query results in the sidebar should label a greater variety of administrative boundary designations, including many designations that have fallen out of use, such as rancho in the Americas, caliphate in the Middle East, and empire all over.

Until recently, the website has labeled Nominatim search results and Overpass API query results for boundary=administrative features based purely on the admin_level=* value. The numeric value is translated into a human-readable word inspired by real-world administrative structures like “State” and “Village”, though the whole hierarchy of terms doesn’t occur in any present-day country. openstreetmap/openstreetmap-website#5493 removes this terminology in favor of the original numeric values, while introducing support for border_type=* as a human-readable override that’s both data-driven and translatable.

Historically, OHM has not relied on the boundary=administrative labels. We had to map an explicit place=* point in order to label the administrative area. The website prioritizes this label point’s place=* value over the boundary’s admin_level=* value. As a result, #374 and #646 called for extending Nominatim to recognize a substantially longer list of place types. But now that #701 is fixed, we have an opportunity to deemphasize the place=* points for non-settlement administrative areas, even deleting them, which will make border_type=* the more appropriate customization hook.

All we need to do is extend the list of English source strings under geocoder.search_osm_nominatim.prefix.border_types to have better coverage of administrative area designations in history. Then translators will be able to provide translations for those designations. So far, OHM’s border_type=* usage hasn’t strayed very far from OSM; we’ll need to tag more boundaries with border_type=* in order for this functionality to take effect.

Activity

  1. added
    internationalization
    website
    on Mar 17, 2025
  2. added theissue type on Mar 17, 2025
  3. self-assigned this
    on Aug 12, 2025
  4. moved this from In Progress to Ready for Staging in OpenHistoricalMap Dev Planningon Aug 12, 2025
  5. moved this from Ready for Staging to In Progress in OpenHistoricalMap Dev Planningon Aug 12, 2025
  6. moved this from In Progress to Ready for Staging in OpenHistoricalMap Dev Planningon Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

internationalizationtaggingwebsite

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions