Added a new parameter to the lang bar printing method to accept a custom view to build it