unicorn commit: + easter code

changeset:   1409:b1ac1312bf5d
tag:         tip
user:        Thomas Gambet <tgambet@w3.org>
date:        Fri Jul 30 11:39:49 2010 -0400
files:       src/org/w3c/unicorn/util/Language.java
description:
+ easter code


diff -r c1c5ef1b4f26 -r b1ac1312bf5d src/org/w3c/unicorn/util/Language.java
--- a/src/org/w3c/unicorn/util/Language.java	Fri Jul 30 11:39:30 2010 -0400
+++ b/src/org/w3c/unicorn/util/Language.java	Fri Jul 30 11:39:49 2010 -0400
@@ -91,8 +91,8 @@
 		logger.debug("languageCode: " + languageCode);
 		if (languageCode == null)
 			return Language.defaultLocale;
-		if (languageCode.equals("lolcat"))
-			return getUILocale("lolcat");
+		if (languageCode.equals("lolcat") || languageCode.equals("l33t") || languageCode.equals("buccaneer"))
+			return getUILocale(languageCode);
 		ULocale resolved = installedLocaleMatcher.getBestMatch(languageCode);
 		if (resolved.getName().equals("zh"))
 			resolved = ULocale.SIMPLIFIED_CHINESE;
@@ -115,8 +115,8 @@
 		logger.debug("languageCode: " + languageCode);
 		if (languageCode == null)
 			return Language.defaultLocale;
-		if (languageCode.equals("lolcat"))
-			return getUILocale("lolcat");
+		if (languageCode.equals("lolcat") || languageCode.equals("l33t") || languageCode.equals("buccaneer"))
+			return getUILocale(languageCode);
 		ULocale resolved = availableLocaleMatcher.getBestMatch(languageCode);
 		if (resolved.getName().equals("zh"))
 			resolved = ULocale.SIMPLIFIED_CHINESE;
@@ -169,8 +169,8 @@
 	
 	public static ULocale getLocaleFromFileName(String fileName) throws IllegalArgumentException{
 		String localeString = fileName.split("\\.")[0];
-		if (localeString.equals("lolcat"))
-			return new ULocale("lolcat");
+		if (localeString.equals("lolcat") || localeString.equals("l33t") || localeString.equals("buccaneer"))
+			return new ULocale(localeString);
 		ULocale locale = Language.getLocale(localeString);
 		if (locale == null) {
 			throw new IllegalArgumentException("Locale not found for file name: " + fileName);

Received on Friday, 30 July 2010 15:40:10 UTC