Browse Source

perf(i18n): 更新翻译

pull/4982/head
Bai 4 years ago committed by Jiangjie.Bai
parent
commit
24e22115de
  1. 8
      apps/applications/serializers/remote_app.py
  2. 4
      apps/locale/zh/LC_MESSAGES/django.po

8
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'))

4
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

Loading…
Cancel
Save