How to localize navigation menu in Sharepoint Online

Hi,

We need to localize our navigation menu to different languages. We used the following:

1. Managed based navigation. We've created a term set with labels for each language. But it shows only default language and is not related with user language settings.

2. Structure based navigation. We've tried to use CSOM to localize Navigation menu but it seems localization properties (TitleResource.SetValueForUICulture("en-US", "Title") don't work for navigation as they did for site, columns etc (http://blogs.msdn.com/b/vesku/archive/2014/03/20/office365-multilingual-content-types-site-columns-and-site-other-elements.aspx).

For example, the code was

$n=New-ObjectMicrosoft.SharePoint.Client.NavigationNodeCreationInformation

$n.Title ="Title"

$n.Url ="/"

$n.AsLastNode =$true

$addNode=$navColl.Add($n)

#$addNode.TitleResource.SetValueForUICulture("en-US", "Title")

#$addNode.TitleResource.SetValueForUICulture("ru-ru", "")

#$addNode.TitleResource.SetValueForUICulture("uk-ua", "")

$addNode.Update()

$ctx.ExecuteQuery()

And it didn't work.

Is it possible to localize navigation menu basing on user local language?

June 17th, 2015 3:52am

Hi croute1,

So the single way is to develop a custom solution? It is not possible to localize the navigation menu with OOB tools or CSOM (Powershell)?

June 17th, 2015 9:11am

I know you can't do so OOB, and not positive, but I don't believe you can accomplish everything with just powershell.

Free Windows Admin Tool Kit Click here and download it now
June 17th, 2015 9:28am

MS says (https://technet.microsoft.com/en-us/library/ff805087.aspx)

When a user views a site in a preferred language, certain elements of the user interface are displayed in the preferred language. ...bla-bla-bla...

Application content, such as menus, controls, site actions, site title and description, list or library titles and descriptions, top link bar links, Quick Launch links, local breadcrumbs, site and list content types, and site and list columns.

So it must work but it doesn't. Unfortunately Office 365 support cannot help too. So I'm seeking for a solution in different sources.

June 17th, 2015 9:40am

I think we're talking two different things. You can create a separate site for each language you want and it will work, but if you're trying to change an existing site in one language to another language based on the user, that's what you can't do.
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2015 9:55am

At this time I'm speaking about multilingual single site not variations sites. Variations work but they are not helpful for my purposes.

I've configured lists, site columns, content types to work in multilingual environment. I used CSOM with Powershell to configure it (thanks to Vesa Juvonen). But I don't know and cannot find how to configure navigation for a multilingual site. I'm waiting for MS support answer too

June 17th, 2015 10:01am

Hi,

It is by design that managed metadata navigation is not supported to be multilingual.

http://blogs.msdn.com/b/mvpawardprogram/archive/2013/08/05/overview-of-sharepoint-2013-multilingual-features.aspx

You need to create custom solutions to get the labels in other language and update the display of the terms in navigation with the labels based on the users language settings.

About how to get the labels:

http://www.c-sharpcorner.com/Blogs/10869/how-to-get-all-the-term-labels-for-a-particular-language-us.aspx

Thanks,

Victoria

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2015 2:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics