Re: [Webwork-user] I18n and more
Brought to you by:
baldree,
rickardoberg
From: Rickard <ri...@jb...> - 2000-12-06 12:40:15
|
"Maurice C . Parker" wrote: > > Or what did you have in mind? > > > Right, after thinking it over some more I came to the same conclusion. > > My original line of thinking had been that since it was so trivial to implement i18n error messages in the Support classes, maybe it should be the default behavior for Webwork error messages. > > Then I slept on it and realized that this may be a little confusing to a newer programmer trying to learn Webwork. "How do these crazy error messages work? I don't need i18n for my corporate intranet application!" > > A better solution would be to include subclasses of the Support classes in the i18n example, just to show i18n error messages being used. Then put a note in the Best Practices that it is often desirable to create a personalized version of the Support classes for more feature rich applications. Indeed. The problem is just that in the i18n there is only one Action, which does everything (the "Shop"). Now, this is not how I would have designed this functionality, but in order to keep it as similar to the original article as possible I kept it this way. And with only one action it is a bit silly to do support classes. So, should I do the right thing and split it up into several distinct actions, or keep it this way to be more similar to the original article (which makes it easier to compare too)? /Rickard -- Rickard Öberg Email: ri...@jb... |