equal
deleted
inserted
replaced
152 * @return the orientation for the locale |
152 * @return the orientation for the locale |
153 */ |
153 */ |
154 public static ComponentOrientation getOrientation(Locale locale) { |
154 public static ComponentOrientation getOrientation(Locale locale) { |
155 // A more flexible implementation would consult a ResourceBundle |
155 // A more flexible implementation would consult a ResourceBundle |
156 // to find the appropriate orientation. Until pluggable locales |
156 // to find the appropriate orientation. Until pluggable locales |
157 // are introduced however, the flexiblity isn't really needed. |
157 // are introduced however, the flexibility isn't really needed. |
158 // So we choose efficiency instead. |
158 // So we choose efficiency instead. |
159 String lang = locale.getLanguage(); |
159 String lang = locale.getLanguage(); |
160 if( "iw".equals(lang) || "ar".equals(lang) |
160 if( "iw".equals(lang) || "ar".equals(lang) |
161 || "fa".equals(lang) || "ur".equals(lang) ) |
161 || "fa".equals(lang) || "ur".equals(lang) ) |
162 { |
162 { |