Fix locale file generation