Refactor translation functions arguments handeling

I hope this is good enough.

I haven't included a unit test for the ```insertTranslationArguments``` function itself. If this is necessary I'm more than happy to include one.
That's a good idea I'll try moving it into the ```I18n``` class.