Translating template

Hi @Ward,

In your current code the months/quarters are not being translated. In order to make sure the translation is done, you should amend your code as follows (also see following case for more information on how to translate templates for use in other language https://community.silverfin.com/t/case-how-to-translate-templates-for-use-in-other-language-fr-en/185):

{% t= “maanden” nl:“januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december” fr:“janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|decembre” %}
{% t= “kwartalen” nl:“kw. 1|kw. 2|kw. 3|kw. 4” fr:“trim. 1|trim. 2|trim. 3|trim. 4” %}
{% t= “Loonadministratie” fr:“Salaire administratif” %}
{% t= “Kwartalen|Maanden” fr:" Trimestres|Mois" %}
{% t= “Kwartalen” fr:“Trimestres” %}
{% t= “Belastbaar” fr:“Imposable” %}
{% t= “Bedrijfsvoorheffing” fr:“Précompte professionnel” %}
{% t= “Bijkomende aangifte” fr:“Déclaration supplémentaire” %}
{% t= “Kalenderjaar” fr:“Année calendrier” %}
{% t= “TOTAAL BOEKJAAR” fr:“TOTAL EXERCICE COMPTABLE” %}
{% t= “Boekhouding” fr:“Comptabilité” %}
{% t= “Onuitgelegd” fr:“Inexpliqué” %}
{% t= “Totaal” fr:“Total” %}
{% t= “Netto wedde” fr:“Rémunération nette” %}
{% t= “Sociaal statuut” fr:“Statut social” %}
{% t= “V.A.A.” fr:"A.T.N. " %}

{% capture maanden %}{% t “maanden” %}{% endcapture %}
{% capture kwartalen %}{% t “kwartalen” %}{% endcapture %}

{% assign value_periods = custom.config.periods | default:1 %}
{% if value_periods == 2 %}{% assign periods = maanden | split:‘|’ %}{% else %}{% assign periods = kwartalen | split:‘|’ %}{% endif %}

{% assign year_first_year = period.year_start_date | date:‘%Y’%}{% assign split_on_month = period.year_start_date | date:‘%-m’ %}{% assign split_on_index_first_year = split_on_month-1 | divided_by:12/periods.size %}
{% assign year_second_year = period.year_end_date | date:‘%Y’ %}{% assign split_on_month = period.year_end_date | date:‘%-m’ %}{% assign split_on_index_second_year = split_on_month | divided_by:12/periods.size %}

|---------|—|—:|—:+
| {% if period.custom.bundel.gent == ‘true’ %}{% else %}{% endif %}1. {% t “Loonadministratie” %}
|
| {% input custom.config.periods as:select options:‘Kwartalen|Maanden’ option_values:‘1|2’ default:‘2’%}| | {% t “Belastbaar” %} | {% t “Bedrijfsvoorheffing” %}|

Kindly note that we have also declared option_values for the select to make sure the value ‘Kwartalen/Trimestres’ is selected as default.

Hope this answers your question!

Kind regards,
Robin