Knowledge Center

Knowledge Center > Billing and Payments > Invoices > Creating a Custom Invoice Template > Support Multiple Languages in Invoice Template

Support Multiple Languages in Invoice Template

If you operate a global business with customers in multiple languages, you can dynamically generate invoice PDFs in your customers' preferred languages using one invoice template.

This article describes the process of setting up and generating invoice PDFs in multiple languages.

Only text-based merge fields are translated using the translation profile based on the locale in customer's communication profile. If the locale is not found for a customer, the original value is used.

Date and numeric merge fields are formatted based on the locale in the customer's communication profile.

A Zuora tenant can contain 5000 translations for invoice PDFs. If you upload multiple translation profiles, the sum of all the translated merge field values should be less than 5000 rows.

This feature is in Limited Availability. If you wish to have access to the feature, submit a request at Zuora Global Support

To generate invoice PDFs in multiple languages:

  1. Enable invoice localization in your tenant.
  2. Create and upload a translation profile file for the languages you want to translate your invoice PDFs into.
  3. Edit and generate invoice PDF documents. You do not need to make any additional change to invoice templates for translation.

Enable Multilingual Invoice Templates in the Tenant

Take the following two-phase process to enable invoice translation in your tenant.

  1. Contact Zuora Global Support to enable the Invoice Localization in your tenant.
  2. In Zuora, Click your username at the top right and navigate to Billing > Manage Invoice Rules and Templates.
  3. Click Translation Profile.
  4. Click edit in the Translation Profile section.
  5. Select Yes for Enable PDF Translation?
  6. Click save.

Create and Upload a Translation Profile

A merge field value can be translated if all of the following are true about the merge field:

  • A supported merge field name or SPECIAL.PPOC is used.
  • The merge field is not marked as untranslatable.
  • The field type is string.

See Merge Fields for Invoices for the names, types, and translatability of merge fields.

To create and upload a translation profile:

  1. In the Translation Profile Detail section, click export. A sample translation file is downloaded.

  2. The translation file contains only the MergeFieldName and OriginalValue columns.

    • MergeFieldName: Merge Field Name as it appears in the invoice template

    • OriginalValue: The value given in the language of your tenant. The maximum allowed length is 500 characters.

  3. Add a language you want to translate to in each of the remaining columns. Type the language code in the column heading, e.g. de-DE. The language codes are case-sensitive. You need to type exactly as shown in the list below. The maximum allowed length is 500 characters.

  4. Save the translation file. If you use Microsoft Excel to edit the translation file, save the file in the Windows Comma Separated (.csv) format. 
    warning.png Do not save in the MS-DOS Comma Separated (.csv) format.
    warning.png You must save the translation file in the UTF-8 Format.

  5. In the Import Translation Profile section, click Choose File, select the translation CSV file, and click import.

  6. Review the import summary and click OK.

  7. Click and select a language in the translation file to review the translation.

  8. Now you can manage invoice template files and generate invoice PDF as described in Customize Invoice Templates Using Word Mail Merge.

With the example translation profile below, the two merge fields would render translated values since these were the only two provided in the translation profile. All other merge fields would be displayed in the default language used in the product catalog.

MergeFieldName OriginalValue fr-FR de-DE
Subscription.Product.
Name
Best Product Ever Meilleur Produit Jamais Beste Product aller Zeiten
Subscription.RatePlan.
Name
Best Product Ever -
Gold Edition
Meilleur Produit Jamais - Edition d'Or Beste Produkt aller Zeiten - Gold Edition

Translate Strings for Proration, Prepayment, Overage, and Credit

In addition to the supported merge fields, you can translate the following strings using the SPECIAL.PPOC merge field:

  • — Proration
  • — Prepayment
  • — Overage
  • Credit
  • — Proration Credit
  • — Prepayment Credit

The above SPECIAL.PPOC strings are suffixes appended to invoice item names for a proration, a prepayment, an overage, or a credit. For example, the prorated invoice item name would be "XXX -- Proration" for the invoice item named, "XXX". Invoice items with the SPECIAL.PPOC suffixes are translated separately from the regular invoice item names.

SPECIAL.PPOC is not a true mail merge field and can not be used in invoice templates.

Do not use any of the above SPECIAL.PPOC strings at the end of your charge names, or the charge name may be incorrectly translated.

The following is an example translation profile for the special merge fields.

MergeFieldName OriginalValue ja-JP
SPECIAL.PPOC -- Overage 過剰
SPECIAL.PPOC -- Prepayment 払い
SPECIAL.PPOC -- Proration 比例配分
SPECIAL.PPOC Credit クレジット

 

Supported Languages

The language country codes are comprised of two arguments separated by a dash, for example fr-CA is French Canadian:

  • The first argument is a valid ISO Language Code. These codes are the lower-case two-letter codes as defined by ISO-639. 
  • The second argument to both constructors is a valid ISO Country Code. These codes are the upper-case two-letter codes as defined by ISO-3166. 

Invoice template merge fields can be translated into the following languages. 

  • en-US
  • en-GB
  • de-AT
  • de-DE
  • de-LU
  • de-CH
  • fr-BE
  • fr-CA
  • fr-FR
  • fr-LU
  • fr-CH
  • it-IT
  • it-CH
  • es-AR
  • es-BO
  • es-CL
  • es-CO
  • es-CR
  • es-DO
  • es-EC
  • es-SV
  • es-GT
  • es-HN
  • es-MX
  • es-NI
  • es-PA
  • es-PY
  • es-PE
  • es-PR
  • es-ES
  • es-US
  • es-UY
  • es-VE
  • nl-BE
  • nl-NL
  • pl-PL
  • pt-BR
  • pt-PT
  • el-CY
  • el-GR
  • da-DK
  • ja-JP
  • cs-CZ
  • ro-RO
  • sk-SK
  • sl-SI
  • da-DK
  • no-NO
  • sv-SE
  • fi-FI
  • el-GR
  • hu-HU
  • bg-BG
  • et-EE
  • lv-LV

Known Issue

Do not use Excel on Mac systems to create a translation profile file for multi-byte languages. The characters may not be saved correctly.

We recommend Google Spreadsheet or a plain text editor, such as Sublime, to create a translation profile on Mac.

Last modified
21:00, 8 Feb 2017

Tags

Classifications

(not set)