[Schmitzm-commits] r1698 - trunk/schmitzm-core/src/main/java/de/schmitzm/i18n

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 30 11:30:26 CEST 2011


Author: alfonx
Date: 2011-08-30 11:30:25 +0200 (Tue, 30 Aug 2011)
New Revision: 1698

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/i18n/I18NUtil.java
Log:


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/i18n/I18NUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/i18n/I18NUtil.java	2011-08-29 13:06:28 UTC (rev 1697)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/i18n/I18NUtil.java	2011-08-30 09:30:25 UTC (rev 1698)
@@ -110,12 +110,19 @@
 
 	/**
 	 * @author Stefan Alfons Tzeggai
-	 * @param code
 	 * @return true if the code paramter is a valid ISO Language code
 	 */
 	public static boolean isValidISOLangCode(final String code) {
 		return Arrays.asList(java.util.Locale.getISOLanguages()).contains(code);
 	}
+	
+	/**
+	 * @author Stefan Alfons Tzeggai
+	 * @return true if the code paramter is a valid ISO Country code
+	 */
+	public static boolean isValidISOCountryCode(String code) {
+		return Arrays.asList(java.util.Locale.getISOCountries()).contains(code);
+	}
 
 	/**
 	 * @author Stefan Alfons Tzeggai
@@ -284,4 +291,5 @@
 
 		return langCode;
 	}
+
 }



More information about the Schmitzm-commits mailing list