Re: Using localized strings in an AjaxGrid properties file?
Re: Using localized strings in an AjaxGrid properties file?
- Subject: Re: Using localized strings in an AjaxGrid properties file?
- From: Chuck Hill <email@hidden>
- Date: Thu, 24 Apr 2008 09:32:20 -0700
On Apr 23, 2008, at 1:19 PM, Helmut Schottmüller wrote:
Hi Chuck,
hm, I thought that...
The Ajax framework is part of Wonder, but in order to allow the widest
reuse, it does not require the full use of Wonder.
But thanks for the bunch of alternatives. It's very easy to provide
localized configs. I've almost forgotten that ERXResourceManager
takes the available languages as parameter for resource access. So I
simply moved my config files into the LANG.lproj directories and
localized the column headers.
It will be a bit annoying when you have to make a change as you will
have to change multiple files.
I can't think of any really good solutions.
Chuck
Am 23.04.2008 um 19:11 schrieb Chuck Hill:
On Apr 23, 2008, at 7:31 AM, Helmut Schottmüller wrote:
Hi folks,
is it possible to use localization in the AjaxGrid properties
file? I would like to add localized strings for the column titles
of the grid and it would nice to do this in the properties plist.
Maybe there is something like the formatterClass key to make this
happen...
If not, would it be a useful feature request to support
localization of column titles?
An interesting question, but problematic. The Ajax framework has a
very light dependancy on ERExtensions where Wonder style
localization is implemented. I think that tying the Ajax framework
to one specific localization implementation is not a good idea.
Here are some ideas to consider:
- do it a level up, provide a localized config. You could even
merge the common values with the localized ones. It is just a
NSMutableDictionary
- use a formatter. It would have to use thread local storage to
get at the session. If you use Wonder, this is already there.
- sub-class AjaxGrid and do the localization in the sub-class
Any other ideas?
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden