These lines just factorize the deleted code, that was copied from ezpI18n::tr() function