BaseURL within a specified locale

I do recommend to check if I did it the right way. It is working for me, but mabye it can be done in a more prettier way!