Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7499

Cordova dialogs should support BIDI text

    XMLWordPrintableJSON

Details

    Description

      Since API 19, Andorid has had the facilities to deal with bidirectional text, however, current Cordova notification implementation does not correctly handle bidirectional text in dialogs.

      We can see this is the case by first setting the language to Hebrew and then launching the following dialogs:

      navigator.notification.confirm("Pure English !!!", function(){}, "7");
      navigator.notification.confirm("עברית היא שפה מדוברת בIsrael !", function(){}, "8");

      Since we are in Hebrew, the base text direction will be RTL. This means that when we see the second notification with the Hebrew text, it will be right-justified. When we click and see the "Pure English !!Unable to render embedded object: File ( ") not found.!! Pure English" and it should be right-justified, however, we still see "Pure English !!!", left justified.

      http://w3-03.ibm.com/globalization/page/publish/4353

      Ideally you should be able to just add android:supportsRtl="true" to the manifest, however, this is doesn't seem to ne enough without setting the text direction to the locale for all of the dialogs.

      Attachments

        Activity

          People

            mrbillau Michael Billau
            mrbillau Michael Billau
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: