Rick Root wrote:
> well it's just ugly, but the worst part is that since the language is 
> extracted into message files, it's very hard to tell in the code where 

if you use groups as part of your rb logic it becomes cleaner though you'll get 
more rb to work with. there's a trade-off for what developers can remember 
though.

> <cfoutput>You have been successfully unsubscribed</cfoutput>

what's so nice about mashing up app text & code like that?

> you get:
> 
> <cfoutput>#Application.resourceBundle.getResource("message_topic_unsubscribe_success")#</cfoutput>

or you could just load that into a var as part of an init process,
application.messageTopic[session.locale].unsubscribeSuccess or whatever. in 
either case, i don't see this as unnecessarily complex or ugly. most i18n apps, 
especially java ones, are usually built this way.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233056
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to