Move this entire if-body to a separate function, `initTransifex(...);` so that this code is way shorter.