This article describes how to add translations to your Payment Pages 2.0.
On the Add Translations to Hosted Payment Method page, you can do the following to add one or more translations to the payment page:
The Resource Bundle Template is the template file you use to create translation files for Payment Pages 2.0.
To download the Resource Bundle Template:
After you download the Resource Bundle Template, you edit the file to provide translations.
To localize the texts and labels on a Payment Pages form:
resource_bundle_template.txt, in a text editor, and type the translated labels and texts for the keys. See the table below for descriptions of the keys.
resource_buncle_fr.txtfor the French translation file.
The following European languages must be saved and uploaded using the ISO-8859-1 encoding for the Payment Page form to be correctly displayed in those locales:
The following keys are available in the Resource Bundle Template for translation in all types of Payment Pages. There is a specific set of keys for each payment method type of Payment Pages.
|page.label.required||Legend text for the required field mark|
|page.title||Payment Pages 2.0 form title|
|page.desc||Payment Pages 2.0 form description|
|page.selectOne||Instruction text for the credit card expiration date pull-down menu|
|page.label.submit||Label for the submit button|
|page.message.requiredField||Error message for missing required fields|
|page.message.creditCardNumber.invalidCreditCard||Error message for an invalid credit card number|
|page.message.creditCardType.invalidCreditCardType||Error message for an invalid credit card type|
|page.message.creditCardType.invalidCreditCardCVV||Error message for an invalid CVV|
Here's a sample resource file translated in to French:
To upload the translated resource file:
The following image is a preview of the form in the French locale translated with the sample resource file in the previous section:
Once you have uploaded your translations, your payment form can be displayed in multiple languages. In your client code, add a logic to assign the client locale parameter based on the client locale setting. At runtime, the translation is dynamically loaded based on the logic, and your payment form is displayed in user's locale.