Set translation strings in function

Set the translation strings in the 'set_translations' function, this prevents a zombie process that was introduced when they're set/assigned outside of a function.