jdk/src/java.desktop/share/classes/java/awt/ComponentOrientation.java
changeset 26749 b6598aa90114
parent 25859 3317bb8137f4
child 35667 ed476aba94de
equal deleted inserted replaced
26748:fba66a2e8961 26749:b6598aa90114
   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         {