• last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
acs-lang reform

Provide an optional object_id which can be used to register message keys that will be bound to the lifecycle of an acs-object. When the object is deleted, so will the message key.

This is useful for groups that automatically define a message key for their pretty name. Tcl api was already aware of this and would cleanup such message keys, but other idioms e.g. stored procedures used to delete groups would leave leftovers behind. These can become relatively numerous on group-intensive systems such as LEARN.

Other future usages for this new feature might be the automatic localization of xowiki FormPage properties.

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

  1. … 7834 more files in changeset.
Fix spelling errors

  1. … 48 more files in changeset.
Correction of name constraint

  1. … 6 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 between oacs-5-0-0b4 and oacs-5-0-0-final to HEAD

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

  1. … 598 more files in changeset.
adding missing comma in lang_messages_audit table

  1. … 1 more file in changeset.
adding primary key to the lang_messages_audit table. Fixed upgrade script to version 5.0.0b5 so that sync_time is set for the first revision of each I18N message

  1. … 4 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.
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.
fixing typo in column name in lang_messages_audit - changing from comment to comment_text

Adding description to message keys

  1. … 3 more files in changeset.
1. Comments on messages

2. Rename lang_messages_audit.message to old_message

  1. … 3 more files in changeset.
1. Added search for words in messages feature.

2. Added locale enable/disable feature

3. Cleaned up translation UI

4. Improved batch message edit

  1. … 41 more files in changeset.
making catalog messages cascade when packages are deleted

  1. … 4 more files in changeset.
message catalog upgrade support - adding upgrade_status columns to tables lang_messages and lang_message_keys

  1. … 3 more files in changeset.
Bug: acs-lang had a default sysdate. Changed to default now()

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

  1. … 111 more files in changeset.
correct my email address.

  1. … 16 more files in changeset.

Another attempt to get this package straightened out...

    • -0
    • +67
    ./message-catalog.sql
  1. … 5 more files in changeset.