Improved handling of certain cases.

This commit is contained in:
Martin Edenhofer 2015-11-19 09:03:18 +01:00
parent 8ecc01401c
commit eb4ecc5aa7

View file

@ -195,8 +195,8 @@ get list of translations
] ]
list.push translation_item list.push translation_item
end end
data['list'] = list
} }
data['list'] = list
# set cache # set cache
if !admin if !admin
@ -234,8 +234,8 @@ translate strings in ruby context, e. g. for notifications
private private
def set_initial def set_initial
return if target_initial return if target_initial
return if target_initial == ''
self.target_initial = target self.target_initial = target
end end