Translations [skip ci]

This commit is contained in:
James Cole
2015-05-23 15:57:38 +02:00
parent 85f8d1e8e9
commit 99d4adf5e6
6 changed files with 20 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ class CategoryRepository implements CategoryRepositoryInterface
$result[$categoryId]['sum'] += floatval($entry->amount);
} else {
$isEncrypted = intval($entry->category_encrypted) == 1 ? true : false;
$name = strlen($entry->name) == 0 ? trans('firefly.noCategory') : $entry->name;
$name = strlen($entry->name) == 0 ? trans('firefly.no_category') : $entry->name;
$name = $isEncrypted ? Crypt::decrypt($name) : $name;
$result[$categoryId] = [
'name' => $name,