Add support for localization

This pull request depends on getting contribution localization merges as implemented in https://github.com/processing/processing/pull/2833