lang-message-procs.tcl

  • last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
add localized_message to error since otherwise it is quite hard to track down which message has a problem

changed to not perform the check for embedded variables validity for acs-lang.localization-* keys

Lars helped fix the check that variable in non-en_US messages are also in the corresponding en_US message. Replacing old get_missing_embedded_vars proc with the new get_embedded_vars proc and adding a bunch of test cases

  1. … 1 more file in changeset.
make some Notices either warnings or debug and made them more descriptive by generally including the proc name as well bug #1032

  1. … 74 more files in changeset.
Adding check to lang::message::register that non en_US messages don't have invalid embedded variables (that are not present in en_US message)

Better error message when substitution variable doesn't exist

cleanup and renaming of import/export procs in lang::catalog namespace. Now there are really only two public procs to know about: lang::catalog::import and lang::catalog::export. Updating all invocations of the procs and test cases. Adding proc lang::message::unregister for deleting message keys - used in test case teardown.

  1. … 10 more files in changeset.
Changed message key encoding to not confuse eval or subst

  1. … 1 more file in changeset.
Translator mode now reintroduces the green circles

bug 787 and bug 174 - adding new robust translator mode that lists all translations on the current page at the bottom of the page

  1. … 3 more files in changeset.
Added more documentation for lang::message::lookup

bugfix: ad_conn isconnected doesn't mean ad_conn user_id is defined - it's not during bootstrapping. Wrapping in catch

making lang::message::register refuse to register a message for a key that doesn't exist unless it's for the en_US locale. This is a precaution for the case where non en_US locales have somehow corrupted keys or keys that have been forgotten to be added to en_US

adding the columns creation_user and creation_date to lang_messages. At least on the translation server those are useful. Those columns replace the table lang_messages_created in the messages-audit.sql file (now removed)

  1. … 8 more files in changeset.
making sure creation of messages is recorded in audit table

Improved the documentation

moving functionality of proc lang::system::default_locale into proc lang::util::default_locale_from_lang and removing lang::system::default_locale

  1. … 5 more files in changeset.
Fixed bug #4: locale fallback

Do the database-to-memory caching on startup without serving pages until that's done. Syncing from message catalog files can be done later

  1. … 2 more files in changeset.
backing out a change I made by mistake from the translation server. The lang::audit::created_message is a proc that is used only on that server and I have no plans yet to add it to cvs

I18N: committing all the message catalog files from the dotLRN translation server. Kudos to all our translators for this contribution.

  1. … 334 more files in changeset.
make package_key a bind variable

making it possible to cache all catalog messages for a single package

  1. … 1 more file in changeset.
adding message catalog upgrade support to the acs-lang package. message keys and messages now have an upgrade status (added, deleted, updated). Being more rigorous about determining what is a catalog file and moving this logic to the acs-bootstrap-installer package (apm_is_catalog_file) as it is needed before the acs-lang library is loaded. Updated procedure documentation.

  1. … 7 more files in changeset.
I18N: loading the catalog files from the lookup proc now if this hasn't already been done. The reason is that there are message lookups that happen before the acs-lang library files are loaded. The alternative would be to put the loading in a file with a path like acs-boostrap-installer/00-...

  1. … 1 more file in changeset.
adding timezone support, adding auditing of edited messages, adding package scoped locale preference and package scoped locale

  1. … 40 more files in changeset.
fixed the check in lang::message::register that embedded variables are not tampered with, translator mode links vastly improved by Lars - translations that can be edited have a hyperlinked green circle after them, texts with missing translations are highlighted in yellow and have a hyperlinked red star after them, now navigation (links) are not broken by translator mode being on

  1. … 2 more files in changeset.
adding a charset proc, a proc that checks that embeddded variables in messages are not messed up by translators, fixed regexp bug in the adp message catalog proc, removed caching mistake - we would reload the cache on every request (we were all wondering why our server was so slow...:-))

  1. … 4 more files in changeset.
changing the underscore message lookup proc to take only two arguments, changing message registration log message to debug level

  1. … 1 more file in changeset.