Open iham opened 6 years ago
about the ILanguage(obj).set_language()
after creating an object inside a lang root folder i tried
all of them don't effect the obj.language or the ILanguage(obj).get_language()
i don't get, why i have to set that manually only because i am in a test. on the plone ui this works just i expect it to.
seems that tm.register_translation('en', portal.en.a-folder)
does not query the catalog, so it has to call itself processQueue
before.
as i develop a tool which uses pam-features, i came across testing them and had to create sample content. which had some strange side-effects.
in testing.py
in my test_content.py
the only thing fixing that was to add this in testing.py after registering the translation. (big thanks to @jensens for helping me on that!)
seams something is not as the documentation tells me. and why is the language not set, after creating it? (i tried using notify(), which didn't help by any means)