Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Translating site, description and copyright for twentyfifteen

Started by Radoslaw 9 years ago · 2 replies · 909 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 complanar, 6 days ago
6 139 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 51 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago