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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Translating site, description and copyright for twentyfifteen

Started by Radoslaw 8 years ago · 2 replies · 685 views
8 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.

8 years ago

did you add your language in your site configuration?

8 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 Thomas, 1 week ago
2 64 17 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago