Generic String Replacement Plugin

Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/replace_strings.pm

Plugin must be attached through the configuration file to exactly one of the following phases:

This plugin is used to manipulate (rewrite/patch) strings. Depending on the callback phase this plugin is attached to, it can change source or destination file contents, rewrite translations and file paths. See the documenation on callbacks for more information.

You can include macros in replace parameter, see below. These macros will be expanded to their actual values. See Configuration File Reference for the list of available macros.

This plugin inherits all the configuration logic from the parent 'if' plugin and, if all conditions are met, exectutes the rewrite logic. Note that all if conditions are optional: if none are provided, the replacement rules will be always executed.

Usage

example-project.serge