feat: add slides translation for search result content type label

Fallback to `btn_slides` translation for language packs which don't yet have a `slides` translation.

Close #1716
This commit is contained in:
George Cushen committed 2020-05-28 21:45:32 +01:00
1 parent 8af8d15d82
commit dfae6dca85
2 files changed
+6 -2

No files matched your search

+4 -1
View File
@@ -188,7 +188,7 @@
- id: open_project_site
translation: Go to Project Site
# Default titles for archive pages
# Content types for default archive page titles and search results
- id: posts
translation: Posts
@@ -202,6 +202,9 @@
- id: projects
translation: Projects
- id: slides
translation: Slides
# Search
- id: search
+2 -1
View File
@@ -61,7 +61,8 @@
'post': {{ i18n "posts" }},
'project': {{ i18n "projects" }},
'publication' : {{ i18n "publications" }},
'talk' : {{ i18n "talks" }}
'talk' : {{ i18n "talks" }},
'slides' : {{ i18n "slides" | default (i18n "btn_slides") }}
};
</script>
{{ end }}