----- Original Message -----
From: "Michael Gerber" <gerbermichi(a)me.com>
To: "Bill Burke" <bburke(a)redhat.com>
Cc: keycloak-dev(a)lists.jboss.org
Sent: Tuesday, February 24, 2015 7:48:56 PM
Subject: Re: [keycloak-dev] Email Internationalization
Thats written in the jira:
Our built-in themes should strive to only require internationalized message
bundles and when absolutely required stylesheet overrides (for example for
right-to-left languages). However, themes should support internationalized:
• Message bundles
• Stylesheets
• Templates
If internationalization is required for images this should by specifying
different images either through stylesheets or templates.
So you suggest that every file is overridable by a locale?
I'm not sure we need to support this for templates, stylesheets and images. It could
actually be quite bad practice. There's a lot of logic in templates, so maintaining
multiple versions of the same template would be annoying and could easily introduce bugs
and exploits. Another approach is to avoid text in images and do all translations in
messages. If the locale is made available to the template itself anyone that needs to do
some locale specific things in the template can do that within a single template with
conditions. We should definitively not use multiple templates ourselves. We may need to
support it for others, but I suggest we don't initially and see if anyone really needs
it.
With regards to emails they are simpler now, but we also want to support multi-part (text
and html), where the html template would contain other things than just the text. I
suggest we extract the text into a single message. We should then add support to resolve
variables within messages (for example "resetPasswordEmail=Hello ${user.firstName}
...").
Makes it a lot simpler to deal with translations if it's all done within messages.
Usually devs are not language experts and this would make it easy for non-devs to provide
translations.
> Am 24.02.2015 um 19:33 schrieb Bill Burke <bburke(a)redhat.com>:
>
> I agree but can you point to the original design discussion? My thought
> was that properties, .ftl, .html, really any resource could be overriden
> by a locale.
>
> On 2/24/2015 1:12 PM, Michael Gerber wrote:
>> Hi all,
>>
>> How would you internationalize the emails?
>>
>> I suggest that we create different templates (*.ftl) for each locale, what
>> do you think about that?
>>
>> Best
>> Michael
>> _______________________________________________
>> keycloak-dev mailing list
>> keycloak-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
>
http://bill.burkecentral.com
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev