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:
after_load_file
before_save_localized_file
rewrite_source
rewrite_translation
rewrite_path
rewrite_relative_output_file_path
rewrite_absolute_output_file_path
rewrite_relative_ts_file_path
rewrite_absolute_ts_file_path
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, executes the rewrite logic. Note that all if
conditions are optional: if none are provided, the replacement rules will be always executed.