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.