• last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- fix spelling of variable name

- Make parsing of "Accept-Language" header fields more robust:

ignore spaces after the comma, ignore wildcard value "*"

- Accept locales as syntactically correct when these contain numeric values (such as e.g. "es_419" for “Latin American Spanish”).

Since lang::conn::valid_locale_p is used in lang::conn::get_accept_language_header, OpenACS throws exceptions

on invalid locales, these caused problem even when these are low on the preference list of the Accept-Language header field.

- allow empty locale cookie

- return the invalid cookie in the error

- add validator for locale (useful, when headers or locale-cookie were hacked)

- provide an error message for invalid locale values

- add editor hints to keep spaces/tabs in the furture more consistent

  1. … 754 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2547 more files in changeset.
- brace expressions to allow for tcl compilation

- use "in" or not in (ni) operator instead of lsearch (for readability and performance)

  1. … 9 more files in changeset.
- get rid of empty_string_p in non-deprecated code

- make use of tcl byte-code compiler

  1. … 42 more files in changeset.
Performance improvements for rp_filter and parameter:

- improve performance of rp_filter (which is run on every

non-resources request) significantly (often a factor of 2)

- improve scalability by reducing number of required mutex locks

(e.g. for secret token handling)

  1. … 8 more files in changeset.
Implements TIP#137 Support for 3-chars language codes

  1. … 15 more files in changeset.
Fixes:

1. If user_id = 0, try to retrieve the locale from the cookie. If not, fallback to the system one

2. If the user locale is not set in her preferences, return the system one.

Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

  1. … 367 more files in changeset.
Merged acs-core oacs-5-2 (currently 5.2.3) -> HEAD.

TODO:

1. Bump acs-core package version numbers to 5.3.0d1

2. Would be nice to do a test install, wouldn't it?

  1. … 721 more files in changeset.
added support to support user_id when setting locale

added user_id switch when setting locale

Fixed two bugs (in my opinion) as the procedure was doing two entirely different things when called with a user_id or without.

add proc doc to a bunch of procs, declare some things with explicit namespaces rather than in namespace eval, make some public things private

  1. … 25 more files in changeset.
remove the acs-lang procs which were deprecated/warn in 5.0; fix lingering references to deprecated procs

  1. … 32 more files in changeset.
merge of changes on oacs-5-1 branch between tags jcd-merge-5-1-20040712 and jcd-merge-5-1-20040724 to HEAD

  1. … 138 more files in changeset.
Partly applying patch #572, fixing #2006

merge of changes on oacs-5-1 branch between tags jcd-merge-5-1-20040517 and jcd-merge-5-1-20040628 to HEAD

  1. … 687 more files in changeset.
- There's no consistent use of upper/lower case in the locale and language

columns of the ad_locales table so we need to do case insensitive searches.

- ad_locales defines the language column as char(3). Searches for 2-letter

language codes fail because (at least on PG) all 2-letter entries have a

trailing space in the database.

  1. … 2 more files in changeset.
removing comment about package_id in lang::user::locale proc being preliminary

removing comment about package_id in lang::user::locale proc being preliminary

Added proc to get options-list of enabled locales

  1. … 1 more file in changeset.
merge of changes on oacs-5-0 branch to oacs-5-0-0b4 tag

  1. … 598 more files in changeset.
bugfix #824: needed to add -user_id switch to some lang::user procs to specify the user for which to get the locale; also had to change the default upvar level of lang::message::lookup from 2 to 1

  1. … 2 more files in changeset.