My site uses multiple languages and I'm using menu_tree_all_data() to get the menu tree programmatically. Currently all nodes and their translated nodes use the same menu tree.
If I use a menu block the menu that is displayed is filted by language version of the site the user is on. Which is good.
When calling the menu_tree_all_data() in code to build a menu programmatically it returns the entire tree and there does not seem to be an option to filter the menu by a language.
Does anyone know how to get the menu tree in code filted for a specific language?