Commit 255bdcac authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Make better use of title and description

parent b8a9cbaf
...@@ -338,7 +338,9 @@ languages: ...@@ -338,7 +338,9 @@ languages:
parent: menu parent: menu
url: /themes/ url: /themes/
weight: 120 weight: 120
title: Kate | Get an Edge in Editing params:
description: 'Kate is a modern text editor built on the KDE Frameworks and Qt.'
title: Kate
weight: 1 weight: 1
en-gb: en-gb:
languageCode: en-gb languageCode: en-gb
......
--- ---
title: Kate title: 'Kate - Get an Edge in Editing'
description: "Get an Edge in Editing" name: Kate
subtitle: "Get an Edge in Editing"
menu: menu:
main: main:
name: Kate
weight: 1 weight: 1
--- ---
{{ define "main" }} {{ define "main" }}
<main id="home"> <main id="home">
<section class="text-center py-4 mt-0 header-plasma20" style="background: linear-gradient(-30deg, #00d2ff 0%, #3a47d5 100%);; color: white"> <section class="text-center py-4 mt-0 header-plasma20" style="background: linear-gradient(-30deg, #00d2ff 0%, #3a47d5 100%);; color: white">
<h1>{{ .Title }}</h1> <h1>{{ .Params.name }}</h1>
<h2>{{ .Description }}</h2> <h2>{{ .Params.subtitle }}</h2>
<p>{{ i18n "available" }}</p> <p>{{ i18n "available" }}</p>
<a href="{{ "/get-it" | relLangURL }}" hreflang="{{ .Site.LanguagePrefix }}" class="learn-more button noblefir my-2 mx-3">{{ i18n "get-it" }}</a> <a href="{{ "/get-it" | relLangURL }}" hreflang="{{ .Site.LanguagePrefix }}" class="learn-more button noblefir my-2 mx-3">{{ i18n "get-it" }}</a>
<div class="laptop-with-overlay d-block my-3 mx-auto w-100" style="max-width: 1000px"> <div class="laptop-with-overlay d-block my-3 mx-auto w-100" style="max-width: 1000px">
......
...@@ -331,6 +331,16 @@ def extract(args): ...@@ -331,6 +331,16 @@ def extract(args):
except: except:
pass pass
entry = polib.POEntry(
msgid=config['languages']['en']['params']['description'],
msgstr=u'',
occurrences=[('config.yaml', '0')]
)
try:
pot.append(entry)
except:
pass
pot.save(pot_file) pot.save(pot_file)
...@@ -423,6 +433,8 @@ def generate_translations(args): ...@@ -423,6 +433,8 @@ def generate_translations(args):
config_content['languages'][translations]['menu'] = dict() config_content['languages'][translations]['menu'] = dict()
config_content['languages'][translations]['menu']['main'] = list() config_content['languages'][translations]['menu']['main'] = list()
config_content['languages'][translations]['languageCode'] = translations config_content['languages'][translations]['languageCode'] = translations
config_content['languages'][translations]['params'] = dict()
config_content['languages'][translations]['params']['description'] = _(config_content['languages']['en']['params']['description'])
config_content['languages'][translations]['title'] = _(config_content['languages']['en']['title']) config_content['languages'][translations]['title'] = _(config_content['languages']['en']['title'])
config_content['languages'][translations]['weight'] = 2 config_content['languages'][translations]['weight'] = 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment