Courion Tip – Getting the user’s preferred language   Leave a comment

Using this code, if a users preferred language isn’t spanish, french, german or portuguese, or isn’t set, then it defaults to english. Of course, adding additional languages is easy.

Macro Name is GetUserLanguage

Native Query String is

SELECT CASE WHEN LanguageCode IS NULL THEN ‘en’ WHEN LanguageCode IN (‘de’, ‘es’, ‘fr’, ‘pt’) THEN LanguageCode ELSE ‘en’ END AS LanguageCode FROM Profile WHERE (ProfileUID = ‘%Custom Macro.AuthProfileID%’)

Advertisements

Posted September 3, 2009 by mmdmurphy in Courion Tip, tips

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: