I'm a little bit afraid that code below should be reusable. Maybe it would be a good idea to have some global constant such as LOCATORS with languages ids.