make argument list compatible with i18n

lektura
max.mehl 2018-06-08 19:03:21 +02:00
parent 8ce081cd8e
commit da74f723b0
No known key found for this signature in database
GPG Key ID: 2704E4AB371E2E92
3 changed files with 32 additions and 4 deletions

View File

@ -17,5 +17,18 @@ DefaultContentLanguage = "en"
fbPageID = "336939393138306" fbPageID = "336939393138306"
twitterUser = "@fsfe" twitterUser = "@fsfe"
[[Languages.en.arguments.list]]
no = "1"
icon = "fa-eur"
[[Languages.en.arguments.list]]
no = "2"
icon = "fa-handshake-o"
[[Languages.en.arguments.list]]
no = "3"
icon = "fa-users"
[[Languages.en.arguments.list]]
no = "1"
icon = "fa-lightbulb-o"
# === TRANSLATIONS === # === TRANSLATIONS ===
[Languages] [Languages]

View File

@ -39,6 +39,23 @@ other= "Reasons for Public Code"
other= "Do you believe that Free Software should be the default option for publicly financed software? **Let's convince your political representatives!**" other= "Do you believe that Free Software should be the default option for publicly financed software? **Let's convince your political representatives!**"
[arguments_buttonText] [arguments_buttonText]
other= "Sign the Open Letter" other= "Sign the Open Letter"
[arguments_list_title_1]
other= "Tax savings"
[arguments_list_description_1]
other= "Similar applications don't have to be programmed from scratch every time."
[arguments_list_title_2]
other= "Collaboration"
[arguments_list_description_2]
other= "Major projects can share expertise and costs."
[arguments_list_title_3]
other= "Serving the public"
[arguments_list_description_3]
other= "Applications paid by the public should be available for everyone."
[arguments_list_title_4]
other= "Fostering innovation"
[arguments_list_description_4]
other= "With transparent processes, others don't have to reinvent the wheel."
# Action section # Action section
[action_headline] [action_headline]

View File

@ -14,10 +14,8 @@
<div class="col-lg-3 col-md-6 text-center"> <div class="col-lg-3 col-md-6 text-center">
<div class="service-box"> <div class="service-box">
<i class="fa fa-4x {{ .icon }} wow bounceIn text-primary"></i> <i class="fa fa-4x {{ .icon }} wow bounceIn text-primary"></i>
<h3>{{ .title }}</h3> <h3>{{ i18n (delimit (slice "arguments_list_title_" .no) "") }}</h3>
{{ with .description }} <p class="text-muted">{{ i18n (delimit (slice "arguments_list_description_" .no) "") }}</p>
<p class="text-muted">{{ . }}</p>
{{ end }}
</div> </div>
</div> </div>
{{ end }} {{ end }}