Skip to main content
Solved

Message language on a read only CF


Forum|alt.badge.img+10
  • Hero (Customer)
  • 118 replies

Hello.

On a CF, read only type, how can I get the user language?

I have to display a message, the message is returned by a custom function.

I thought to send the value of #USER_LANGUAGE# as a parameter, the variable can’t get the value, just the label.

Best answer by romsar

Hello @Marcel.Ausan 

Thanks for your feedback, but I don’t understand the screen you are showing, it’s probably because we are still using the UPD5 of IFS ….

On my side, I had a look at IFS packages, and I found Fnd_Session_API.Get_Language to get the user language. I made some tests in which I was in french and in english versions, in both cases, I could get the right language ISO code.

EDIT : I think you are not showing a possible response to my question, it’s not a matter related to the prompt of the custom fields, but it’s about the script behind my read only custom field which returns a text which needs to be translated

View original
Did this topic help you find an answer to your question?

6 replies

Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1142 replies
  • December 5, 2023

@romsar it’s possible to translate Custom Attributes. Would that help?

 


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 118 replies
  • Answer
  • December 6, 2023

Hello @Marcel.Ausan 

Thanks for your feedback, but I don’t understand the screen you are showing, it’s probably because we are still using the UPD5 of IFS ….

On my side, I had a look at IFS packages, and I found Fnd_Session_API.Get_Language to get the user language. I made some tests in which I was in french and in english versions, in both cases, I could get the right language ISO code.

EDIT : I think you are not showing a possible response to my question, it’s not a matter related to the prompt of the custom fields, but it’s about the script behind my read only custom field which returns a text which needs to be translated


VBGLinda
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 2 replies
  • December 6, 2023

@romsar Is this what you are looking for? When choosing Translate in the drop down you get a dialog where you can enter translation for each language code.

 


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 118 replies
  • December 6, 2023

Hello @VBGLinda 

That’s not related to any SQL querry.

EDIT : thats the interface we have


Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1142 replies
  • December 6, 2023

@romsar I initially thought you wanted to do a text translation on the label of the custom field → for Apps10 it’s the screen that @VBGLinda posted. My bad for misunderstanding the post. I’m glad you found a way to do it 😁.


VBGLinda
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 2 replies
  • December 6, 2023

@romsar ok, I misunderstood as well 🙄. I do not think we have such an example. Only CF connected to custom enumaration with translation and persistant in one page. Then another read only CF in another page reffering to the CF connected to the enumaration. Glad you found a solution 😊


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings