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

2006/unicorn/src/org/w3c/unicorn/language Language.java,NONE,1.1.2.1 LanguageFactory.java,NONE,1.1.2.1 LanguageNegociator.java,NONE,1.1.2.1

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 05 Aug 2009 10:26:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MYdhu-0005AL-8Z@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/language
In directory hutz:/tmp/cvs-serv19002/src/org/w3c/unicorn/language

Added Files:
      Tag: dev2
	Language.java LanguageFactory.java LanguageNegociator.java 
Log Message:
New project

--- 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;

public class LanguageNegociator {

	public static String negociate(Enumeration locales) {
		// TODO Auto-generated method stub
		return "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 Wednesday, 5 August 2009 10:27:04 UTC

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