sulu-cmf/sulu-standard#125 Copy locale ui

__Tasks:__

- [x] test coverage
- [ ] gather feedback for my changes

__Informations:__

| Q             | A
| ------------- | ---
| Tests pass?   | yes
| Fixed tickets | sulu-cmf/sulu-standard#125
| BC Breaks     | none
| Doc           | none
i have changed inArray usage to indexOf