Cancel
Showing results for 
Search instead for 
Did you mean: 

Set TC Shell default locale

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

you start the RAC in German or French environment by using the command: portal.bat -nl de_DE or -nl fr_FR.

How you set the locale for TC utilities in a TC shell  if you need to run a utility in another locale than en_US?

 

The global constant SiteMasterLanguage is 'de_DE'. I've to import localized attributes where no en_US translation exists. So I've to run the utility in 'de_DE' language.

Michael
Teamcenter UA | NX CAD
11 REPLIES

Re: Set TC Shell default locale

Phenom
Phenom

Good afternoon, read this topic:

 

https://community.plm.automation.siemens.com/t5/Teamcenter-Administrators-Forum/How-to-temporarily-d...

 

I think it can be used with preference TC_language_default

Re: Set TC Shell default locale

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

TC_language_default is already set to 'de_DE'

Michael
Teamcenter UA | NX CAD

Re: Set TC Shell default locale

Phenom
Phenom

Try before running utility set environment variable:

set TC_language_default=de_DE

 

Re: Set TC Shell default locale

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Does not work. Even if I set all three env variables. Opened IR.

set TC_language_default=de_DE
set TC_language_data_entry=de_DE
set TC_language_localized_property_value_entry=de_DE

Michael
Teamcenter UA | NX CAD

Re: Set TC Shell default locale

Legend
Legend

TC shell is the classic windows cmd shell. May be just set env to corresponding locale using windows shell commands?

 

CHCP code_page

 

 for our locale it worked

Re: Set TC Shell default locale

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Thanks alex. The CHCP command is utilized to set the character encoding. This is not a character problem, but a problem of handling the master locale of localized attributes.

My text encoding of imported attribute values is fine.

Michael
Teamcenter UA | NX CAD

Re: Set TC Shell default locale

Phenom
Phenom

Re: Set TC Shell default locale

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

TC 11.4.0.3

Michael
Teamcenter UA | NX CAD

Re: Set TC Shell default locale

Phenom
Phenom

It looks like at the moment, I don't know how I can help you. If you opened IR on GTAC, I think you need to wait for their response.