Ticket #152 (closed Task: fixed)

Opened 14 months ago

Last modified 14 months ago

Set locale based on config

Reported by: Geert Owned by:
Priority: major Milestone: 2.0
Component: Core Version: SVN HEAD
Keywords: locale Cc:

Description

The locale that gets set should really be detected from the config file. This will require a translation table to convert, for example, 'en' to 'en_US'.

See core/utf8.php line 64

Change History

follow-up: ↓ 2   Changed 14 months ago by Shadowhand

Maybe we should just require the user to enter a full locale string like "en_US."

in reply to: ↑ 1   Changed 14 months ago by Geert

I'm okay with that. It's easier to develop and allows for more flexibility on the user's side. It allows to differantiate between for example 'nl_NL' and 'nl_BE'. However, to be honest, I wouldn't know what the difference really is. Anyway, folder names within i18n will have to be renamed as well.

  Changed 14 months ago by Geert

Updated in r803 and r804.

The only thing that still needs to be fixed is the userguide's template.php. It uses the core.locale setting to create html doctype and stuff. Problem is that it excepts just a two-letter variable like 'en'.

  Changed 14 months ago by Geert

  • status changed from new to closed
  • resolution set to fixed

User guide template fixed in r808.

Note: See TracTickets for help on using tickets.