mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Finished migration to use gettext (this now closes #161)
This commit is contained in:
@@ -26,7 +26,7 @@ class CalendarService extends BaseService
|
||||
public function GetEvents()
|
||||
{
|
||||
$products = $this->Database->products();
|
||||
$titlePrefix = $this->LocalizationService-Translator->__t('Product expires') . ': ';
|
||||
$titlePrefix = $this->LocalizationService->__t('Product expires') . ': ';
|
||||
$stockEvents = array();
|
||||
foreach($this->StockService->GetCurrentStock() as $currentStockEntry)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ class CalendarService extends BaseService
|
||||
}
|
||||
}
|
||||
|
||||
$titlePrefix = $this->LocalizationService-Translator->__t('Task due') . ': ';
|
||||
$titlePrefix = $this->LocalizationService->__t('Task due') . ': ';
|
||||
$taskEvents = array();
|
||||
foreach($this->TasksService->GetCurrent() as $currentTaskEntry)
|
||||
{
|
||||
@@ -52,7 +52,7 @@ class CalendarService extends BaseService
|
||||
}
|
||||
|
||||
$chores = $this->Database->chores();
|
||||
$titlePrefix = $this->LocalizationService-Translator->__t('Chore due') . ': ';
|
||||
$titlePrefix = $this->LocalizationService->__t('Chore due') . ': ';
|
||||
$choreEvents = array();
|
||||
foreach($this->ChoresService->GetCurrent() as $currentChoreEntry)
|
||||
{
|
||||
@@ -64,7 +64,7 @@ class CalendarService extends BaseService
|
||||
}
|
||||
|
||||
$batteries = $this->Database->batteries();
|
||||
$titlePrefix = $this->LocalizationService-Translator->__t('Battery charge cycle due') . ': ';
|
||||
$titlePrefix = $this->LocalizationService->__t('Battery charge cycle due') . ': ';
|
||||
$batteryEvents = array();
|
||||
foreach($this->BatteriesService->GetCurrent() as $currentBatteryEntry)
|
||||
{
|
||||
|
Reference in New Issue
Block a user