Translate CPQ Quote Document with custom (VF) template content

cpqquote-templatetemplatetranslationvisualforce

I'm trying to understand how one can get static text on a custom template content translated to the chosen language while generating a Quote Document. I tried using custom labels with translations but it respects logged in User's language not the language chosen while generating document.

-Thanks.

Best Answer

There is a language parameter passed to the Visualforce page. You can use this to set the language.

The first line of your Visualforce page could look something like this to take advantage of this:

<apex:page language="{!$CurrentPage.parameters.language}" showHeader="false" sidebar="false" cache="false" contentType="text/xml">

Here's another post showing what parameters get passed to your page: https://salesforce.stackexchange.com/a/360947/87

Related Topic