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.
This doc block should be outdented, like the others in the file.