forked from shaba/openuds
Fixed lazy trans on os managers
This commit is contained in:
parent
bfb96b6d9f
commit
8162230f23
@ -32,7 +32,7 @@
|
|||||||
'''
|
'''
|
||||||
from __future__ import unicode_literals
|
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 django.conf import settings
|
||||||
from uds.core.services import types as serviceTypes
|
from uds.core.services import types as serviceTypes
|
||||||
from uds.core.ui.UserInterface import gui
|
from uds.core.ui.UserInterface import gui
|
||||||
@ -61,9 +61,9 @@ class LinuxOsManager(osmanagers.OSManager):
|
|||||||
rdonly=True,
|
rdonly=True,
|
||||||
tooltip=_('What to do when user logs out from service'),
|
tooltip=_('What to do when user logs out from service'),
|
||||||
values=[
|
values=[
|
||||||
{'id': 'keep', 'text': _('Keep service assigned')},
|
{'id': 'keep', 'text': ugettext_lazy('Keep service assigned')},
|
||||||
{'id': 'remove', 'text': _('Remove service')},
|
{'id': 'remove', 'text': ugettext_lazy('Remove service')},
|
||||||
{'id': 'keep-always', 'text': _('Keep service assigned even on new publication')},
|
{'id': 'keep-always', 'text': ugettext_lazy('Keep service assigned even on new publication')},
|
||||||
],
|
],
|
||||||
defvalue='keep')
|
defvalue='keep')
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
'''
|
'''
|
||||||
from __future__ import unicode_literals
|
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 django.conf import settings
|
||||||
from uds.core.services import types as serviceTypes
|
from uds.core.services import types as serviceTypes
|
||||||
from uds.core.ui.UserInterface import gui
|
from uds.core.ui.UserInterface import gui
|
||||||
@ -52,9 +52,9 @@ class WindowsOsManager(osmanagers.OSManager):
|
|||||||
rdonly=True,
|
rdonly=True,
|
||||||
tooltip=_('What to do when user logs out from service'),
|
tooltip=_('What to do when user logs out from service'),
|
||||||
values=[
|
values=[
|
||||||
{'id': 'keep', 'text': _('Keep service assigned')},
|
{'id': 'keep', 'text': ugettext_lazy('Keep service assigned')},
|
||||||
{'id': 'remove', 'text': _('Remove service')},
|
{'id': 'remove', 'text': ugettext_lazy('Remove service')},
|
||||||
{'id': 'keep-always', 'text': _('Keep service assigned even on new publication')},
|
{'id': 'keep-always', 'text': ugettext_lazy('Keep service assigned even on new publication')},
|
||||||
],
|
],
|
||||||
defvalue='keep'
|
defvalue='keep'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user