Added a "registerTranslateSources" hook to add translate sources besides templates and plugins