Finished migration to use gettext (this now closes #161)

This commit is contained in:
Bernd Bestel
2019-05-02 20:20:18 +02:00
parent 5d3f248d94
commit 4912dd56d1
75 changed files with 2275 additions and 1581 deletions

View File

@@ -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)
{