I have a framework that can load modules from local network. Recently, I built my own I18N system, and replaced hardcoded strings with I18N keys. My users can write their own modules with the API provided, thus they can define their own I18N keys, for which values can be assigned through console.
The problem is, when a module connects, I should check for every I18N translation calls (this is just one method), and get the parameters passed, then check if that parameter exists in the global language dictionary file, if not, then I should add it. So basically I'd like to iterate through all calls of a specific method, and get the parameter(s) they are called with. Is that possible, or should I find a workaround for this?
Aucun commentaire:
Enregistrer un commentaire