You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@esme.apache.org by ejc <er...@gmail.com> on 2011/01/19 22:21:04 UTC

Re: [Lift] Non-scoped localized strings

I very recently started working with Apache ESME and ran into a
problem with the mailto: action.
When a mailto: rule is matched, it sends a message to an actor which
actually sends the mail.
The subject and from headers are being set like so (in the actor so no
S scope?):

        Mailer.sendMail(From(S.?("custom_mail_from_adress")),
Subject(S.?("custom_mail_subject"))
                        To(who), body)

This isn't a localization per se, but to my understanding, a way to
provide customized strings.
If this really isn't a good way to do this, do you have other suggestions?

I just saw that you mentioned submitting a ticket in the referenced
mail thread (realizing it was over
a year ago) and thought I would do so since no one else had.  I
realize it means work needs to be
done to accomplish this, for now we've decided to put the strings in
instead of attempting the
localization.

I've copied the esme list in case I've missed something.

Thanks for your time,
Eric

On Wed, Jan 19, 2011 at 11:56 AM, David Pollak
<fe...@gmail.com> wrote:
> The problem with non-scoped Localized Strings is that the resource loading
> process is tied to the current URL and the current session's Locale
> calculation.
>
> Can you put together a use case for trying to localize a String outside an
> HTTP request?
>
> On Wed, Jan 19, 2011 at 9:49 AM, ejc <er...@gmail.com> wrote:
>>
>> As discussed in this e-mail:
>>
>> http://www.mail-archive.com/esme-dev@incubator.apache.org/msg02243.html
>>
>> it would be nice to access localization outside of S scope by passing a
>> locale.
>>
>> Thanks,
>> Eric
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Lift" group.
>> To post to this group, send email to liftweb@googlegroups.com.
>> To unsubscribe from this group, send email to
>> liftweb+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
> Surf the harmonics
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to liftweb@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>

Re: [Lift] Non-scoped localized strings

Posted by David Pollak <fe...@gmail.com>.
Eric,

Okay... I get the use case... please re-open the ticket.

Sorry for the delay.

David

On Wed, Jan 19, 2011 at 1:21 PM, ejc <er...@gmail.com> wrote:

> I very recently started working with Apache ESME and ran into a
> problem with the mailto: action.
> When a mailto: rule is matched, it sends a message to an actor which
> actually sends the mail.
> The subject and from headers are being set like so (in the actor so no
> S scope?):
>
>        Mailer.sendMail(From(S.?("custom_mail_from_adress")),
> Subject(S.?("custom_mail_subject"))
>                        To(who), body)
>
> This isn't a localization per se, but to my understanding, a way to
> provide customized strings.
> If this really isn't a good way to do this, do you have other suggestions?
>
> I just saw that you mentioned submitting a ticket in the referenced
> mail thread (realizing it was over
> a year ago) and thought I would do so since no one else had.  I
> realize it means work needs to be
> done to accomplish this, for now we've decided to put the strings in
> instead of attempting the
> localization.
>
> I've copied the esme list in case I've missed something.
>
> Thanks for your time,
> Eric
>
> On Wed, Jan 19, 2011 at 11:56 AM, David Pollak
> <fe...@gmail.com> wrote:
> > The problem with non-scoped Localized Strings is that the resource
> loading
> > process is tied to the current URL and the current session's Locale
> > calculation.
> >
> > Can you put together a use case for trying to localize a String outside
> an
> > HTTP request?
> >
> > On Wed, Jan 19, 2011 at 9:49 AM, ejc <er...@gmail.com>
> wrote:
> >>
> >> As discussed in this e-mail:
> >>
> >> http://www.mail-archive.com/esme-dev@incubator.apache.org/msg02243.html
> >>
> >> it would be nice to access localization outside of S scope by passing a
> >> locale.
> >>
> >> Thanks,
> >> Eric
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Lift" group.
> >> To post to this group, send email to liftweb@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> liftweb+unsubscribe@googlegroups.com<li...@googlegroups.com>
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/liftweb?hl=en.
> >>
> >
> >
> >
> > --
> > Lift, the simply functional web framework http://liftweb.net
> > Beginning Scala http://www.apress.com/book/view/1430219890
> > Follow me: http://twitter.com/dpp
> > Blog: http://goodstuff.im
> > Surf the harmonics
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to liftweb@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscribe@googlegroups.com<li...@googlegroups.com>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/liftweb?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to liftweb@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscribe@googlegroups.com<li...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics