mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Finished migration to use gettext (this now closes #161)
This commit is contained in:
@@ -11,13 +11,13 @@ if ($db->quantity_units()->count() === 0)
|
||||
{
|
||||
// Create 2 default quantity units
|
||||
$newRow = $db->quantity_units()->createRow(array(
|
||||
'name' => $localizationService->Localize('Piece'),
|
||||
'name_plural' => $localizationService->Localize('Pieces')
|
||||
'name' => $localizationService->__n(1, 'Piece', 'Pieces'),
|
||||
'name_plural' => $localizationService->__n(2, 'Piece', 'Pieces')
|
||||
));
|
||||
$newRow->save();
|
||||
$newRow = $db->quantity_units()->createRow(array(
|
||||
'name' => $localizationService->Localize('Pack'),
|
||||
'name_plural' => $localizationService->Localize('Packs')
|
||||
'name' => $localizationService->__n(1, 'Pack', 'Packs'),
|
||||
'name_plural' => $localizationService->__n(2, 'Pack', 'Packs')
|
||||
));
|
||||
$newRow->save();
|
||||
}
|
||||
@@ -26,7 +26,7 @@ if ($db->locations()->count() === 0)
|
||||
{
|
||||
// Create a default location
|
||||
$newRow = $db->locations()->createRow(array(
|
||||
'name' => $localizationService->Localize('Fridge')
|
||||
'name' => $localizationService->__t('Fridge')
|
||||
));
|
||||
$newRow->save();
|
||||
}
|
||||
|
Reference in New Issue
Block a user