Simplifying common_valid_language()
Revert "Moving common_init_locale() to the only file where it is used."

This reverts commit ce7638435fb7b55e6bb20c03c2cb6bca840b3ac4.