added plugin translation hook, improve translation
transfer constants in single file