From eb4ecc5aa7952a9ef23e2645446fb60dd2e95b33 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 19 Nov 2015 09:03:18 +0100 Subject: [PATCH] Improved handling of certain cases. --- app/models/translation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/translation.rb b/app/models/translation.rb index 5bb74d0bf..30e511d19 100644 --- a/app/models/translation.rb +++ b/app/models/translation.rb @@ -195,8 +195,8 @@ get list of translations ] list.push translation_item end - data['list'] = list } + data['list'] = list # set cache if !admin @@ -234,8 +234,8 @@ translate strings in ruby context, e. g. for notifications private def set_initial - return if target_initial + return if target_initial == '' self.target_initial = target end