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

2006/unicorn/src/org/w3c/unicorn/util Language.java,1.11,1.12

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 08 Oct 2009 11:07:12 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mvqq0-0000TD-32@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv1770/src/org/w3c/unicorn/util

Modified Files:
	Language.java 
Log Message:
getLocale logs a warning if a requested locale is not present on the system

Index: Language.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Language.java	7 Oct 2009 14:59:44 -0000	1.11
+++ Language.java	8 Oct 2009 11:07:10 -0000	1.12
@@ -31,6 +31,8 @@
 			if (locale.getLanguage().equals(languageCode))
 				return locale;
 		}
+		if (isISOLanguageCode(languageCode))
+			Framework.logger.warn("Missing locale: " + languageCode + ". This locale should be installed on the system in order to translate Unicorn in this language.");
 		return null;
 	}
 	
Received on Thursday, 8 October 2009 11:07:16 UTC

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