Update custom Decidim translations and helper script, related to #490

This commit is contained in:
Disassembler 2021-01-30 14:41:05 +01:00
parent abf763683d
commit f4700bef17
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
6 changed files with 528 additions and 509 deletions

View File

@ -0,0 +1,12 @@
---
cs:
decidim:
process_groups_content_block:
content_blocks:
highlighted_process_groups:
name: Zvýrazněné skupiny procesů
pages:
home:
highlighted_process_groups:
active_processes: Aktivní procesy
see_all_processes: Zobrazit všechny procesy

View File

@ -1,11 +1,9 @@
#!/usr/bin/env python3
import codecs
import ruamel.yaml
import yaml
import sys
yaml = ruamel.yaml.YAML()
def dict_merge(src, dst):
for key, value in src.items():
if isinstance(value, dict):
@ -19,8 +17,8 @@ all = {}
for file in sys.argv[1:]:
print(file)
with codecs.open(file, encoding='utf-8') as f:
data = yaml.load(f)
data = yaml.safe_load(f)
all = dict_merge(all, data)
with codecs.open('cs.yml', 'w', encoding='utf-8') as f:
yaml.dump(data, f)
yaml.dump(data, f, allow_unicode=True, sort_keys=True)

View File

@ -1,5 +1,5 @@
{
"version": "0.23.1-210118",
"version": "0.23.1-210130",
"meta": {
"title": "Decidim",
"desc-cs": "Platforma pro účast občanů",
@ -8,7 +8,7 @@
},
"containers": {
"decidim": {
"image": "decidim_0.23.1-210118",
"image": "decidim_0.23.1-210130",
"depends": [
"decidim-postgres"
],

View File

@ -1,4 +1,4 @@
IMAGE decidim_0.23.1-210118
IMAGE decidim_0.23.1-210130
FROM decidim-nginx_1.18.0-210106
# https://github.com/Platoniq/decidim-install/blob/master/decidim-bionic.md

View File

@ -5,7 +5,7 @@ set -ev
POSTGRES_DATA="${VOLUMES_DIR}/decidim/postgres_data"
DECIDIM_CONF="${VOLUMES_DIR}/decidim/decidim_conf"
DECIDIM_DATA="${VOLUMES_DIR}/decidim/decidim_data"
DECIDIM_LAYER="${LAYERS_DIR}/decidim_0.23.1-210118"
DECIDIM_LAYER="${LAYERS_DIR}/decidim_0.23.1-210130"
# Create Postgres instance
install -o 105432 -g 105432 -m 700 -d ${POSTGRES_DATA}