On Tue, Feb 2, 2010 at 11:30 AM, Ed Leafe <[email protected]> wrote: > On Feb 2, 2010, at 12:08 PM, Stephen Russell wrote: > >> Just a guess but you slung some code to identify the container object >> and query the translations, I just never saw the need to reduce it >> down to one from these three. > > Python uses the standard GNU gettext functionality, so a lot of that > is simply built-in > >> I pull the language and locale settings of the local machine for use, >> and it affects all of my display so Date, Time, Currency Display and >> Language are defined. > > The user has the option of setting up this info manually; if they > don't, the python 'locale' module handles getting the systems defaults. > > It's really amazingly simple when you pick the right tool. ;-) ------------------------
Pick the right tool Ed? I think you mean write your own framework. <http://docs.python.org/library/gettext.html> I was looking at that earlier and tried to find the any sort of examples to read. I will still stand on my out of the box IDE that only request 1 line for language, another to set display and the third for substitutions needed on this GUI. Other great aspect is that it works the same in web, as well as winform projects. In Silverlight or XAML based presentation are not so lucky in this release but I think it is fixed in 2010. Only time will tell. You currently identify the language and send to the corresponding page or WHAT A HACK. I wonder how Rails does localization? -- Stephen Russell Sr. Production Systems Programmer CIMSgts 901.246-0159 cell _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

