W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/src/org/w3c/unicorn/util Language.java,1.21,1.22

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 22 Mar 2010 17:59:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Ntlus-0007jn-30@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv29724/src/org/w3c/unicorn/util

Modified Files:
	Language.java 
Log Message:
fixed function getLocaleDirection

Index: Language.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Language.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- Language.java	22 Mar 2010 17:43:08 -0000	1.21
+++ Language.java	22 Mar 2010 17:59:52 -0000	1.22
@@ -205,9 +205,9 @@
 	}
 	
 	public static String getLocaleDirection(ULocale locale) {
-		if (locale.getLineOrientation().equals("left-to-right"))
+		if (locale.getCharacterOrientation().equals("left-to-right"))
 			return "ltr";
-		if (locale.getLineOrientation().equals("right-to-left"))
+		if (locale.getCharacterOrientation().equals("right-to-left"))
 			return "rtl";
 		return "ltr";
 	}
Received on Monday, 22 March 2010 17:59:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT