Custom fields

Hi,

I’m using the system mainly in the Dutch language. But forced by the customers we have we often switch to the English language. The benefit of this for example is that the standard forms will appear in English.

For example the form “Verkoopofferte” is shown as “Ouote” All form related text is also translate to English. The problem however are the Custom fields related to the form. We had to setup a couple of custom fields for this form and they obvious are shown in the Dutch language. Is there a possibility to solve this, Maybe with a custom form or a different set of custom fields that we can select when switching to English.

Thanks in advance.

Custom fields are not translated when switching languages. Read this Guide for an explanation of why that is: https://www.manager.io/guides/9156.

If you want to display different custom fields when switching languages, that would require a custom theme for the “non-customary” language. You would need conditional logic in the loop displaying custom fields that tested for the presence of foreign-language text that was always present, regardless of transaction type. Or you would need a series of conditional tests that covered all possibilities. It would be somewhat easier to write custom themes for only a single transaction type, since you could test for the presence of a title in a specific language.

The critical factor is that Manager has no live translation capability.

How about putting description in both languages in the description label?

Thanks Davide, we tried that but makes it really busy on the form.

Does the problem have impacts on Reports or on Forms?

No

I use this to have the custom fields translated in German.
Maybe you can use this as an example to translate your custom fields in English.
In fact you use the Liquid [replace] command to change the text.

    {% for field in custom_fields %}
    <tr>
        <td colspan="99">

            {% if field.label == "Tip!" %}
                <div style="font-weight: bold; padding-top: 20px">{{ field.label | replace: "Tip!", "Tipp!" }}</div>
                {{ field.text != null | replace: "Voor alle MultiTafels zijn bijpassende accessoires, zoals bodemplaten en inklapbare opzetplateau's en rokken verkrijgbaar.", "Für alle MultiTafels sind Zubehör wie Ünterboden und zusammenklappbare Aufsatzplateau und Tischrocken verfügbar ." }}                   
            {% endif %}
            {% if field.label == "Transportkosten" %}
                <div style="font-weight: bold; padding-top: 20px">{{ field.label | replace: "Transportkosten", "Transportkosten" }}</div>
                {{ field.text | replace: "1 t/m 2 Tafels € 50,00 - 3 t/m 5 Tafels € 70,00 - Transportwagen € 75,00 - MultiTafel Rok € 22,50. Bij aankoop van meerdere tafels gelden in overleg andere prijzen.", "Transportkosten sind anhand Kalkulation unserer Transporteur." }} 
            {% endif %}  
            {% if field.label == "Garantie" %}
                <div style="font-weight: bold; padding-top: 20px">{{ field.label | replace: "Garantie", "Garantie" }}</div>
                {{ field.text != null | replace: "Wij geven u 2 jaar garantie op las- en scharnierwerk, 1 jaar garantie op alle andere producten.", "Auf alle Schweißnähte und Scharniere gewähren wir 2 Jahre Garantie; und ein Jahr auf alle anderen Teile und Produkte.." }}                   
            {% endif %}
            {% if field.label == "Geldigheidsduur offerte" %}
                <div style="font-weight: bold; padding-top: 20px">{{ field.label | replace: "Geldigheidsduur offerte", "Gültigkeitsfrist Angebot" }}</div>
                {{ field.text != null | replace: "Geldigheidsduur van deze offerte is 30 dagen vanaf transactiedatum.", "Gültigkeitsfrist dieses Angebot ist 30 Tagen ab Ausgabedatum." }}                   
            {% endif %}                
            <!--<div style="font-weight: bold; padding-top: 20px">{{ field.label }}</div>
            <div>{{ field.text | newline_to_br }}</div>-->
            
        </td>
    </tr>
    {% endfor %}

Thanks Ries, I definitely will use this