* 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:
Paul Schneider
2014-10-07 23:15:56 +02:00
parent f3a2efa244
commit 347ffc8a5a
13 changed files with 34 additions and 46 deletions

View File

@ -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]);

View File

@ -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);
}
}
}