aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-04-25 15:42:32 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-09 12:57:59 +0100
commit5b10afbbdfe654cc1b8569a2fe86a45bac150149 (patch)
treecddef26b02018765a853880af92f85e6b2156d5d
parent9da59471cd094567b214db643f2ffc471f823dca (diff)
Make OpenGraph description translatable.
-rw-r--r--CHANGELOG.md1
-rw-r--r--templates/web/base/header_opengraph.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a06e4ebf6..2cc359e8f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,6 +38,7 @@
- Improve chart display in old IE versions. #2005
- Improve handling of Open311 state changes. #2069
- Don't strip whitespace from user passwords. #2111
+ - Make OpenGraph description translatable.
- Admin improvements:
- Inspectors can set non_public status of reports. #1992
- Default start date is shown on the dashboard.
diff --git a/templates/web/base/header_opengraph.html b/templates/web/base/header_opengraph.html
index 6b2c8ff46..8cda4c717 100644
--- a/templates/web/base/header_opengraph.html
+++ b/templates/web/base/header_opengraph.html
@@ -1,6 +1,6 @@
<meta property="og:url" content="[% c.cobrand.base_url %][% c.req.uri.path %]">
<meta property="og:title" content="[% title || site_name | html %]">
<meta property="og:site_name" content="[% site_name %]">
- [% IF c.req.uri.path == '/' %]<meta property="og:description" content="Report, view, and discuss local street-related problems.">[% END %]
+ [% IF c.req.uri.path == '/' %]<meta property="og:description" content="[% loc('Report, view, and discuss local street-related problems.') %]">[% END %]
<meta property="og:type" content="website">
[% INCLUDE 'header_opengraph_image.html' %]