note that adding translations to build file is necessary

lektura
max.mehl 2017-09-08 12:55:43 +02:00
parent f55f6d7529
commit 6a37716468
2 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,10 @@ execute Bash scripts in your command line.
2. In the terminal, execute `cd site/` to navigate in the right 2. In the terminal, execute `cd site/` to navigate in the right
directory for hugo's website build. You are now in directory for hugo's website build. You are now in
`~/FSFE/PMPC/website/site/` `~/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 will build the website and enable you to browse the result on your
computer only. Open [localhost:1313](localhost:1313) in your web computer only. Open [localhost:1313](localhost:1313) in your web
browser to see it. browser to see it.

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Put all available languages here, except "en". Separated by spaces # Put all available languages here, except "en". Separated by spaces
TRANSLATIONS="de" TRANSLATIONS="de fr"
basedir="${0%/*}/.." basedir="${0%/*}/.."
cd "$basedir" cd "$basedir"