tools: port languages popup to GtkPopover