translate connection table, fix icon
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from inverter_base import InverterBase
|
from inverter_base import InverterBase
|
||||||
from quart import render_template
|
from quart import render_template
|
||||||
from quart_babel import format_datetime
|
from quart_babel import format_datetime, _
|
||||||
from infos import Infos
|
from infos import Infos
|
||||||
|
|
||||||
from . import web
|
from . import web
|
||||||
@@ -17,7 +17,7 @@ def _get_device_icon(client_mode: bool):
|
|||||||
def _get_cloud_icon(emu_mode: bool):
|
def _get_cloud_icon(emu_mode: bool):
|
||||||
'''returns the icon for the cloud conntection'''
|
'''returns the icon for the cloud conntection'''
|
||||||
if emu_mode:
|
if emu_mode:
|
||||||
return 'fa-cloud-arrow-down-alt'
|
return 'fa-cloud-arrow-up-alt'
|
||||||
|
|
||||||
return 'fa-cloud'
|
return 'fa-cloud'
|
||||||
|
|
||||||
@@ -54,9 +54,9 @@ def get_table_data():
|
|||||||
"w3-hide-small w3-hide-medium", "w3-hide-large",
|
"w3-hide-small w3-hide-medium", "w3-hide-large",
|
||||||
],
|
],
|
||||||
"thead": [[
|
"thead": [[
|
||||||
'Device-IP:Port', 'Device-IP',
|
_('Device-IP:Port'), _('Device-IP'),
|
||||||
"Serial-No",
|
_("Serial-No"),
|
||||||
"Cloud-IP:Port", "Cloud-IP"
|
_("Cloud-IP:Port"), _("Cloud-IP")
|
||||||
]],
|
]],
|
||||||
"tbody": []
|
"tbody": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: tsun-gen3-proxy 0.14.0\n"
|
"Project-Id-Version: tsun-gen3-proxy 0.14.0\n"
|
||||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
"POT-Creation-Date: 2025-04-28 20:37+0200\n"
|
"POT-Creation-Date: 2025-04-28 21:00+0200\n"
|
||||||
"PO-Revision-Date: 2025-04-18 16:24+0200\n"
|
"PO-Revision-Date: 2025-04-18 16:24+0200\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -19,6 +19,26 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Generated-By: Babel 2.17.0\n"
|
"Generated-By: Babel 2.17.0\n"
|
||||||
|
|
||||||
|
#: src/web/conn_table.py:57
|
||||||
|
msgid "Device-IP:Port"
|
||||||
|
msgstr "Geräte-IP:Port"
|
||||||
|
|
||||||
|
#: src/web/conn_table.py:57
|
||||||
|
msgid "Device-IP"
|
||||||
|
msgstr "Geräte-IP"
|
||||||
|
|
||||||
|
#: src/web/conn_table.py:58
|
||||||
|
msgid "Serial-No"
|
||||||
|
msgstr "Seriennummer"
|
||||||
|
|
||||||
|
#: src/web/conn_table.py:59
|
||||||
|
msgid "Cloud-IP:Port"
|
||||||
|
msgstr "Cloud-IP:Port"
|
||||||
|
|
||||||
|
#: src/web/conn_table.py:59
|
||||||
|
msgid "Cloud-IP"
|
||||||
|
msgstr "Cloud-IP"
|
||||||
|
|
||||||
#: src/web/templates/base.html.j2:37
|
#: src/web/templates/base.html.j2:37
|
||||||
msgid "Updated:"
|
msgid "Updated:"
|
||||||
msgstr "Aktualisiert:"
|
msgstr "Aktualisiert:"
|
||||||
|
|||||||
Reference in New Issue
Block a user