- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 08 Oct 2009 11:07:12 +0000
- To: www-validator-cvs@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