W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/src/org/w3c/unicorn/language LanguageNegociator.java,1.1.2.2,1.1.2.3 LanguageFactory.java,1.1.2.2,1.1.2.3 Language.java,1.1.2.2,1.1.2.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 06 Aug 2009 12:46:59 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MZ2N1-0000sC-V5@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/language
In directory hutz:/tmp/cvs-serv2800/src/org/w3c/unicorn/language

Added Files:
      Tag: dev2
	LanguageNegociator.java LanguageFactory.java Language.java 
Log Message:
w3 => w3c 

--- NEW FILE: Language.java ---
package org.w3c.unicorn.language;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

public class Language {

	public Language() {
		
	}
	
	public static boolean isLocale(String string) {
		Locale[] locales = Locale.getAvailableLocales();
		for (Locale loc : locales) {
			if (loc.getDisplayLanguage().equals(string))
				return true;
		}
		return false;
	}

	public static Locale getLocale(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}
	
}

--- NEW FILE: LanguageNegociator.java ---
package org.w3c.unicorn.language;

import java.util.Enumeration;
import java.util.Locale;

public class LanguageNegociator {

	public static Locale negociate(String langParameter, Enumeration locales) {
		// TODO Auto-generated method stub
		
		return new Locale("en");
		
	}

}

--- NEW FILE: LanguageFactory.java ---
package org.w3c.unicorn.language;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

public class LanguageFactory {

	public static Locale getLocale(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

}
Received on Thursday, 6 August 2009 12:47:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:37 UTC