Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Translating site, description and copyright for twentyfifteen

Started by Radoslaw 9 years ago · 2 replies · 1026 views
9 years ago

Hello, a new user here. In a single-language site, I am trying to translate site, description and copyright text for TwentyFifteen. TwentyFifteen provides a languages.yaml file, which I'd like to customize for my language (Polish) I created a /user/languages/pl.yaml file with the following text:

MARKDOWN
>     THEME_TwentyFifteen:
>       SITE:
>         TITLE: my_site_title
>         DESCRIPTION: my_description
>         COPYRIGHT: © Copyright %s my_desired_copyright_notice

Yet, the title, description and copyright displayed on a webpage remains a default translation provided in the theme's languages.yaml.

I reviewed the [Translation of site title, description and metatag] (/forum/archive/translation-of-site-title-description-and-metatag-t3409) thread, which also suggests creating a /user/languages/...yaml file.

9 years ago

did you add your language in your site configuration?

9 years ago

Hi Paul, yes, my user/config/system.yaml contains:

YAML
languages:
  supported:
    - pl
  include_default_lang: true
  translations: true
  translations_fallback: true
  session_store_active: false
  http_accept_language: false
  override_locale: false

And user/config/site.yaml contains:

default_lang: pl

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 5 days ago
1 102 5 days ago
Support · by Anna, 3 weeks ago
1 269 3 weeks ago
Support · by webmasterodp, 1 month ago
4 383 1 month ago
Support · by nwhitfield, 1 month ago
2 355 1 month ago
Support · by stell, 2 months ago
5 662 1 month ago