Add pluralization of demo and default quantity units

This commit is contained in:
Bernd Bestel
2018-08-04 17:37:43 +02:00
parent 525f1705d1
commit 5833364e51
4 changed files with 20 additions and 6 deletions

View File

@@ -11,11 +11,13 @@ if ($db->quantity_units()->count() === 0)
{
// Create 2 default quantity units
$newRow = $db->quantity_units()->createRow(array(
'name' => $localizationService->Localize('Piece')
'name' => $localizationService->Localize('Piece'),
'name_plural' => $localizationService->Localize('Pieces')
));
$newRow->save();
$newRow = $db->quantity_units()->createRow(array(
'name' => $localizationService->Localize('Pack')
'name' => $localizationService->Localize('Pack'),
'name_plural' => $localizationService->Localize('Packs')
));
$newRow->save();
}