Those users who have custom login code and are upgrading to the v2.3 release of FarCry you will need to add the following code to your login script:

<!--- i18n: admin bits --->
<cfif NOT structKeyExists(application.adminBundle, session.dmProfile.locale)>
<!--- <cfset application.adminBundle[session.dmProfile.locale]=application.rB.getResourceBundle("farcry.admin",session.dmProfile.locale,true)> --->
<cfset application.adminBundle[session.dmProfile.locale]=application.rB.getResourceBundle("#application.path.core#/packages/resources/admin.properties",session.dmProfile.locale,false)>
</cfif>
<!--- i18n: find out this locale's writing system direction using our special psychic powers --->
<cfif application.i18nUtils.isBIDI(session.dmProfile.locale)>
<cfset session.writingDir="rtl">
<cfelse>
<cfset session.writingDir="ltr">
</cfif>
<!--- i18n: final bit, grab user language from locale, tarts up html tag --->
<cfset session.userLanguage=left(session.dmProfile.locale,2)>


Take a look at farcry_core/tags/navajo/login.cfm to see where it fits in to the login logic (about line 72). It should be added once the user has been authenticated and the dmProfile structure has been added to session scope.

-Brendan
http://farcry.daemon.com.au

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to