consolidate localized vars into a function, fix translatable strings in js, update translatable string file