It looks like the bug here is that setLanguage / setCountry is only being
called when there is a message bundle present. The fix would probably be to
move this behavior out of the if (bundle == null) block in
MessageBundleSubstituter.java and always perform it.

Good find.

On Feb 11, 2008 1:30 PM, Paul Lindner <[EMAIL PROTECTED]> wrote:

> On Mon, Feb 11, 2008 at 01:13:27PM -0800, Kevin Brown wrote:
> > gadgets.Prefs is populated by the server and emitted into the gadget
> output
> > ( are you actually running a shindig gadgets server when using this? see
> > UserPrefSubstituter.java for the intended behavior) parseUrl() is a hack
> for
> > dealing with type=url gadgets. I haven't found this to break anywhere
> else.
>
> My output has the following:
>
>  gadgets.prefs_.setDefaultModuleId(0);
>  gadgets.prefs_.setPref(0, {});
>
>
> It seems that the country/lang parameters are not getting injected
> into the preferences.
>
> Looking at BasicHttpContext.java it appears that no-one calls
> getCountry() or getLanguage(), so this data doesn't make it into the
> user prefs.
>
>
>
> --
> Paul Lindner
> hi5 Architect
> [EMAIL PROTECTED]
>

Reply via email to