lang-catalog-procs-postgresql.xql

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

    • -12
    • +1
    ./lang-catalog-procs-postgresql.xql
  1. … 2 more files in changeset.
Removed version info from catalog file code as was TIP'd ages ago, which

will make merging much easier in the future. I had en_US and de_DE installed

so the catalogs for these languages in core have been exported and don't

have version numbers. The rest of the packages and locales for core and

dotlrn will be exported from the translation server as part of our release

process and will get fixed up then.

  1. … 17 more files in changeset.
merge of all changes on oacs-5-0 branch between tag openacs-5-0-0-final and jcd-merge-pre503 (except those in lars-blogger).

  1. … 293 more files in changeset.
changing the lang_messages_audit table to have a new audit_id integer primary key column. Having the overwrite_date in a composite primary key seemed problematic. Bumping version number of acs-lang to 5.0.1

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

    • -0
    • +45
    ./lang-catalog-procs-postgresql.xql
  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.

    • -0
    • +45
    ./lang-catalog-procs-postgresql.xql
  1. … 44 more files 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.

    • -0
    • +13
    ./lang-catalog-procs-postgresql.xql
  1. … 7 more files in changeset.