• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
added user_id switch when setting locale

Added get_locale_options

Added lang::util::convert_to_i18n made optional (depending on the installation of acs-translations)

Added procedure to get all locales

Added procedure to retrieve all locales known in the system

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

added localize_list_of_lists util proc

Added procedure to transform a string into an I18N version of itself (so it can be translated).

Backed out last commit, as the procedure already existed and is called lang::util::localize ...

Added procedure to convert messages in #message_key# syntax to something that can be used in select boxes. This is necessary due to the fact thatwe are storing message_keys e.g. with "pretty_name" directly in the database.

Added namespace eval to avoid start-up failure

fix typo in disable-locale action

document a bit better, add a disable-locale action

include variable define for ::lang::util::percent_match

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. … 22 more files in changeset.
remove the acs-lang procs which were deprecated/warn in 5.0; fix lingering references to deprecated procs

  1. … 27 more files in changeset.
don't use en_US in lc_numeric if lookup fails since when acs-lang totally borked even en_US might not be there and the admin page won't display

functions for enabling and setting locale in the install.xml file

    • -0
    • +22
    ./lang-install-procs.tcl
%D format (which should not be used) had month twice.

commit to HEAD of merge of changes on oacs-5-1 branch between tags jcd-merge-5-1-20040724 and jcd-merge-5-1-20050111

  1. … 2273 more files in changeset.
An attempt to speed up the lc_time_fmt call, which gets hit 10+ times per page in calendar applications. We're now memoizing the compilation of % codes to tcl procs and vars. Also, we're no longer rebuilding the hash array of percent codes each time, instead using a namespace var that gets initialized in localization-data-init.tcl

Change locale to unamed optional parameter.

reverting DaveB's changes because the change in params is breaking things

Back out previous commit. Remove -locale switch from lang::util::localize

Add optional -locale parameter to lang::util::localize. Defaults to

[ad_conn locale]

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. … 685 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.

merge all the changes on the oacs-5-1 and dotlrn-2-0 branches up to tag jcd-merge-20040420

  1. … 645 more files in changeset.