Hi dears. How can i use multilanguage feature with pl/sql. For example follwoing line works excellent.

<textlabel font-color="Gray" name="passWordErrorLabel" label="#{lang.entr_passwd_here}"/>

It automatically changes text based on selected language. But in some circumstances i need to return error text from pl/sql based on selected langugage. Following is not worked for me.

api_component.setvalue ('loginPanel.passWordErrorLabel','#{lang.entr_passwd_here}');

asked 06 Apr '13, 16:22

Javid%20Hasanov's gravatar image

Javid Hasanov
17
accept rate: 0%


Hi Javid,

You should use api_component.setLabel API while setting the label of a textlLabel component. In the following example:

api_component.setLabel('loginPanel.passWordErrorLabel','#{lang.entr_passwd_here}');

The translated value based on the selected language should be displayed on your textLabel component. What's happening in you case? What's not working for you?

If you need the translated value of a multilingual key in the selected language, you can use api_application.getMultilingualValue API:

api_application.getMultilingualValue('entr_passwd_here');

Best Regards,
Ibrahim

link

answered 07 Apr '13, 05:26

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

Great Thanks Ibrahim. It seems multilanguaging doesn't work when using undersocer in keys. i changed entr_passwd_here key to enterPasswordHere and it worked for me.

(07 Apr '13, 07:19) Javid Hasanov
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×3

Asked: 06 Apr '13, 16:22

Seen: 1,004 times

Last updated: 07 Apr '13, 07:19


© Copyright Gerger 2017