refactor: add separate months for begin and end dates

This commit is contained in:
Adrian Friedli 2018-04-29 22:53:00 +02:00
parent de2b9feb62
commit eac410ae87
No known key found for this signature in database
GPG key ID: 72488301A5824477
17 changed files with 41 additions and 51 deletions

View file

@ -21,11 +21,10 @@ voneinander zu lernen und Spass zu haben — nicht nur am Gerät.
## Wann und wo findet die CoSin statt?
Die CoSin findet dieses Jahr vom
{{< cosin_i18n "date_day_name_start" >}}, den {{< cosin "date_day_start" >}}. bis
{{< cosin_i18n "date_day_name_end" >}}, den {{< cosin "date_day_end" >}}.
{{< cosin_i18n "date_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}})
in {{< cosin_i18n "location_city" >}} statt.
{{< cosin_i18n "date_start_weekday" >}}, den {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} bis
{{< cosin_i18n "date_end_weekday" >}}, den {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}}
statt.
## Wie kann ich mich beteiligen?

View file

@ -21,10 +21,10 @@ voneinander zu lernen und Spass zu haben — nicht nur am Gerät.
## Wann und wo findet die CoSin statt?
Die CoSin findet dieses Jahr vom
{{< cosin_i18n "date_day_name_start" >}}, den {{< cosin "date_day_start" >}}. bis
{{< cosin_i18n "date_day_name_end" >}}, den {{< cosin "date_day_end" >}}
{{< cosin_i18n "date_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}} statt.
{{< cosin_i18n "date_start_weekday" >}}, den {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} bis
{{< cosin_i18n "date_end_weekday" >}}, den {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}}
statt.
## Wie kann ich mich beteiligen?

View file

@ -20,9 +20,8 @@ seulement sur leur machines !
## Quand et où le CoSin aura lieu ?
Cette année le CoSin aura lieu du
{{< cosin_i18n "date_day_name_start" >}} {{< cosin "date_day_start" >}} au
{{< cosin_i18n "date_day_name_end" >}} {{< cosin "date_day_end" >}}
{{< cosin_i18n "date_month" >}}
{{< cosin_i18n "date_start_weekday" >}} {{< cosin "date_start_day" >}} {{< cosin_i18n "date_start_month" >}} au
{{< cosin_i18n "date_end_weekday" >}} {{< cosin "date_end_day" >}} {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) à {{< cosin_i18n "location_city" >}}.
## Comment est-ce que je participe ?

View file

@ -20,9 +20,8 @@ solo al computer.
## Quando e dove si svolge la CoSin?
Quest'anno la CoSin si svolge da
{{< cosin_i18n "date_day_name_start" >}} {{< cosin "date_day_start" >}}. fino a
{{< cosin_i18n "date_day_name_end" >}} {{< cosin "date_day_end" >}}.
{{< cosin_i18n "date_month" >}} {{< cosin "date_year" >}},
{{< cosin_i18n "date_start_weekday" >}} {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} fino a
{{< cosin_i18n "date_end_weekday" >}} {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}},
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) a {{< cosin_i18n "location_city" >}}.
## Come posso contribuire?

View file

@ -10,9 +10,9 @@ menu:
## Datum
Das CoSin {{< cosin "date_year" >}} findet vom
Freitag, {{< cosin "date_day_start" >}}. {{< cosin_i18n "date_month" >}} bis zum
Sonntag, {{< cosin "date_day_end" >}}. {{< cosin_i18n "date_month" >}}
{{< cosin "date_year" >}} statt.
{{< cosin_i18n "date_start_weekday" >}}, den {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} bis zum
{{< cosin_i18n "date_end_weekday" >}}, den {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}}
statt.
## Kosten

View file

@ -10,8 +10,8 @@ menu:
## Date
CoSin {{< cosin "date_year" >}} takes place from
{{< cosin_i18n "date_day_name_start" >}}, {{< cosin_i18n "date_month" >}} {{< cosin "date_day_start" >}}th until
{{< cosin_i18n "date_day_name_end" >}}, {{< cosin_i18n "date_month" >}} {{< cosin "date_day_end" >}}th
{{< cosin_i18n "date_start_weekday" >}}, {{< cosin_i18n "date_start_month" >}} {{< cosin "date_start_day" >}}th until
{{< cosin_i18n "date_end_weekday" >}}, {{< cosin_i18n "date_end_month" >}} {{< cosin "date_end_day" >}}th
{{< cosin "date_year" >}}.
## Cost

View file

@ -10,8 +10,8 @@ menu:
## Date
Le CoSin {{< cosin "date_year" >}} se déroule du
{{< cosin_i18n "date_day_name_start" >}} {{< cosin "date_day_start" >}} au
{{< cosin_i18n "date_day_name_end" >}} {{< cosin "date_day_end" >}} {{< cosin_i18n "date_month" >}}
{{< cosin_i18n "date_start_weekday" >}} {{< cosin "date_start_day" >}} {{< cosin_i18n "date_start_month" >}} au
{{< cosin_i18n "date_end_weekday" >}} {{< cosin "date_end_day" >}} {{< cosin_i18n "date_end_month" >}}
{{< cosin "date_year" >}}.
## Coûts

View file

@ -10,8 +10,8 @@ menu:
## Data
Quest'anno la CoSin si svolge da
{{< cosin_i18n "date_day_name_start" >}} {{< cosin "date_day_start" >}}. fino a
{{< cosin_i18n "date_day_name_end" >}} {{< cosin "date_day_end" >}}. {{< cosin_i18n "date_month" >}}
{{< cosin_i18n "date_start_weekday" >}} {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} fino a
{{< cosin_i18n "date_end_weekday" >}} {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}}
{{< cosin "date_year" >}},
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) a {{< cosin_i18n "location_city" >}}.

View file

@ -1,18 +1,19 @@
title = "Chaos Singularity"
date_year = 2018
cos_value = 0.45580812693525397
# Set to false if date for next year is not known yet:
date_known = true
date_day_start = 15
date_day_end = 17
date_month = "Juni"
date_year = 2018
date_start_weekday = "Freitag"
date_start_day = 15
date_start_month = "Juni"
date_day_name_start = "Freitag"
date_day_name_end = "Sonntag"
date_end_weekday = "Sonntag"
date_end_day = 17
date_end_month = "Juni"
location_known = true

View file

@ -1,17 +1,15 @@
[Juni]
other = "Juni"
[Juli]
other = "Juli"
[Freitag]
other = "Freitag"
[Sonntag]
other = "Sonntag"
[Biel]
other = "Biel"
[PrepositionLocationF]
other = "in der"

View file

@ -1,17 +1,15 @@
[Juni]
other = "june"
other = "June"
[Juli]
other = "July"
[Freitag]
other = "Friday"
[Sonntag]
other = "Sunday"
[Biel]
other = "Biel"
[PrepositionLocationF]
other = "at the"

View file

@ -1,17 +1,15 @@
[Juni]
other = "june"
[Juli]
other = "juillet"
[Freitag]
other = "vendredi"
[Sonntag]
other = "dimanche"
[Biel]
other = "Bienne"
[PrepositionLocationF]
other = "à la"

View file

@ -1,17 +1,15 @@
[Juni]
other = "june"
[Juli]
other = "luglio"
[Freitag]
other = "venerdì"
[Sonntag]
other = "domenica"
[Biel]
other = "Bienna"
[PrepositionLocationF]
other = "nella"

View file

@ -10,7 +10,7 @@
<p>
{{ if .date_known }}
<strong>Datum:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ i18n .date_month }} {{ .date_year }}<br/>
<strong>Datum:</strong> {{ .date_start_day }}. {{ i18n .date_start_month }} - {{ .date_end_day }}. {{ i18n .date_end_month }} {{ .date_year }}<br/>
{{ end }}
{{ if .location_known }}

View file

@ -10,7 +10,7 @@
<p>
{{ if .date_known }}
<strong>Date:</strong> {{ i18n .date_month }} {{ .date_day_start }}th - {{ .date_day_end }}th {{ .date_year }}<br/>
<strong>Date:</strong> {{ i18n .date_start_month }} {{ .date_start_day }}th - {{ i18n .date_end_month }} {{ .date_end_day }}th {{ .date_year }}<br/>
{{ end }}
{{ if .location_known }}

View file

@ -10,7 +10,7 @@
<p>
{{ if .date_known }}
<strong>Date:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ i18n .date_month }} {{ .date_year }}<br/>
<strong>Date:</strong> {{ .date_start_day }}. {{ i18n .date_start_month }} - {{ .date_end_day }}. {{ i18n .date_end_month }} {{ .date_year }}<br/>
{{ end }}
{{ if .location_known }}

View file

@ -10,7 +10,7 @@
<p>
{{ if .date_known }}
<strong>Data:</strong> {{ .date_day_start }}.-{{ .date_day_end }}. {{ i18n .date_month }} {{ .date_year }}<br/>
<strong>Data:</strong> {{ .date_start_day }}. {{ i18n .date_start_month }} - {{ .date_end_day }}. {{ i18n .date_end_month }} {{ .date_year }}<br/>
{{ end }}
{{ if .location_known }}