remove need to merge translation files before build
parent
a5c708a8ef
commit
316b90cbf7
|
@ -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
|
||||
|
|
|
@ -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]
|
Loading…
Reference in New Issue