Forum OpenACS Q&A: Re: Installing Contacts?

Collapse
Posted by Nima Mazloumi on
Malte: Does it makes sense to have hidden dependencies or special checks for languages? It seems to me that this messes up the code, no? Isn't it possible to solve these dependencies with callbacks or somehow else?
Collapse
Posted by Malte Sussdorff on
Getting away from the dependencies using callbacks works just up to a certain degree. But if you manage to get the same functionality with a callback then go ahead. At the moment this is hard to achieve though.

If you look carefully at the code, yes, you could write a contacts::populate::german procedure which allows you to register the german language keys, but this involves more work as you would have to check the attribute_id for each of the attributes before you register the string. And it is not possible to install the language keys in the contacts.de_DE.xml due to the fact that the keys are stored in acs-translation (which is something we do not commit).