Forum OpenACS Development: adding optional -locale parameter to lang::util::Localize

Is it a good idea to add an optional -locale parameter to lang::util::localize?

In updating the dotlrn-fs package, it grabs the folder titles from a package parameter, and they are message keys with # in them. I need to conver them to the localized message in the sitewide locale, so I want to pass in the correct locale to the lang::util::localize procedure.

Is there a better way? I can't see that adding the optonal parameter could cause any problem.

I think the general agreement was that optional parameters are fine. But do you need the switch or can't you just grab the locale in the lang::util::localize procedure ?
Malte, what do you mean?

lang::util::localize current just uses [ad_conn locale].

I want to make sure the string is localized using the site wide system locale, so I want to pass it in.