Mostrando entradas con la etiqueta Change language programmatically SharePoint 2010. Mostrar todas las entradas
Mostrando entradas con la etiqueta Change language programmatically SharePoint 2010. Mostrar todas las entradas

jueves, 13 de marzo de 2014

viernes, 16 de agosto de 2013

Weekend Trick (Change Interface Lenguage in SharePoint using 5 code lines)

Pre-requisites:



  • Install the package.
  • Review the installation: go to Central Administration - Upgrade and Migration - Check product and patch installation status.
  • In your site go to Site Action - Site Settings - Site Administration - Language Settings and enable "Alternate language(s) Spanish.
  • Now in your visual studio solution create a new item - Visual web part and save as "ChangeLanguage".
  • Add  a button with the text "Change Language to Spanish".

  • Go to codebehind add the next name spaces: 
    • using Microsoft.SharePoint;
    • using System.Globalization;
    • using System.Threading;

  • into button click event add the next five code lines.

  • F5 add the webpart and test.

  • Press the button and the UI SharePoint language change to spanish.


Regards.
Oscar Miguel Dominguez Acevedo.