perf(i18n): 更新翻译

pull/4982/head
Bai 2020-11-12 11:12:58 +08:00 committed by Jiangjie.Bai
parent b18ead0ffa
commit 24e22115de
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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