CSV Parser Plugin

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

This plugin is used to parse CSV files. A CSV file must have column names listed as a first row, and these names are used to pick the right columns for key, string and, optionally, context and a comment. CSV can have other columns which will be ignored.

Plugin performs CSV validation. In case validation fails, the plugin can send an error report to specified recipients. If no email settings are provided, it will simply report the error in the console output.

This plugin depends on external Text::CSV_XS module. Run cpan Text::CSV_XS to install it before using this plugin.

Example

strings.csv
Key,String,Context,Comment ok_btn_caption,OK,button,This is a button caption cancel_btn_caption,Cancel,button,"Button caption. Keep it short."

Usage

example-project.serge