* Tests.cs:
* Web.csproj: * T.cs: * Global.asax.cs: * UserPost.aspx: * UserPosts.aspx: * HomeController.cs: * Request.UserLanguages may be null * App.master: a side * README: yavsc * TestByteA.cs: if TEST only * Profile.aspx: nicer * Web.config: no need of Newtonsoft.Json * style.css: little buttons * T.cs: moved to helpers ...
This commit is contained in:
@ -68,7 +68,9 @@ namespace Yavsc.Controllers
|
||||
public void InitCulture() {
|
||||
CultureInfo culture = null;
|
||||
string defaultCulture = "fr";
|
||||
|
||||
if (Request.UserLanguages==null)
|
||||
culture = CultureInfo.CreateSpecificCulture(defaultCulture);
|
||||
else
|
||||
if (Request.UserLanguages.Length > 0) {
|
||||
try {
|
||||
culture = new CultureInfo (Request.UserLanguages [0]);
|
||||
|
@ -1,21 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Configuration;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Net.Mail;
|
||||
using Yavsc;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class T
|
||||
{
|
||||
public static string GetString(string msgid)
|
||||
{
|
||||
return Mono.Unix.Catalog.GetString (msgid);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user