Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4607431

Java Plug-in should use browser setting for Accept-Language HTTP headers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.1_01
    • deploy
    • x86
    • windows_nt

      As far as I can read into the HTTP RFC, the
      Accept-Language HTTP header should be populated with the value the user has
      set for language preference in the browser settings whether the request is
      from the browser itself or the VM (URL or URLConnection classes).

      The MS VM doesn't do this. You could set your browser preference to French
      (fr) and regular HTTP requests from the browser would set the
      Accept-Language header to "fr" as expected. However, if an applet under the
      MS VM uses the URL or URLConnection classes the Accept-Language header is
      set to the locale of the operating system. In essence the browser's
      language preference is ignored. This is not the correct behavior. The
      Netscape browsers (4.78 and under - I haven't looked at 6.x yet) and Opera
      do the right thing. IE never has done the right thing under Windows.

      The reason this is important is that a machine might have an English os
      installed. But a foreign speaker might use the system and set the browser
      to their language choice. If both the browser and the VM do not use the
      same language, there can be issues.

      In our case if you set your language preference to French (fr) when you try
      our "palm" example I sent earlier. You should hear French instead of the
      default English. This works everywhere but on IE under Windows. (IE on the
      Mac does the right thing - go figure).

            dgu Dennis Gu (Inactive)
            stanleyh Stanley Ho (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: