MaximevanderSmissen 2445cc2199
Dutch translation (#136)
* Add folder for Dutch translation with images

Copied images from English version.
No changes were made at all, _titlecard.png should be changed!

* Add Dutch language to files outside language dir

* Add Dutch nonpage language files and index page

Added files to public/nl/ dir:
  _concat.json
  _disclaimer.hbs
  _menu.hbs
  _strings.js
  index.md

* Add first Dutch pages

Pages:
  wat-is-gender (what-is-gender)
  geschiedenis (history)
  euforie (euphoria)
  fysieke-dysforie (physical-dysphoria)

* Suggestion: Add link for androgyne gender

Add link for androgyne gender to the what-is-gender pages for the
following languages:
  English
  Dutch
  French
  Hungarian
  Portuguese
Missing for languages:
  Chinese (zh)
  German (de)
  Polish (pl)
  Spanish (es)

* Add empty files to enable the build to run

* Add language tags and fix language-menu

Added the 'lang' tag to all .md files for the Dutch language
Fixed bug where Dutch line in language-menu was set to Portuguese class

* Fix language-menu bug for Spanish language

Fixed bug where Spanish line in language-menu was set to Portuguese class

* Update TWEET_DATE_FORMAT

Shortened month (LLL) already contains a period, remove double period

* Complete and review Dutch biochemical-dysphoria

* Add&review Dutch translation for social-dysphoria

* Fix contibution link in disclaimer

Link to contributions page was wrongfully translated

* Add&review Dutch translation of societal-dysphoria

* Add&review Dutch translation for sexual-dysphoria

* Fix broken link to next page

Link to next page (presentationele-dysforie) was broken on newly
translated page (seksuele-dysforie)

* Add&review Dutch translation of presentational-dysphoria

* Add comments for broken link

The presentational-dysphoria page contains a broken YouTube link.
This commit adds HTML comments to the Dutch and English pages notifying
about the broken link.
Should be reverted when
https://github.com/GenderDysphoria/GenderDysphoria.fyi/issues/139 is
fixed.

* Add&review Dutch existential-dysphoria page

* Add&review Dutch managed-dysphoria page

Also rename dutch page file and rename links to the page

* Check translated Dutch files for mixups

Sometimes 'gender' and 'sex' were wrongfully interchanged during
translation.
Fix these mixups for the following pages:
- index.md (index.md)
- wat-is-gender.md (what-is-gender.md)
- geschiedenis.md (history.md)
- euforie.md (euphoria.md)
- fysieke-dysforie.md (physical-dysphoria.md)
- biochemische-dysforie.md (biochemical-dysphoria.md)
- sociale-dysforie.md (social-dysphoria.md)
- maatschappelijke-dysforie.md (societal-dysphoria.md)
- seksuele-dysforie.md (sexual-dysphoria.md)
- presentationele-dysforie.md (presentational-dysphoria.md)
- existentiele-dysforie.md (existential-dysphoria.md)
- beheerste-dysforie.md (managed-dysphoria.md)

* Add&review Dutch impostor-syndrome page

* Add the Dutch translation for the am-i-trans page

Warning! This page hasn't been reviewed yet!

* Add & review Dutch translation for diagnoses page

* Revert "Add comments for broken link"

This reverts commit 6692acb9f7d13663036b1e210584f844e7077046.

* Update broken link in Dutch translation

Fix link from Issue #139 in Dutch translation after new link was
provided and other languages fixed

* Review and update first half of am-i-trans page

Only got to about the first half while on a plane

* Update text&complete review of am-i-trans in Dutch

Update headers to capitalize them correctly
Update all uses of quotes to fix their use
Complete last part of page

* Proposed typo fix in treatment.md

* Add&review Dutch translation of causes page

* Add unreviewed Dutch translation of chromosomes

* Add unreviewed Dutch translation of hormones page

* Review&update Dutch chromosomes page

* Review&update Dutch translation of hormones page

* Add&review Dutch translation of treatment page

* Start Dutch (manual) translation of conclusion

* Update&Review Dutch translation of conclusion page

* Finish reviewing Dutch translation of hormones

* Add unreviewed Dutch translation of masc 2nd pub

* Remove double space from second-puberty-masc page

* Start reviewing Dutch translation of masc puberty

* Complete reviewing  translation of masc puberty

* Small change in the first note on Dutch masc pub

* Add&review Dutch translation of fem 2nd puberty

* Resolve ToDo in Dutch geschiedenis page

Did some research to confirm the meaning of the WV abbreviation in the
quote on the original English page

* Resolve ToDo in Dutch ben-ik-trans page

Resolve ToDo about the translation of a sentence

* Change page name in link to Dutch 2nd fem puberty

Page link from Dutch conclusion page to the previous 2nd fem puberty
page was incorrectly named

* Fix link on Dutch conclusion page

Dutch Conclusion page linked back to the English 2nd fem puberty page

* Fix Dutch printable page view

Dutch version of _concat.json was collecting the pages to the wrong
output
2023-09-21 12:57:10 -07:00

109 lines
3.7 KiB
YAML

name: Ensure Site Builds Cleanly
on:
push:
branches: [ master ]
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install GraphicsMagick
run: sudo apt install graphicsmagick
- name: Install Chrome
run: |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Restore node_modules cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules
- name: Restore Asset Cache
uses: actions/cache@v2
with:
key: if-cache
path: |
./if-cache/*
./if-cache.json
./twitter-cache.json
- name: Install node dependencies
run: npm ci
- name: Lint JS code
run: npm test
- name: Build site
run: npm run build
- name: (EN) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/en.pdf" \
http://127.0.0.1:8080/en/printable/index.html
- name: (ZH) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/zh.pdf" \
http://127.0.0.1:8080/zh/printable/index.html
- name: (DE) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/de.pdf" \
http://127.0.0.1:8080/de/druckbar/index.html
- name: (HU) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/hu.pdf" \
http://127.0.0.1:8080/hu/nyomtathato/index.html
- name: (PL) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/pl.pdf" \
http://127.0.0.1:8080/pl/do-druku/index.html
- name: (PT) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/pt.pdf" \
http://127.0.0.1:8080/pt/imprimivel/index.html
- name: (FR) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/fr.pdf" \
http://127.0.0.1:8080/fr/a-imprimer/index.html
- name: (NL) Generate PDF from HTML
run: |
google-chrome --headless --print-to-pdf-no-header \
--run-all-compositor-stages-before-draw --print-to-pdf="${{ github.workspace }}/dist/nl.pdf" \
http://127.0.0.1:8080/nl/afdrukbaar/index.html
- name: List dist
run: ls -la ${{ github.workspace }}/dist
- name: Upload PDFs
uses: actions/upload-artifact@v3
with:
name: site-pdfs
path: |
${{ github.workspace }}/dist/**.pdf