Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Some help about languages and fields in sharepoint with powershell

$
0
0

Good afternoon,

   I need some help about languages and fields in sharepoint with powershell.

   I got a sharepoint site and a powershell having to set the 'Display name' of columns in lists foer either 'en-US' and  'fr-BE'.

   I cannot resolve this issue and tried a lot of things.

   How can I in powershell set values for title columns either for the 2 cultures?

    ...
    $site = New-Object -Type Microsoft.SharePoint.SPSite -ArgumentList "my site url..."
    $web = $site.OpenWeb()
    $list = $web.Lists["my list name...]
    $column = $list.Fields.GetFieldByInternalName("my internal name...");

//update for en-US
...
        $column.Title = "my display value for en-US";
$column.Update();
...


//update for  fr-BE
...
$column.Title = "my display value for fr-BE";
        $column.Update();
...

    $web.Update();
    $web.Dispose()
    $site.Dispose()

.....

   Thank you for any help.

Claude

         

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>