jgulledge19/CMPGenerator — Issue #1: Component breaks when the manager's language is not english 
Author: kinaz
Created: 2012-01-31 10:20:00+00:00
State: open

Hi,

I'm using this component on an italian installation of MODX Revolution 2.2.0-pl2 (traditional).
if I select "Build schema" and "Build package" and then "Save", my custom component is created but some files aren't (e.g.; xml schema).

The reason is, "Yes" labels in "Build schema" and "Build package" selects are translated to italian "SI".
please see ...cmpgenerator/processors/mgr/cmpgenerator/build.php at row 58.
$scheme reads "SI", not "Yes", so build_scheme is always false:

if ( $scheme == 'Yes' ) {
$cmp->set('build_scheme', '1');
} else {
$cmp->set('build_scheme', '0');
}
if ( $cmp->get('build_package') == 'Yes' ) {
$cmp->set('build_package', '1');
} else {
$cmp->set('build_package', '0');
}