Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Translating site, description and copyright for twentyfifteen

Started by Radoslaw 9 years ago · 2 replies · 964 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 webmasterodp, 7 days ago
4 145 6 days ago
Support · by nwhitfield, 1 week ago
2 125 1 week ago
Support · by stell, 3 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 555 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago