on 12-22-2010 2:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
I have created Code List Data Type in SDK and have around 100 Code values and each to be maintained into 3 lang FR, ES, IT for descriptions.
XLIFF file is XML in coding and I have my values and translations ready in Excel file.
Any way to quickly get the translations from Excel into XLIFF file easily OR any shortcut in SDK that I do not have to manually keep on copy-paste each translation as target tag in this XML code of XLIFF file.
Even tools does not seems to be user friendly. Please advice with method OR tool to complete this.
Alim
Hello Alim,
There are some free-ware tools available for XLIFF based text.
I am using Virtaal.
HTH,
Horst
Hello Jacques-Antoine,
I've been told that SAP is not supposed to suggest some software we do not own or we do not have a contract with.
Therefore you will find only a description of XLIFF inside the docu.
But soon I will start a kind of startes guide in which I will (I hope I am allowed to) mention even some helpfull tools.
Thanks for your input,
Horst
Hello Horst,
Ok, that seems a normal rule actually.
As I only found the description, as you mentioned, I was wondering what to use. Same for a GIT Repository to version coding and solutions, which could be useful.
If you are allowed to do your guide, I am looking forward to it.
Best regards!
Have a nice day.
Jacques-Antoine
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.