Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Translating site, description and copyright for twentyfifteen

Started by Radoslaw 9 years ago · 2 replies · 870 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 Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago