lang-message-procs.tcl

  • last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
making sure that lang::message::lookup can be used without an HTTP connection, also making sure the cache is loaded by lookup if that hasn't already been done

  1. … 2 more files in changeset.
I18N: adding support for handy interpolation of variables into localized messages from tcl files by using upvar

  1. … 1 more file in changeset.
Adding links to message catalog translation UI from site-wide admin page and from the locale preference page for users, adding explaining text to translation UI

  1. … 4 more files in changeset.
made translate links show the key of the message and be smaller font size, changed the adp message catalog conversion script to not process message lookups that are already in the adp

  1. … 1 more file in changeset.
adding translator mode with translation links, adding support for interpolated variables in adp files, bugfixes, removing site-wide locale from the change locale page

  1. … 8 more files in changeset.
changing message lookup so that if no locale is provided and there is no HTTP connection then the system locale is used

Splitting up the message keys into package_key and message_key in the datamodel, adding a message key table, changing format of catalog files to be xml based, cleaning up tcl API and its documentation, adding acs-automated-testing tests that test some catalog and message TCL procs

  1. … 32 more files in changeset.
adding the format proc to allow variables to be interpolated into catalog messages, updating documentation for the lookup procs, simplifying the lookup proc greatly, not attempting anything smart if lookup fails for now