Improved logic of textdomain loading.