Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

my problem is that how to create custom calender in share point to use it.

I want to replace standard sharepoint calender with persian calender to work with it in all sharepoint parts.

any help would be appreciate.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I found a solution on a following issue to change the default language to alternate language programmatically using which the sharepoint designer's actions and conditions language doesn't change below is the javascript code:

_spBodyOnLoadFunctionNames.push('ChangeLanguage');

function ChangeLanguage()

{

//script fetches current display language

var lcid =_spPageContextInfo.currentLanguage;

//1033 language code for Persian

if(lcid.toString()!=1025)

{

var today = new Date();

var oneYear = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000);

var url = window.location.href;

//script changes current display language to arabic i.e 1025

document.cookie = "lcid=" + 1025 + ";path=/;expires=" + oneYear.toGMTString();

window.location.href = url;

}

}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.