Skip to Content
author's profile photo Former Member
Former Member

Language dependant texts in UI-Designer

Hello,

is there a way to get the current logon language of the user (such as Context.GetCurrentUserLanguage() in ABSL) on UI-Level? Goal is to overcome the missing translation feature of text pools in the UI.

Thank you!

Best regards

Matthias Jäger

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 23, 2010 at 10:17 AM

    Hello Matthias,

    I think a workaround will be to save the current logon language in a BODL element with ABSL REUSE service Contect.GetCurrentUserLanguage(). So you can define calculation rules for each UI control:

    if ($data.UserLanguage == "DE")

    result = "deutscher Text"

    else if ($data.UserLanguage == "EN")

    reult = "english text"

    else if (...)

    ...

    end

    Regards,

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2011 at 10:50 AM

    Hi Andreas,

    thanks for your reply.

    So I think the problem is that we're forced to have a BO-instance at runtime, since static actions with parameters are currently not supported. In an empty OWL we don't have a BO-instance.

    Perhaps something like this in the UI-Layer might work:

    var instance = BO.Create();
    instance.DetermineUserLanguage(); // here the node-element for the current user language is filled
    
    // write the userLanguage into the UI data model
    
    instance.Delete();
    

    But this is ABSL-Coding and we need this (not very nice) mechanism in the UI.

    Any (other) ideas?

    Regards

    Matthias

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.