Automate resource file generation and reformat dictionary entry