The point about labeling can't be emphasized enough. You are effectively creating a variable when you say textLabel44, would that be how you would want to trouble shoot code you are working with? Why would you want to struggle with it in a configuration scenario?
The reason that we all like to use meaningful names for functions, variables, etc. is to make it easier to maintain. And remember that something crazy like 70% of your application's lifetime will be in maintenance mode. - Calvin -----Original Message----- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:08 AM To: CF-Talk Subject: Re: multi-lingual question > so why not prepare for that? or at least maybe use this small app to > learn some new i18n techniques? i might just do that... im about 35-40 days from RELEASE :( so, this worry on my part is unfortunately a bit last minute, since we are really in pre-release.... not that big of a deal, just gotta see if i can logistically fit it in... > > > come on man... of course they do, and ive already got a dd/mm/yyyy > > switch based on locale :) > > you should be using something more i18n than that. simple enough to use > setLocale (en_US/en_GB/en_AU/en_CA/es_ES) and lsDateFormat w/one of the > standard formats (full,long,medium,short, that way you can more easily > parse the dates back to datetime objects). the new i18n stuff in mx is > simply fantastic. rock solid. will do this ^^ looks easy enough in the docs. (never knew they existed... the functions that is) > > > true... but, as long as the xml is there, and i can see what > > i've been down that road w/some jsp from one large GIS company. nobody > easily knew what was what. always have to run back to the original text > to figure things out. it was a mess to extend, a mess to debug. it's > just not a good idea. > yeah. i agree. hmphhhhh :| > > to the web page, then im good, right? i get that it would be EASIER from > > the code view to manipulate that... no doubt, but other than that, im > > not sure it has any merit? right, or am i missing something here? > > obviously you are missing something if you think easier code > maintainence alone hasn't any merit. what if a toilet seat de-orbits > onto your head & knocks you into hamburger? want "#textlabel44#" on your > headstone? might be a cool label, as long as the xml is available on the back of my headstone :) > > > :) yes, dad! jk. true, true, all true! > > yes, but it's i18n, i get all excited about i18n stuff. if you want to > be sloppy about plain cf, go ahead. if you get sloppy about i18n stuff, > i can't help but comment. i know. in fact, i had an internal bet as to who would be first to reply ;) > > > so you are suggesting, having a variable called > > application.adminBundle, that has 2 structures (or three or however > > in this case, i guess that's one structure with a bunch of keys. for > complex apps we normally breakdown rb's into logical chunks (structs) & > then into groups within the rb itself (rb tool handles that we don't use > these in app code but it makes things much easier to manage). in some > cases we don't 100% normalize these as we've found it's easier on > developers to deal with stuff in homogeneous chunks (thisRb, thisRb, > thisRB, etc.) rather swapping back & forth (thisRb, commonRB, thisRb, > etc). in your case one rb with whatever logical groups your app needs > is enough. and my last word on this, if you're dealing with currency > symbols, use unicode rather than latin-1. > gotcha. im thinking along these lines as well. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199656 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

