Dolibarr/dolibarr — pull request #1874 by rdoursenaud (2014-09-09 08:58:59+00:00)
Title: Workflowextrafieldstranslation

This is a first step to see if upstream is OK to go that route.

The idea here is to provide a simple way for external modules to provide translations for workflow entries and extrafields.

For workflow, the approach is fairly simple since we know from which module it comes.

For extrafields, I structured the translation token just like pictos and other module parts in the form of "TranslationKey@modulename" to provide that information.

The module developer has then to just provide respectively workflow.lang or extrafields.lang to have the translation automagically loaded.

Please let me know if this strategy is OK or if you have a better one.