lang-catalog-procs.xql

  • last updated 1 hour ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Reduce divergence between postgres and oracle codebase

  1. … 2 more files in changeset.
merged changes from the oacs-5-9 branch and resolved conflicts

  1. … 7834 more files in changeset.
.xql-file reform of acs-lang

- remove unneeded sql queries

lang::catalog::reset_upgrade_status_message_keys.reset_status"

lang::catalog::import_from_file.reset_upgrade_status_messages

lang::catalog::import_from_file.mark_message_as_deleted

lang::catalog::import_from_file.mark_message_key_as_deleted

lang::message::register.message_exists_p

  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.
Adding support for I18N message catalog upgrades. Any import of

messages from catalog files that is done after the initial import is

considered an upgrade. The message import and upgrade logic is

encapsulated in the proc lang::catalog::import_messages (invoked

through lang::catalog::import).

acs-lang package

- Bumping version of package to 5.0.0b5

- Changes to datamodel:

- Adding columns deleted_p, conflict_p, and sync_time to lang_messages table.

- Removed column upgrade_status from lang_message_keys table

- Adding columns deleted_p, sync_time, conflict_p, upgrade_status to lang_messages_audit table

- Changes to lang::catalog Tcl API:

- Added proc lang::catalog::import_messages that encapsulates the logic for import and upgrade of

messages from catalog files to database.

- Changed the lang::catalog::import_from_file and lang::catalog:import procs to use the new import_messages proc.

- Added the upgrade Tcl API test cases that extensively tests through the import_messages proc with both

en_US and de_DE locales.

- Changes to lang::message Tcl API:

- Changed lang::message::register to take new switches upgrade_sync, upgrade_status, and conlfict. Cleaned up the

proc a little and made it construct SQL dynamically.

- Added procs delete, get, and get_element.

- Added the edit proc that is used when editing attributes of a message other than the message text itself. This

proc will not create a new message revision. It is invoked for example by the delete proc.

- Added the count_conflicts proc.

- Changes to admin UI

- New canonical pages for import/export of catalog files that check for site-wide-admin priv

- Made the message delete page use appropriate Tcl API

- Added the message-conflicts page that shows conflicting messages. Linking to this page from

index page, locale-, and package index pages.

acs-admin package

- Removed the import/export messages pages and using the ones in acs-lang package instead.

  1. … 44 more files in changeset.
re-adding the loading of message catalog files on server startup. Since loading is only done at package install if acs-lang is already installed and this is not necessarily always the case

  1. … 2 more files in changeset.
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.
Removing hard coded dotlrn accidentally left in query selecting packages to load catalog files for. removing debug printout

  1. … 1 more file in changeset.
Fixing charsets for message catalog files ; import/export descriptions

  1. … 1 more file in changeset.
setting upgrade status for a message key to deleted if the en_US message is deleted. This is unfortunately another example in the I18N code where we are assuming the presence of the en_US locale and that translation is done from this locale.

  1. … 1 more file in changeset.
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.
making sure message keys with upgrade status of deleted are not exported to xml files, important fix: write xml files in utf-8 if the specified charset is not supported by tcl, correcting some log statements

  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.
adding timezone support, adding auditing of edited messages, adding package scoped locale preference and package scoped locale

  1. … 40 more files in changeset.
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.
Collaboraid: adding namespaces to the TCL API, adding new procedures for extracting keys from adp pages and parsing keys embedded in text, adding a translation web UI that was used at Greenpeace (at www/admin) and making it work with PostgreSQL, moving the old pages under www to be under www/admin/test, making the lang_messages table use locale rather than language, added upgrade scripts

    • -0
    • +28
    ./lang-catalog-procs.xql
  1. … 111 more files in changeset.