remove need to merge translation files before build

lektura
max.mehl 2018-06-11 08:59:54 +02:00
parent a5c708a8ef
commit 316b90cbf7
No known key found for this signature in database
GPG Key ID: 2704E4AB371E2E92
2 changed files with 0 additions and 43 deletions

View File

@ -1,18 +1,9 @@
#!/bin/bash
# Put all available languages here, except "en". Separated by spaces
TRANSLATIONS="ca da de el eo es fr hu it nb nl pt ru sq sv tr zh_tw"
basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
cd "$basedir"
mode=$1
# Unite static and language-specific config files to a single file
for language in $TRANSLATIONS; do
languagefiles="$languagefiles languages/strings.$language.toml"
done
cat config-static.toml languages/strings.en.toml ${languagefiles} > config.toml
# Execute hugo buildrun
if [ "$mode" == "server" ]; then
hugo server

View File

@ -1,34 +0,0 @@
baseurl = "https://publiccode.eu"
title = "Public Money, Public Code"
theme = "hugo-creative-theme"
DefaultContentLanguage = "en"
# Static strings shared by all languages these are not to be translated!
[params.static]
url = "https://publiccode.eu"
slogan_1 = "Public Money"
slogan_2 = "Public Code"
promoLink = "https://fsfe.org/promo#pmpc"
language = "Language"
[params.static.meta]
author = "Free Software Foundation Europe (FSFE)"
previewImage = "img/share-graphics/why.png"
fbPageID = "336939393138306"
twitterUser = "@fsfe"
[[params.arguments.list]]
no = "1"
icon = "fa-eur"
[[params.arguments.list]]
no = "2"
icon = "fa-handshake-o"
[[params.arguments.list]]
no = "3"
icon = "fa-users"
[[params.arguments.list]]
no = "1"
icon = "fa-lightbulb-o"
# === TRANSLATIONS ===
[Languages]