Module for Multilingual edition (MLE)

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
newclear

Module for Multilingual edition (MLE)

Post by newclear »

Hello people,
Lets talk about developing multilingual modules who using multilingual edition of cmsms.
I know we expecting the official multilingual cmsms but now we have the unofficial one.

I have some technical difficulties developing module for frontend in multilingual edition.
My problems happens when I using the logic of links, forms and redirections and their functions.
The multilingual edition needs a parameter in URL named 'hl' and module needs to pass this parameter to the url to works well.

Because language parameter is passed through url via GET i cannot use module function
CreateFrontEndFormStart without placing hidden field with language parameter in the form. If there is no language parameter the returned page will be without the needed 'hl' parameter in the GET and will be opened in default language.

If i use CreateFrontEndLink i need to take only the href value and append lang parameter to it.

The ReddirectForFrontEnd function is useless because i cannot append the lang parameter without module prefix to it.

If i not pass the language parameter i expect the page to open in the default language.

I hope you understand what is the problem here. I loosing the rail i develop modules with the cms API.
I also thinking that this can be serious problem in the official version and need discussion.

Best Regards
Svilen Sabev
Post Reply

Return to “Developers Discussion”