熊族大雜燴
生命經歷過失喪,歷練過滄桑,才能成就完整的生命



Community Server 2.1 SP2 部落格Blogs Calendar修正

rated by 0 users
This post has 0 Replies | 1 Follower

Top 10 Contributor
男
發表文章總數 3,993
黑熊 Posted: 2007/03/05 09:42 上午

由於中文化後的部落格,在行事曆上面的星期幾的字眼,變成了星而已,應此必須做簡化的修改,修改方式參閱

http://www.cnblogs.com/liudao/archive/2006/04/10/371321.html

針對ComminityServerBlogs20\Controls\WeblogCalender.cs 進行修改

public WeblogCalendar() 
  

      
string[] weekdayAry = new string[] """""""""""""" }
      System.Globalization.CultureInfo info 
= new System.Globalization.CultureInfo("zh-CN"); 
      info.DateTimeFormat.AbbreviatedDayNames 
= weekdayAry; 
      System.Threading.Thread.CurrentThread.CurrentCulture 
= info; 
  }

然后在postCalendar = FindControl("PostCalendar") as Calendar;
下加上 postCalendar.DayNameFormat = DayNameFormat.Short; 将日期变为短格式

Compile 修正檔案請從 Community Server 2.1 SP2 部落格Blogs Calendar修正下載

不要問我為你做了什麼,只要問你為我做了什麼,問這麼多有什麼用呢?好好的給我做就對了
我的部落格 http://bbs.jbear.net/blogs/black

頁 1 / 1 (1 項) | RSS
  


Creative Commons License

Powered by Community Server (Non-Commercial Edition), by Telligent Systems