Closed linawolf closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
54 Code Smells
No Coverage information
0.0% Duplication
Well, I don´t want to remove an old feature. I have added a new setting: settings.preferXlfFile The gender will then come from an function:
public function getGenders(bool $useXlf, array $settings, bool $please = true): array
{
if ($useXlf) {
$pleaseText = ($please) ? LocalizationUtility::translate('tx_fpnewsletter_domain_model_log.gender.please', 'fp_newsletter') : '';
return [
"0" => $pleaseText,
"1" => LocalizationUtility::translate('tx_fpnewsletter_domain_model_log.gender.mrs', 'fp_newsletter'),
"2" => LocalizationUtility::translate('tx_fpnewsletter_domain_model_log.gender.mr', 'fp_newsletter'),
"3" => LocalizationUtility::translate('tx_fpnewsletter_domain_model_log.gender.divers', 'fp_newsletter')
];
} else {
$pleaseText = ($please) ? $settings['please'] : '';
return [
"0" => $pleaseText,
"1" => $settings['mrs'],
"2" => $settings['mr'],
"3" => $settings['divers'],
];
}
}
This will be added to version 3.3.0 or 4.0.0.
Version 4.0.0 with the above changes is now online. Please test it.
resolves https://github.com/bihor/fp_newsletter/issues/63