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? ## Wann und wo findet die CoSin statt?
Die CoSin findet dieses Jahr vom Die CoSin findet dieses Jahr vom
{{< cosin_i18n "date_day_name_start" >}}, den {{< cosin "date_day_start" >}}. bis {{< cosin_i18n "date_start_weekday" >}}, den {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} bis
{{< cosin_i18n "date_day_name_end" >}}, den {{< cosin "date_day_end" >}}. {{< cosin_i18n "date_end_weekday" >}}, den {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "date_month" >}} {{< cosin "date_year" >}} {{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) statt.
in {{< cosin_i18n "location_city" >}} statt.
## Wie kann ich mich beteiligen? ## 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? ## Wann und wo findet die CoSin statt?
Die CoSin findet dieses Jahr vom Die CoSin findet dieses Jahr vom
{{< cosin_i18n "date_day_name_start" >}}, den {{< cosin "date_day_start" >}}. bis {{< cosin_i18n "date_start_weekday" >}}, den {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} bis
{{< cosin_i18n "date_day_name_end" >}}, den {{< cosin "date_day_end" >}} {{< cosin_i18n "date_end_weekday" >}}, den {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}} {{< cosin "date_year" >}}
{{< cosin_i18n "date_month" >}} {{< cosin "date_year" >}} {{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}}
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) in {{< cosin_i18n "location_city" >}} statt. statt.
## Wie kann ich mich beteiligen? ## Wie kann ich mich beteiligen?

View file

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

View file

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

View file

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

View file

@ -10,8 +10,8 @@ menu:
## Date ## Date
CoSin {{< cosin "date_year" >}} takes place from 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_start_weekday" >}}, {{< cosin_i18n "date_start_month" >}} {{< cosin "date_start_day" >}}th until
{{< cosin_i18n "date_day_name_end" >}}, {{< cosin_i18n "date_month" >}} {{< cosin "date_day_end" >}}th {{< cosin_i18n "date_end_weekday" >}}, {{< cosin_i18n "date_end_month" >}} {{< cosin "date_end_day" >}}th
{{< cosin "date_year" >}}. {{< cosin "date_year" >}}.
## Cost ## Cost

View file

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

View file

@ -10,8 +10,8 @@ menu:
## Data ## Data
Quest'anno la CoSin si svolge da Quest'anno la CoSin si svolge da
{{< cosin_i18n "date_day_name_start" >}} {{< cosin "date_day_start" >}}. fino a {{< cosin_i18n "date_start_weekday" >}} {{< cosin "date_start_day" >}}. {{< cosin_i18n "date_start_month" >}} fino a
{{< cosin_i18n "date_day_name_end" >}} {{< cosin "date_day_end" >}}. {{< cosin_i18n "date_month" >}} {{< cosin_i18n "date_end_weekday" >}} {{< cosin "date_end_day" >}}. {{< cosin_i18n "date_end_month" >}}
{{< cosin "date_year" >}}, {{< cosin "date_year" >}},
{{< cosin_i18n "location_name_preposition" >}} [{{< cosin "location_name" >}}]({{< cosin "location_url" >}}) a {{< cosin_i18n "location_city" >}}. {{< 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" title = "Chaos Singularity"
date_year = 2018
cos_value = 0.45580812693525397 cos_value = 0.45580812693525397
# Set to false if date for next year is not known yet: # Set to false if date for next year is not known yet:
date_known = true date_known = true
date_day_start = 15 date_start_weekday = "Freitag"
date_day_end = 17 date_start_day = 15
date_month = "Juni" date_start_month = "Juni"
date_year = 2018
date_day_name_start = "Freitag" date_end_weekday = "Sonntag"
date_day_name_end = "Sonntag" date_end_day = 17
date_end_month = "Juni"
location_known = true location_known = true

View file

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

View file

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

View file

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

View file

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

View file

@ -10,7 +10,7 @@
<p> <p>
{{ if .date_known }} {{ 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 }} {{ end }}
{{ if .location_known }} {{ if .location_known }}

View file

@ -10,7 +10,7 @@
<p> <p>
{{ if .date_known }} {{ 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 }} {{ end }}
{{ if .location_known }} {{ if .location_known }}

View file

@ -10,7 +10,7 @@
<p> <p>
{{ if .date_known }} {{ 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 }} {{ end }}
{{ if .location_known }} {{ if .location_known }}

View file

@ -10,7 +10,7 @@
<p> <p>
{{ if .date_known }} {{ 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 }} {{ end }}
{{ if .location_known }} {{ if .location_known }}