fixes for detecting the proper language to display for blocks and when editing inline for pages