Hello PMS,
Recently, someone asked me about multilangual ability in Easy 2 Gallery.
The first thought in my mind was about integrating the YAMS and E2G.
One thing you should realized is that E2G does not have any relation to the document parsing data, while YAMS runs on it.
E2G’s snippet retrieves all data from its own database.
I’ve dug the YAMS’s code, and it seems that all the language configurations are stored inside the yams.config.inc.php, which is called by the yams.class.inc.php (Initialise() function).
I do not need more field in YAMS’s module.
What I’d like to ask is that will you get YAMS provides some CONSTANT values, so when E2G sniffs:
if(defined(YAMS_CONSTANT_...))
then the E2G’s snippet will make the language conversion itself.
If you don’t mind to do that, then it will be easier for snippets like E2G to integrate the
language selection trigger.
From what I can feel right now, the priority constants are (the names are only to desribe my thought):
- ..._LANGS_LIST
- ..._LANGS_ACTIVE
- ..._LANGS_DEFAULT
If you can provide these, then I can set E2G’s module to have more language fields according to that options.
What do you think?