[openstreetmap/openstreetmap-website] Allow meta description and search title to be translated (PR #6569)

Andy Allan notifications at github.com
Thu Nov 27 18:40:41 UTC 2025


Fixes #6527

This uses the same description as the default "og:description" for the site, to reduce the number of translations. Of the two alternative previous descriptions, the one in "og:description" more closely matches the language used on the about page, so let's go with that.

To be more explicit, here's the change in the html:

```diff
<link rel="search" type="application/opensearchdescription+xml" title="OpenStreetMap Search" href="/assets/osm-42b7b3fbcee2193e455a773db6cd3d34a2f48ca94547fed54901dd9d8307b02b.xml">
- <meta name="description" content="OpenStreetMap is the free wiki world map.">
+ <meta name="description" content="OpenStreetMap is a map of the world, created by people like you and free to use under an open licence.">
  <meta property="og:site_name" content="OpenStreetMap">
  <meta property="og:title" content="OpenStreetMap">
  <meta property="og:type" content="website">
  <meta property="og:url" content="http://localhost:3000/">
  <meta property="og:description" content="OpenStreetMap is a map of the world, created by people like you and free to use under an open licence.">
```
Note that this makes `<meta name="description">` become the same as `<meta property="og:description">` which I think is reasonable. The `<meta property="og:description">` has been translatable for a long time.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6569

-- Commit Summary --

  * Allow meta description and search title to be translated

-- File Changes --

    M app/views/layouts/_meta.html.erb (4)
    M config/locales/en.yml (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6569.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6569.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6569
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6569 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251127/ed012e1a/attachment.htm>


More information about the rails-dev mailing list