Top Navigation translation

20/03/2012 10:04

#Translations of four tabs: buying "how to", My Requisitions, Helpdesk and Feedback to French (1036) and Dutch(1043)

#site collection url 

$siteUrl=https://td_sp_ui/sites/test

 

#Top Navigation Bar Translations
  $web=get-spweb $siteUrl

#get TopNavigationBar object
$node=$web.Navigation.TopNavigationBar

#buying "how to" tab
$guidedBuyingNode=$node|where-object {$_.Title -eq 'buying "how to"'}

$guidedBuyingNode.TitleResource.SetValueForUIculture(1036, "Débuter les achats")
$guidedBuyingNode.TitleResource.SetValueForUIculture(1043, "Start met aankopen")
$guidedBuyingNode.update()

#My Requisitions tab
$myRequisitionNode=$node|where-object {$_.Title -eq "My Requisitions"}

$myRequisitionNode.TitleResource.SetValueForUIculture(1036, "Mes demandes d'achat")
$myRequisitionNode.TitleResource.SetValueForUIculture(1043, "Mijn aanvragen")
$myRequisitionNode.update()


#Helpdesk tab
$helpdeskNode=$node|where-object {$_.Title -eq "Helpdesk"}

$helpdeskNode.TitleResource.SetValueForUIculture(1036, "Helpdesk")
$helpdeskNode.TitleResource.SetValueForUIculture(1043, "Helpdesk")
$helpdeskNode.update()


#Feedback tab
$feedbackNode=$node|where-object {$_.Title -eq "Feedback"}

$feedbackNode.TitleResource.SetValueForUIculture(1036, "Feedback")
$feedbackNode.TitleResource.SetValueForUIculture(1043, "Contacteer Ons")
$feedbackNode.update()

$web.dispose()