Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4219 closed Bug (fixed)

Fallback mechanism needed for config.language

Reported by: damo Owned by: tobiasz.cudnik
Priority: Normal Milestone: CKEditor 3.1
Component: General Version:
Keywords: IBM Confirmed Review+ Cc:

Description

A typical use case for setting the language of the editor is to use the browser's preferred setting on the request. Sometimes the value of the language may be incompatible with the supported languages because a different country code is used. E.g. "en-ie".

When an incompatible language is set via config.language the editor should use the same mechanism it does for auto-detected languages and attempt to match the language to a compatible one by stripping out the country code.

Attachments (2)

4219.patch (1.5 KB) - added by tobiasz.cudnik 7 years ago.
4219_2.patch (1.7 KB) - added by tobiasz.cudnik 7 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 years ago by tobiasz.cudnik

  • Owner set to tobiasz.cudnik
  • Status changed from new to assigned

comment:2 Changed 7 years ago by tobiasz.cudnik

  • Keywords Confirmed Review? added

TC is already available in _tests/tt/4219/4219.html.

Changed 7 years ago by tobiasz.cudnik

Changed 7 years ago by tobiasz.cudnik

comment:3 Changed 7 years ago by garry.yao

  • Keywords Review+ added; Review? removed

Please include the changelog when commiting.

comment:4 Changed 7 years ago by tobiasz.cudnik

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed with [4135] and [4136].

comment:5 Changed 7 years ago by fredck

It looks like [4135] was not a good change: #4270

Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy