Rapit
Categories
Component ID
2452791
Component name
Rapit
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Early Prototype for a string translation UI that attempts to provide in-page translation.
Simplytest.me
To give Rapit a spin, visit simplytest.me, launch the sandbox and login.
Warnings
- This is a very early prototype that may have unwanted side effects. The current version does not have a translation interface yet.
Installation
To quickly try out Rapit, download the project and enable the Rapit Demonstration module.
For developers
How does it work?
Rapit places itself between locale() and the static locale cache, wrapping all source strings and appending identifiers.
On the client side Javascript takes care of finding and removing identifiers and creating an internal list of all strings that were found.
Custom bound marks
Bound mark strings are stored in a single Drupal variable, but can be overridden individually. Example (settings.php):
$conf['rapit_bound_markers']['start'] = '[RS]';
$conf['rapit_bound_markers']['id'] = '[RI]';
$conf['rapit_bound_markers']['end'] = '[RE]';
$conf['rapit_bound_markers']['param_start'] = '[PS]';
$conf['rapit_bound_markers']['param_id'] = '[PI]';
$conf['rapit_bound_markers']['param_end'] = '[PE]';
Be sure to read the guidelines in rapit.module.
