Login

MultilanguageSubscriptionMail

Versions: 4.31 - 4.51, FAQ number: 143, Old FAQ number: 143
Note: This faq does not apply to the globalization support in version 4.60 and later!

 

What happens in the MultilanguageSubscriptionMail?

The MultilanguageSubscriptionMail is a multi language filter for the ordinary SubscriptionMail functionality, and it works as follows:

 

Language for the explanation

Pren. page – page that should be delivered in the subscription mail

Pren. root – The root where to start locking for Pren. pages to generate the subscription mail from.

Default language – the page is accessed without language handling

user_language – a container for each user and her subscription language

 

Every pren. roots has a number of accepted languages for every user, the language for the root is set when a user start a subscription on that root. The language for that pren. root is removed when the user removes the subscription for the language the user is currently using.

A mail is created for every language that the user has a subscription on.

 

Algorithm to sort out what pren.pages to include in the subscription mail is:

 

For each subscription mail that should be sent with SubscriptionMail do

The user has no selected language for that subscription root

                        ð To all user_languages

The pren page is not a multi language page

                        ð To all user_languages

For all languages in pren. root

                        Exists a updated version of the language?
                                    ð To all user_languages for current language

                        Else

                                    Is there an updated version of the default language for the page?

                                                ð To user_language with the language set to default language

                                    Is there a “language fallback“ for the pren. page?

ð     To user_language that is set to default language

Send a mail to all users and there languages that in the user_language container.

EPiTrace logger