TiddlyWiki.org

Ticket #592 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

config.locale is undefined by default

Reported by: psd Assigned to: MartinBudden
Priority: minor Milestone: 2.4
Component: core Version:
Severity: undefined Keywords: language locale lingo
Cc:

Description (Last modified by psd)

Ideally value should be take from browser language preferences:

http://www.w3.org/International/questions/qa-lang-priorities

Accessing the language from Javascript seems to be available in most browsers using one of:

navigator.language window.navigator.language, navigator.browserLanguage navigator.userLanguage

and defaulted to "en-US" to match the browser default or "en" to match the xml:lang="en" lang="en" attributes.

Change History

16/04/08 10:40:56 changed by psd

  • description changed.

16/04/08 10:46:19 changed by MartinBudden

  • owner changed from JeremyRuston to MartinBudden.
  • status changed from new to assigned.

Actually the language value should be set from the current language, not the browser preference. This is already done by the translation plugins, but is not done by the English default.

16/04/08 10:54:01 changed by MartinBudden

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in changeset:4409