Fixed lazy trans on os managers

This commit is contained in:
Adolfo Gómez García 2018-03-06 11:06:40 +01:00
parent bfb96b6d9f
commit 8162230f23
2 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@
'''
from __future__ import unicode_literals
from django.utils.translation import ugettext_noop as _
from django.utils.translation import ugettext_noop as _, ugettext_lazy
from django.conf import settings
from uds.core.services import types as serviceTypes
from uds.core.ui.UserInterface import gui
@ -61,9 +61,9 @@ class LinuxOsManager(osmanagers.OSManager):
rdonly=True,
tooltip=_('What to do when user logs out from service'),
values=[
{'id': 'keep', 'text': _('Keep service assigned')},
{'id': 'remove', 'text': _('Remove service')},
{'id': 'keep-always', 'text': _('Keep service assigned even on new publication')},
{'id': 'keep', 'text': ugettext_lazy('Keep service assigned')},
{'id': 'remove', 'text': ugettext_lazy('Remove service')},
{'id': 'keep-always', 'text': ugettext_lazy('Keep service assigned even on new publication')},
],
defvalue='keep')

View File

@ -10,7 +10,7 @@
'''
from __future__ import unicode_literals
from django.utils.translation import ugettext_noop as _
from django.utils.translation import ugettext_noop as _, ugettext_lazy
from django.conf import settings
from uds.core.services import types as serviceTypes
from uds.core.ui.UserInterface import gui
@ -52,9 +52,9 @@ class WindowsOsManager(osmanagers.OSManager):
rdonly=True,
tooltip=_('What to do when user logs out from service'),
values=[
{'id': 'keep', 'text': _('Keep service assigned')},
{'id': 'remove', 'text': _('Remove service')},
{'id': 'keep-always', 'text': _('Keep service assigned even on new publication')},
{'id': 'keep', 'text': ugettext_lazy('Keep service assigned')},
{'id': 'remove', 'text': ugettext_lazy('Remove service')},
{'id': 'keep-always', 'text': ugettext_lazy('Keep service assigned even on new publication')},
],
defvalue='keep'
)