Hi Kasun,

I think it's better to store the email template as a registry resource
instead of a registry property. For an example, if you are looking for an
email template for ES locale, you have to check whether the resource exist
or not, then get the resource and access the properties. Instead of that
you can store locale specific templates, within a localized specific
collection. There you can directly check whether the locale related
template exist or not. If exist, get that template and otherwise proceed
with the default template. Likewise, you can keep the same approach for
tenants as well.

Regards,
Chandana

On Wed, May 20, 2015 at 2:25 PM, Kasun Bandara <[email protected]> wrote:

>
> Hi all,
>
> I'm in the middle of introducing "Email Internationalization feature" for
> existing User information recovery email sending templates in IS.
>
> With this feature, users will be facilitate to define and receive
> notification emails (specific email template) based on their locale (i.e
> English,Spanish,French etc).
>
> We will be able to successfully retrieve the specific locale of the user
> through *http://wso2.org/claims/locality
> <http://wso2.org/claims/locality>* claim upon a user registration. Hence
> the respective user recovery information can be sent to the user based on
> their preferred locale.
>
> Current decomposition of the IS GReg related to emailTemplates is depicted
> as below. emailTemplate includes different email notification template
> types based on it's respective recovery information (i.e Password Reset,
> Account confirmation etc. currently only supports for "English" language)
>
>
> ​
> Proposed ramification to the existing IS Greg decomposition is depicted as
> below. (Conflates different locale templates). Here each
> emailTemplate(ENG,FRE,SPA etc.) will be stored as a *resource* in the IS
> GReg and each notification template type (i.e Password Reset, Account
> confirmation etc) will be added as the *properties *for each
> emailTemplate.
>
>
> ​
> Suggestions and ideas for implementing this feature is highly welcome.
>
> Thanks & Regards,
> Kasun Bandara.
>
> Kasun Bandara
> *Software Engineer*
> Mobile : +94 (0) 718 338 360
> <%2B94%20%280%29%20773%20451194>
> [email protected] <[email protected]>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Chandana Napagoda*
Senior Software Engineer
WSO2 Inc. - http://wso2.org

*Email  :  [email protected] <[email protected]>**Mobile : +94718169299*

*Blog  :    http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to