/* ************************************************************************
#
#  DivConq
#
#  http://divconq.com/
#
#  Copyright:
#    Copyright 2012 eTimeline, LLC. All rights reserved.
#
#  License:
#    See the license.txt file in the project's top-level directory for details.
#
#  Authors:
#    * Andy White
#
************************************************************************ */
package divconq.locale;

import java.util.Locale;


public class LocaleInfo extends Translations {
	protected Locale loc = null;
	
	public LocaleInfo(String name) {
		super(name);
		
		this.loc = LocaleUtil.getLocale(name);
	}
	
	public String getLanguage() {
		return this.name;
	}
	
	public Locale getLocale() {
		return this.loc;
	}
	
	public boolean isRightToLeft() {
		return "true".equals(this.get("rtl"));  
	}

}
