From 6a37716468197482bc8c830b9074ceb88564bfdd Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Fri, 8 Sep 2017 12:55:43 +0200 Subject: [PATCH] note that adding translations to build file is necessary --- README.md | 5 ++++- site/build/build.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6b3c0a1..b6eba4e 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,10 @@ execute Bash scripts in your command line. 2. In the terminal, execute `cd site/` to navigate in the right directory for hugo's website build. You are now in `~/FSFE/PMPC/website/site/` -3. In your terminal, execute `./build/build.sh server`. This command +3. Only if you added a new languages which doesn't exist on the website yet: + Add you 2-letter language code in line 4 of the [build.sh + file](https://git.fsfe.org/pmpc/website/src/master/site/build/build.sh#L4). +4. In your terminal, execute `./build/build.sh server`. This command will build the website and enable you to browse the result on your computer only. Open [localhost:1313](localhost:1313) in your web browser to see it. diff --git a/site/build/build.sh b/site/build/build.sh index e7e9047..68b4a06 100755 --- a/site/build/build.sh +++ b/site/build/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # Put all available languages here, except "en". Separated by spaces -TRANSLATIONS="de" +TRANSLATIONS="de fr" basedir="${0%/*}/.." cd "$basedir"