Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MB 273 posts 936 karma points
    Dec 11, 2016 @ 19:47
    MB
    0

    How exactly do you change the language? I can see Danish (da-DK) is included but how do I change to it?

  • MB 273 posts 936 karma points
    Jan 10, 2017 @ 14:15
    MB
    0

    Selfish bump after 30 days. Nobody knows? :)

  • Eric Petersson 32 posts 116 karma points
    Jan 13, 2017 @ 00:10
    Eric Petersson
    1

    Hi, Mike

    Do you mean change language of the content tree or the Umbraco backoffice itself?

    You may set preferred languages based on the users using the backoffice in the Users section of Umbraco.

  • MB 273 posts 936 karma points
    Jan 13, 2017 @ 11:38
    MB
    0

    Hey Eric,

    Thank you for your response.

    I'd like to change the language on the frontpage as you can see here :)

  • Eric Petersson 32 posts 116 karma points
    Jan 13, 2017 @ 12:13
    Eric Petersson
    1

    Then you may set this on the Culture and hostnames options in the content tree action:

    enter image description here

    More of this in the forums: https://our.umbraco.org/forum/using/ui-questions/56883-culture-and-hostnames-difference-between-culture-and-domains

  • MB 273 posts 936 karma points
    Feb 09, 2017 @ 13:04
    MB
    0

    Hey Eric,

    I apologize for the slow response! I didn't notice the response.

    My Culture and hostname is already da-DK but the plugin doesn't really acknowledge it since it's still English.

  • MB 273 posts 936 karma points
    Feb 16, 2017 @ 18:58
    MB
    100

    Alright guys I fixed it using Umbraco Dictionary :)

    If you don't know what it is, here's how I did it:

    Solution:

    1) I use @Umbraco.GetDictionartyValue in my foreach as you can see here:

     foreach (var time in times)
                    {
                        <ul itemprop="dayOfWeek" datetime="@time.Weekday">
                            <li>@Umbraco.GetDictionaryValue("Weekday-Property-" +  @time.Weekday)</li>
    
                            @if (time.IsScheduled)
                        {
                                <li itemprop="opens">@time.Open</li>
                                <li itemprop="closes">@time.Close</li>
                            }
                            else
                            {
                                <li itemprop="opens">Lukket</li>
                                <li itemprop="closes">Lukket</li>
                            }
                        </ul>
                    }
    

    2) You can rename Weekday-Property- to anything you'd like, such as Green-Potato-Day-.

    3) I then entered Umbraco Backoffice -> Settings -> Dictionary and choosed create.

    4) For the name I entered Weekday-Property-Monday because in my Foreach I entitled the dictionaryitem Weekday-Property- followed by the @time.Weekday which is Monday, Thuesday etc. etc..

    5) My newly created Dictionary item is entitled Weekday-Property-Monday with the value of "Mandag".

    I hope it helps :)

Please Sign in or register to post replies

Write your reply to:

Draft