- From: Mercurial notifier <nobody@w3.org>
- Date: Fri, 30 Jul 2010 03:39:02 +0000
- To: Unicorn Updates <www-validator-cvs@w3.org>
changeset: 1403:f5ed45d9494c tag: tip user: Thomas Gambet <tgambet@w3.org> date: Thu Jul 29 23:38:36 2010 -0400 files: src/org/w3c/unicorn/util/Language.java description: + easter code diff -r 0ceafe41f977 -r f5ed45d9494c src/org/w3c/unicorn/util/Language.java --- a/src/org/w3c/unicorn/util/Language.java Thu Jul 29 23:38:12 2010 -0400 +++ b/src/org/w3c/unicorn/util/Language.java Thu Jul 29 23:38:36 2010 -0400 @@ -91,6 +91,8 @@ logger.debug("languageCode: " + languageCode); if (languageCode == null) return Language.defaultLocale; + if (languageCode.equals("lolcat")) + return getUILocale("lolcat"); ULocale resolved = installedLocaleMatcher.getBestMatch(languageCode); if (resolved.getName().equals("zh")) resolved = ULocale.SIMPLIFIED_CHINESE; @@ -113,6 +115,8 @@ logger.debug("languageCode: " + languageCode); if (languageCode == null) return Language.defaultLocale; + if (languageCode.equals("lolcat")) + return getUILocale("lolcat"); ULocale resolved = availableLocaleMatcher.getBestMatch(languageCode); if (resolved.getName().equals("zh")) resolved = ULocale.SIMPLIFIED_CHINESE; @@ -165,6 +169,8 @@ public static ULocale getLocaleFromFileName(String fileName) throws IllegalArgumentException{ String localeString = fileName.split("\\.")[0]; + if (localeString.equals("lolcat")) + return new ULocale("lolcat"); ULocale locale = Language.getLocale(localeString); if (locale == null) { throw new IllegalArgumentException("Locale not found for file name: " + fileName);
Received on Friday, 30 July 2010 03:39:05 UTC