<small id='NlF1t'></small><noframes id='NlF1t'>

        <bdo id='NlF1t'></bdo><ul id='NlF1t'></ul>
      1. <i id='NlF1t'><tr id='NlF1t'><dt id='NlF1t'><q id='NlF1t'><span id='NlF1t'><b id='NlF1t'><form id='NlF1t'><ins id='NlF1t'></ins><ul id='NlF1t'></ul><sub id='NlF1t'></sub></form><legend id='NlF1t'></legend><bdo id='NlF1t'><pre id='NlF1t'><center id='NlF1t'></center></pre></bdo></b><th id='NlF1t'></th></span></q></dt></tr></i><div id='NlF1t'><tfoot id='NlF1t'></tfoot><dl id='NlF1t'><fieldset id='NlF1t'></fieldset></dl></div>
        <tfoot id='NlF1t'></tfoot>
        <legend id='NlF1t'><style id='NlF1t'><dir id='NlF1t'><q id='NlF1t'></q></dir></style></legend>

      2. 有没有办法在 Java 中检测 RTL 语言?

        Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)

            <bdo id='Qr74L'></bdo><ul id='Qr74L'></ul>

              <tbody id='Qr74L'></tbody>
            <tfoot id='Qr74L'></tfoot>
            • <small id='Qr74L'></small><noframes id='Qr74L'>

                <legend id='Qr74L'><style id='Qr74L'><dir id='Qr74L'><q id='Qr74L'></q></dir></style></legend>

                1. <i id='Qr74L'><tr id='Qr74L'><dt id='Qr74L'><q id='Qr74L'><span id='Qr74L'><b id='Qr74L'><form id='Qr74L'><ins id='Qr74L'></ins><ul id='Qr74L'></ul><sub id='Qr74L'></sub></form><legend id='Qr74L'></legend><bdo id='Qr74L'><pre id='Qr74L'><center id='Qr74L'></center></pre></bdo></b><th id='Qr74L'></th></span></q></dt></tr></i><div id='Qr74L'><tfoot id='Qr74L'></tfoot><dl id='Qr74L'><fieldset id='Qr74L'></fieldset></dl></div>

                2. 本文介绍了有没有办法在 Java 中检测 RTL 语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要能够检测我的用户正在查看的当前语言是否是 RTL(从右到左)语言,例如阿拉伯语.

                  I need to be able to detect whether the current language my user is viewing is an RTL (Right To Left) language like Arabic.

                  目前我只是根据系统属性 user.language 中的语言代码检测到这一点,但一定有更好的方法.

                  At the moment I'm just detecting this based on the language code from the system property user.language, but there must be a better way.

                  推荐答案

                  ComponentOrientation.getOrientation(new Locale(System.getProperty("user.language"))).isLeftToRight();  
                  

                  • 资源
                  • 这篇关于有没有办法在 Java 中检测 RTL 语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                    本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                  How to find out locale-dependent text orientation in java?(如何在java中找出依赖于语言环境的文本方向?)

                      <small id='wCuJr'></small><noframes id='wCuJr'>

                        <tbody id='wCuJr'></tbody>
                      • <bdo id='wCuJr'></bdo><ul id='wCuJr'></ul>
                        <tfoot id='wCuJr'></tfoot>

                          <legend id='wCuJr'><style id='wCuJr'><dir id='wCuJr'><q id='wCuJr'></q></dir></style></legend>

                          1. <i id='wCuJr'><tr id='wCuJr'><dt id='wCuJr'><q id='wCuJr'><span id='wCuJr'><b id='wCuJr'><form id='wCuJr'><ins id='wCuJr'></ins><ul id='wCuJr'></ul><sub id='wCuJr'></sub></form><legend id='wCuJr'></legend><bdo id='wCuJr'><pre id='wCuJr'><center id='wCuJr'></center></pre></bdo></b><th id='wCuJr'></th></span></q></dt></tr></i><div id='wCuJr'><tfoot id='wCuJr'></tfoot><dl id='wCuJr'><fieldset id='wCuJr'></fieldset></dl></div>