Copied to clipboard

Flag this post as spam?

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


  • sami 8 posts 108 karma points
    Jan 05, 2020 @ 12:16
    sami
    0

    Language switch relatively for all languages

    HI,

    I want to work language URL like below for English and Arabic the title will be same but only root folder name should be / for english or /ar for arabic

    we can achieve by adding Name of the page should be same for both languages if add that then back office i can cannot see arabic names from left tree of umbraco back office, so please help me to do so![enter image description here][1]

    example:

    http://Mysite.com/the-ministry/ministry-mandates/climate-affairs/

    http://MySite.com/ar/the-ministry/ministry-mandates/climate-affairs/

    enter image description here

    enter image description here

  • AddWeb Solution Pvt. Ltd 109 posts 360 karma points
    Jan 06, 2020 @ 06:11
    AddWeb Solution Pvt. Ltd
    0

    Hello,

    The name you give for the page becomes the link as seen in the screenshot.

    enter image description here

    So you can give english names to the arabic pages as well.

    Thanks

  • sami 8 posts 108 karma points
    Jan 06, 2020 @ 12:25
    sami
    0

    HI AddWeb Solution Pvt. Ltd ,

    Thanks for your reply I have done as per your suggestion, but In the navigation in Arabic all menu items are showing English..

    Here is standard nav code here item.Name In arabic page is showing arabic name as English

    @{ var selection = Model.Content.Root().Children.Where(x => x.IsVisible()).ToArray(); }
    
    @if (selection.Length > 0)
    {
        <ul>
            @foreach (var item in selection)
            {
                <li class="@(item.IsAncestorOrSelf(Model.Content) ? "current" : null)">
                    <a href="@item.Url">@item.Name</a>
                </li>
            }
        </ul>
    }
    
  • AddWeb Solution Pvt. Ltd 109 posts 360 karma points
    Jan 07, 2020 @ 08:17
    AddWeb Solution Pvt. Ltd
    0

    Hello Sami,

    Please share screen shot, did not understand the issue

    Thanks

  • sami 8 posts 108 karma points
    Jan 09, 2020 @ 08:08
    sami
    100

    finally we have added menu title property same for both languages

Please Sign in or register to post replies

Write your reply to:

Draft