Hey everybody, this is my first post here! I'm building a site with three languages, and I'm having a flash presentation in there too. But since this one is getting the data from a .xml file, it doesnt know what language the site is in. Is there a variable I can send to it to let it know, like a $lang variable or something?
You're right, in 2.2.x there's no way to find out the language for an existing DataObject instance, apart from inspecting Translatable::current_lang(). This will change in one of the next minor releases, where an overhaul of the Translatable datamodel is planned. Every object has an explicit $Lang property in the new implementation.
Is there a function I can build in page.php file, so that I can do a <%control%> thing or something, this is kind of important! If anyone can give me a quick overview of what needs to be done, that would be great. The site I am working on has quite a lot of custom templates and stuff, so I would like to postpone the upgrade for now. I'm running 2.2.3.
I tried a workaround and built different templates for the different languages but then i got the " Fatal error: Call to a member function getAllFields() on a non-object in /usr/data/www/adell.adgrp.net/sapphire/core/model/Translatable.php on line 588 " error, which is also a hazzle to fix.