Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Use different column Name in Analytic View depending by logon session language

$
0
0

Hi,

 

It's a bit confusing, so for the sake of future search queries, I leave here the full instructions, which worked for me.

1. In HANA Studio, go to the package where your views are located and add and activate a file named translation.hdbtextbundle.  Just extension matters and you can leave the file empty.

 

2. Right-click the package to edit package properties. Fill in the following four fields:

     Original Language=English,

     Responsible= a db user name,

     Terminology Domain = any two characters,

     Text Collection = translation.hdbtextbundle


3. In Windows Explorer go to folder C:\Program Files\sap\hdbclient\rtt and edit the file rtt.properties in notepad. Fill in db settings:

# db settings

db.hostname=your.host.name

db.instance=00

db.user=hana db user

db.passwd= your password

 

4. In Windows Explorer go to folder C:\Program Files\sap\hdbclient and run cmd.exe


5. Optionally execute  set JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_45


6. Execute rtt --export -p your.package.name* -x C:\Users\yourusername\Documents\rtt_exports


7. If everything is ok, you'll end up with a bunch of .xlf files in the specified folder. E.g. 1.your.package.name.CA_YOURVIEW.calculationview.xlf


8. Rename the file by appending the desired target locale, e.g  1.your.package.name.CA_YOURVIEW.calculationview-tr_TR.xlf


9. Edit the xlf file in notepad. Add target-language attribute to the <file> tag. Example:

  <file datatype="plaintext" original="your.package.name.CA_YOURVIEW.calculationview" source-language="en-US" target-language="tr-TR">


10. For each label that you want to translate, add <target> tag next to <source> tag. Example:<trans-unit xmlns:sap="urn:x-sap:sls-mlt" id="YOURATTRIBUTE" maxwidth="120" sap:sc="XCOL" size-unit="char">

<source>My original label</source>

<target>My translated label</target>

</trans-unit>


11. Save and execute rtt --import -p your.package.name* -x C:\Users\yourusername\Documents\rtt_exports


12. Verify in HANA Studio by running select * from _SYS_REPO.ACTIVE_CONTENT_TEXT_CONTENT


13. In HANA Studio set LOCALE user parameter for your HANA user. Then verify in reporting tools.

 

14. That's all! Very user-friendly, isn't it?

 

Thanks!

Andrey


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>