You need to sign in to do that
Don't have an account?
IceEngine
CustomLabel translations don't work in Visualforce component
Helloeveryone,
In my Visualforce component, neither in javascript
function SReason(pSelVal) { if (pSelVal == "{!$Label.VF_PGHELP_0001}") {...}
nor in controller
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, Label.Portal_LAB_MSG_0051));
the shown value is the customLabel default language, not the user language.
But In my Visualforce Page, the translation works fine.
here is the thing i'have done already,
1. active languages at Translation Branch.
2. set user to the right language.
3. add translations at customLabel.
i also add the language attribute in the header: language="{!displayLanguageCode}" but it doesn't help.
so is there anything goes wrong?
any help would be much appreciated!
hello,
i don't really figure that out.
my workaround is add an inputHidden field to hold the label value,
here is my code:
then this time, the controller get the right label value.
All Answers
Hello,
Are you able to get the language code from controller i.e {!displayLanguageCode}" , if yes it should translate in VFP.
one of your statement is 'But In my Visualforce Page, the translation works fine.' - so the problem only on Visual force component?
Please post the solution in the forum, it will help to every one who needs to implement similar requirement.
Thanks,
Krishna
If possible I would like an update on this IceEngine?
Facing a similar issue as well.
hello,
i don't really figure that out.
my workaround is add an inputHidden field to hold the label value,
here is my code:
then this time, the controller get the right label value.