Refresh grammar info when the grammar is updated

This means that if a new module is added that introduces
a new language then this language will also show up in the
language list in the sidebar.