Jump to main content Jump to doc navigation

Upgrading to Revolution 2.0.0-rc-2

Read this page only if you:

  • Write translatable Extras for Revolution
  • Write plugins for Revolution

Lexicon Changes

The RC1 lexicon system held back Extras development and a stable multi-lingual distribution, so it was replaced. What changed:

  • Dropped the modLexiconTopic and modLexiconLanguage tables.
  • Changed the topic field on modLexiconEntry to a varchar with the topic name.
  • Refactored modLexiconEntry so database records hold only overridden entries; the rest are cached from the lexicon topic files (.inc.php).
  • Rebuilt Lexicon Management as a grid for overriding entries: you edit existing entries only, and an edited entry shows in green as overridden.

Benefits of the new approach:

  • Easier translation.
  • Faster lexicon loading: files and arrays instead of database objects.
  • Lexicon edits no longer break your upgrade path.
  • Smaller core.transport.zip; faster builds and setup.
  • Easier development: a lexicon/ directory under your Namespace path (as in most Extras), laid out as lexicon/[language]/[topic].inc.php, is parsed automatically and listed in Lexicon Management; build scripts no longer call modPackageBuilder::buildLexicon.

All packages using lexicons must be rebuilt for 2.0.0 RC-2. Drop the buildLexicon call from build scripts and put lexicon directories under the namespace path, as in this component.

Core translations are now packaged in SVN.

Plugin Changes

Deprecated Plugin Events were removed in RC-2 and new events were added. See the System Events page, or the exhaustive list in the code.

Some events are model-centric: they run from within the mod* classes, so they fire wherever the call originates — even when a third-party Extra changes the object, for example when it creates a user. Typical model-centric events:

  • On*Save
  • On*BeforeSave
  • On*Remove
  • On*BeforeRemove

See Also

  1. Basic Installation
    1. Lighttpd Guide
    2. Installation on a server running ModSecurity
    3. Nginx Server Config
  2. Advanced Installation
  3. Git Installation
  4. Command Line Installation
    1. The Setup Config Xml File
  5. Troubleshooting Installation
  6. Successful Installation, Now What Do I Do?

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • A. Moreno
  • Alex
  • Chris Fickling
  • Stéphane Jäggi
  • YJ
  • Murray Wood
  • JT Skaggs
  • Anton Tarasov
  • deJaya
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$185 per month—let's make that $500!

Learn more