Ticket #69 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

Language determination by Fusion.

Reported by: tgudmu Owned by: madair
Priority: P2 Milestone:
Component: Core Version: SVN
Severity: Minor Keywords:
Cc: External ID:
state: Analysing Browser: All
Operating System: All

Description

Fusion determines the locale of a client with the navigator.userLanguage which returns the language of the browser itself. What language it was set up while installed. The true locale of a user is only returned with a correct value in Internet Explorer 7 (and possibly other IE browsers).

Change History

Changed 5 years ago by tgudmu

A possibly better way would be to retrieve the locale through the HTTP header "Accept-Language" and could be done with an Ajax callback to a server side page that returns a list of Accepted-Languages which are the user's choice for locales.

Changed 5 years ago by madair

  • status changed from new to assigned
  • state changed from New to Analysing
  • milestone changed from 1.0.7 to 2.0

load strings via php and detect accept-lang header

Changed 4 years ago by pagameba

Mike is this done or at least doable for 2.0?

Changed 4 years ago by madair

  • version changed from 1.0.6 to SVN
  • browser changed from Firefox 2 to All

this is doable for 2.0 with the caveats:

- not doable if the map is using commercial layers only because there isn't necessarily any AJAX calls made to the server (MapGuide and MapServer both have a CreateSession?.php interface that can be used for this

- it would probably have to set it to the first lang code in the list, not do any fancy language setting based on the preferences in the list. (e.g. my default IE accept-language string is: "en-ca,en-us;q=0.8,fr;q=0.5,fr-ca;q=0.3", this would set language to en-CA if available, otherwise en.

Some parts of the page have already been rendered by the time CreateSession? is called and may require a redraw.

comments?

Changed 4 years ago by madair

if there are no comments I'll go ahead and commit what I have

Changed 3 years ago by madair

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone changed from 2.0 to 2.1

Changed 3 years ago by madair

  • milestone 2.1 deleted

Milestone 2.1 deleted

Note: See TracTickets for help on using tickets.