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
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.
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
You might need to change your EG 7.11 language settings under the Tools menu, Options, General. Try choosing Japanese there.
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?
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.
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
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.
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!
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.