From 24e22115de49689f770108b04f2298c555427f52 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 12 Nov 2020 11:12:58 +0800 Subject: [PATCH] =?UTF-8?q?perf(i18n):=20=E6=9B=B4=E6=96=B0=E7=BF=BB?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/applications/serializers/remote_app.py | 8 ++++---- apps/locale/zh/LC_MESSAGES/django.po | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/applications/serializers/remote_app.py b/apps/applications/serializers/remote_app.py index 267a52d3c..7e5a69c68 100644 --- a/apps/applications/serializers/remote_app.py +++ b/apps/applications/serializers/remote_app.py @@ -34,7 +34,7 @@ class CharPrimaryKeyRelatedField(serializers.PrimaryKeyRelatedField): class RemoteAppAttrsSerializer(serializers.Serializer): asset_info = serializers.SerializerMethodField() asset = CharPrimaryKeyRelatedField(queryset=Asset.objects, required=False, label=_("Asset")) - path = serializers.CharField(max_length=128, label=_('Remote App path')) + path = serializers.CharField(max_length=128, label=_('Application path')) @staticmethod def get_asset_info(obj): @@ -55,7 +55,7 @@ class RemoteAppAttrsSerializer(serializers.Serializer): class ChromeAttrsSerializer(RemoteAppAttrsSerializer): REMOTE_APP_PATH = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' - path = serializers.CharField(max_length=128, label=_('Remote App path'), default=REMOTE_APP_PATH) + path = serializers.CharField(max_length=128, label=_('Application path'), default=REMOTE_APP_PATH) chrome_target = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_('Target URL')) chrome_username = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_('Username')) chrome_password = serializers.CharField(max_length=128, allow_blank=True, required=False, write_only=True, label=_('Password')) @@ -63,7 +63,7 @@ class ChromeAttrsSerializer(RemoteAppAttrsSerializer): class MySQLWorkbenchAttrsSerializer(RemoteAppAttrsSerializer): REMOTE_APP_PATH = 'C:\Program Files\MySQL\MySQL Workbench 8.0 CE\MySQLWorkbench.exe' - path = serializers.CharField(max_length=128, label=_('Remote App path'), default=REMOTE_APP_PATH) + path = serializers.CharField(max_length=128, label=_('Application path'), default=REMOTE_APP_PATH) mysql_workbench_ip = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_('IP')) mysql_workbench_port = serializers.IntegerField(required=False, label=_('Port')) mysql_workbench_name = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_('Database')) @@ -73,7 +73,7 @@ class MySQLWorkbenchAttrsSerializer(RemoteAppAttrsSerializer): class VMwareClientAttrsSerializer(RemoteAppAttrsSerializer): REMOTE_APP_PATH = 'C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe' - path = serializers.CharField(max_length=128, label=_('Remote App path'), default=REMOTE_APP_PATH) + path = serializers.CharField(max_length=128, label=_('Application path'), default=REMOTE_APP_PATH) vmware_target = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_('Target URL')) vmware_username = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_('Username')) vmware_password = serializers.CharField(max_length=128, allow_blank=True, required=False, write_only=True, label=_('Password')) diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 70d18e230..a4ab5ca13 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -221,8 +221,8 @@ msgstr "类型(显示名称)" #: applications/serializers/remote_app.py:58 #: applications/serializers/remote_app.py:66 #: applications/serializers/remote_app.py:76 -msgid "Remote App path" -msgstr "远程应用列表" +msgid "Application path" +msgstr "应用路径" #: applications/serializers/remote_app.py:59 #: applications/serializers/remote_app.py:77