It is possible to have your templates in multiple languages at the same time, and for the app to show the correct language document for each customer. It does take some setting up, but once done will automate the process completely.

Note: The following guide is relevant if you are using the template designs that are provided within the Order Printer Pro app

Each template contains a section where all of the wording for the template is setup. To make a template support multi-language, you repeat that section for each language, and have some additional liquid code to switch to the correct section based on the customers language.

Step 1

Go to the "Manage templates" page of Order Printer Pro,

Step 2

Click the "Edit template" button on the template you would like to setup in multiple languages

Step 3

In the "Code" section, you will see the section which controls the wording of your template:

Step 4

Open a text editor or word document, and paste the following into it:

{% case attributes.lang %}
  {% when 'de' %}
      GERMAN WORD ASSIGNMENTS
  {% else %}
      DEFAULT LANGUAGE ASSIGNMENTS
{% endcase %}

Note: This is only an example, so make sure you enter the language(s) you want to translate the template into. 

Here is another example if you want to translate into more than 2 languages:

{% case attributes.lang %}
  {% when 'fr' %}
      FRENCH WORD ASSIGNMENTS
  {% when 'es' %}
      SPANISH WORD ASSIGNMENTS
  {% else %}
      DEFAULT LANGUAGE ASSIGNMENTS
{% endcase %}


Step 5

Copy the section of code from your template, which defines the wording in the document:

Step 6

Paste that into each of the sections where you added a language, and translate the words into the correct language. For example:

{% case attributes.lang %}
  {% when 'de' %}
      PASTE HERE THEN TRANSLATE TO GERMAN
  {% else %}
      PASTE HERE
{% endcase %}

Note: Only change the wording that is within the quotes. For example:

{% assign TEXT_receipt_tax_invoice = "Receipt / Tax Invoice" %}

Would be translated like this:

{% assign TEXT_receipt_tax_invoice = "Rechnung" %}


Step 7

Copy all of the text in your text editor or word document, and paste it back into the template, replacing the old wording section. In the end, it should look similar to this:

Step 6

Click the "Save" button at the top of the page

You are done. Now this template will automatically switch to the correct language, for each order/customer based on the language that they used at checkout.

Did this answer your question?