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