Desktop productivity for business analysts and programmers

Multi language custom task problem on Enterprise Guide 7.11

Accepted Solution Solved
Reply
Contributor
Posts: 29
Accepted Solution

Multi language custom task problem on Enterprise Guide 7.11

Hi,

I developed some multi language(support English and Japanes) custom tasks and they worked fine on Ennterprise Guide 6.1 and 7.1.

I upgraded Enterprise Guide from 7.1 to 7.11 on my Japaness Windows 7.1 yesterday, and find every thing that has been displayed in Japanese until now is now in English.

Is there any change on specs that I should update my programs to fix the issue?

Shen


Accepted Solutions
Solution
‎07-14-2015 10:11 AM
SAS Super FREQ
Posts: 306

Re: Multi language custom task problem on Enterprise Guide 7.11


Prior to 7.11, the thread culture (CurrentCulture) and thread UI culture (CurrentUICulture) were always the same and matched the EG display language.  Starting in 7.11, they can be set independently (some users prefer EG to display in one language, but for culture-specific values to be formatted in another).  The thread culture is determined by your Windows Regional Settings and affects the default format for dates, times, numbers, currency values, the sorting order of text, casing conventions, and string comparisons.  The thread UI culture is determined by your EG display language (set in Tools->Options->General) and controls which culture-specific resources are loaded at run-time.  If your EG display language is set to Japanese, then your thread's CurrentUICulture will be set to "ja", which should load "ja" resources for your custom task if present.  Also, make sure you are using CurrentUICulture (rather than CurrentCulture) when you need to get the display culture/language.  Use CurrentCulture for formatting of dates, times, etc.

View solution in original post


All Replies
Super User
Posts: 3,237

Re: Multi language custom task problem on Enterprise Guide 7.11

You might need to change your EG 7.11 language settings under the Tools menu, Options, General. Try choosing Japanese there.

Contributor
Posts: 29

Re: Multi language custom task problem on Enterprise Guide 7.11

The language setting is Japanese. I tried Japanese->English->Japanese but nothing changed.

I must correct my first post that not everything on form is displayed in English. SAS controls, such as TaskSelectedData and SASVariableSelector, are displayed in Japanese fine.

And built-in tasks are also displayed in Japanese fine.

Any further advice?

Solution
‎07-14-2015 10:11 AM
SAS Super FREQ
Posts: 306

Re: Multi language custom task problem on Enterprise Guide 7.11


Prior to 7.11, the thread culture (CurrentCulture) and thread UI culture (CurrentUICulture) were always the same and matched the EG display language.  Starting in 7.11, they can be set independently (some users prefer EG to display in one language, but for culture-specific values to be formatted in another).  The thread culture is determined by your Windows Regional Settings and affects the default format for dates, times, numbers, currency values, the sorting order of text, casing conventions, and string comparisons.  The thread UI culture is determined by your EG display language (set in Tools->Options->General) and controls which culture-specific resources are loaded at run-time.  If your EG display language is set to Japanese, then your thread's CurrentUICulture will be set to "ja", which should load "ja" resources for your custom task if present.  Also, make sure you are using CurrentUICulture (rather than CurrentCulture) when you need to get the display culture/language.  Use CurrentCulture for formatting of dates, times, etc.

Contributor
Posts: 29

Re: Multi language custom task problem on Enterprise Guide 7.11

Thanks, Casey.

I debugged my task and found the differece between 7.1 and 7.11 just same as you said. But the reason of  why my task displayed wrong language is that EG7.11 use the neutral culture(ja) for CurrentUICulture while EG7.1 use the specific one(ja-JP), and I only implemented the ja-JP.

SAS Super FREQ
Posts: 306

Re: Multi language custom task problem on Enterprise Guide 7.11

Shen, you are welcome.  Yes, you are correct... that changed in 7.11 as part of those changes as well.  The CurrentUICulture in 7.11 matches the language folders in the EG installation directory exactly, thus neutral cultures (except for the three Chinese languages, differentiated by specific cultures), whereas EG 7.1 assumed the default region, thus always used a specific culture.  Glad you figured it out!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 433 views
  • 0 likes
  • 3 in conversation