+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Set language for email campaign

Set language for email campaign

4 posts, 0 answered
  1. Bert
    Bert avatar
    3 posts
    Registered:
    26 Mar 2013
    05 Apr 2013
    Link to this post
    Hi,

    Is there any way to couple a language to an email campaign (or issue or mailing list)?

    If not, I think the only option is to create a campaign per language? But how does SF know how to translate lists, events, news items (and so on) in the rendered and sent campaign issue?

    In other words, is there any way to configure a language for an issue/campaign, so that eg. news items are rendered in the correct language?
  2. Arno
    Arno avatar
    249 posts
    Registered:
    08 Sep 2010
    05 Apr 2013
    Link to this post
    Hi Bert,

    I don't think it can be done like you propose (I would like that option though). What I have configured (not used yet) is an mailing list for each language. That allows you to send issues to the mailing list you need. Each issue needs to be customized per language. I'm not sure if there's a better way.
  3. Bert
    Bert avatar
    3 posts
    Registered:
    26 Mar 2013
    05 Apr 2013 in reply to Arno
    Link to this post
    Hi Arno,

    This is indeed a solution for content that is scoped onto that single issue. So, only content and images for that issue.

    Once you add eg. News to the newsletter, I don't really see how SF can know in which translation the news needs to be rendered on the particular issue...
  4. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    09 Apr 2013
    Link to this post
    Hello,


    We have answer you on the support ticket you have opened. I will share our answer with the community.


    Actually, the Email campaigns module doesn't have a multilingual functionality, so all content items will be rendered in the default language (when you drop a widget on the page).
    However, you can workaround this behavior by getting the correct language version of your items by code. For this purpose (if you're creating your Email campaigns as Web page) you can base it on a master page and display the content of your news items in some control  - let's say a label. In the code-behind of the master page, you can get the content from any culture like this:

    var newsItem = App.WorkWith().NewsItems().Where(t => t.Title == "test").Get().FirstOrDefault();
    var culture = "AR";
    var contentSA = newsItem.GetString("Content")[culture];
    LabEl.Text = contentSA;

    Note that to use the extension method GetString you need a reference to Telerik.Sitefinity.Model. As you see, I'm assigning the Arabic content of my news item to a label and this way displaying it on the front-end. This is done in a master page, as prevously noted. Then the master page is used as a template for the campaign. Please refer to the attached image.

    Kind regards,
    Stefani Tacheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered