mirror of https://github.com/jumpserver/jumpserver
perf: 优化翻译
parent
c39acc9a93
commit
ed967dcba9
|
@ -1,10 +1,12 @@
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from .base import BaseType
|
from .base import BaseType
|
||||||
|
|
||||||
|
|
||||||
class CloudTypes(BaseType):
|
class CloudTypes(BaseType):
|
||||||
PUBLIC = 'public', 'Public cloud'
|
PUBLIC = 'public', _('Public cloud')
|
||||||
PRIVATE = 'private', 'Private cloud'
|
PRIVATE = 'private', _('Private cloud')
|
||||||
K8S = 'k8s', 'Kubernetes'
|
K8S = 'k8s', _('Kubernetes')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_base_constrains(cls) -> dict:
|
def _get_base_constrains(cls) -> dict:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from .base import BaseType
|
from .base import BaseType
|
||||||
|
|
||||||
GATEWAY_NAME = 'Gateway'
|
GATEWAY_NAME = 'Gateway'
|
||||||
|
@ -7,7 +9,7 @@ class HostTypes(BaseType):
|
||||||
LINUX = 'linux', 'Linux'
|
LINUX = 'linux', 'Linux'
|
||||||
WINDOWS = 'windows', 'Windows'
|
WINDOWS = 'windows', 'Windows'
|
||||||
UNIX = 'unix', 'Unix'
|
UNIX = 'unix', 'Unix'
|
||||||
OTHER_HOST = 'other', "Other"
|
OTHER_HOST = 'other', _("Other")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_base_constrains(cls) -> dict:
|
def _get_base_constrains(cls) -> dict:
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
from functools import partial
|
|
||||||
from werkzeug.local import LocalProxy
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from functools import partial
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from werkzeug.local import LocalProxy
|
||||||
|
|
||||||
from common.local import thread_local
|
from common.local import thread_local
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,7 +35,7 @@ def get_xpack_license_info() -> dict:
|
||||||
corporation = info.get('corporation', '')
|
corporation = info.get('corporation', '')
|
||||||
else:
|
else:
|
||||||
current_year = datetime.now().year
|
current_year = datetime.now().year
|
||||||
corporation = f'Copyright - FIT2CLOUD 飞致云 © 2014-{current_year}'
|
corporation = f'FIT2CLOUD 飞致云 © 2014-{current_year}'
|
||||||
info = {
|
info = {
|
||||||
'corporation': corporation
|
'corporation': corporation
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue