show how many bytes are selected
This commit is contained in:
Binary file not shown.
@@ -5,8 +5,8 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: RavenLog\n"
|
||||
"POT-Creation-Date: 2023-01-22 18:59+0100\n"
|
||||
"PO-Revision-Date: 2023-01-22 19:04+0100\n"
|
||||
"POT-Creation-Date: 2023-01-28 18:49+0100\n"
|
||||
"PO-Revision-Date: 2023-01-28 18:50+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: de\n"
|
||||
@@ -62,7 +62,7 @@ msgstr "Ordner:"
|
||||
msgid "Filter:"
|
||||
msgstr "Filter:"
|
||||
|
||||
#: src/plugins/filesbrowser/filesbrowserwidget.py:73
|
||||
#: src/plugins/filesbrowser/filesbrowserwidget.py:75
|
||||
msgid "Open Directory"
|
||||
msgstr "Ordner öffnen"
|
||||
|
||||
@@ -95,8 +95,8 @@ msgid "Log file viewer"
|
||||
msgstr "Betrachter für Logdateien"
|
||||
|
||||
#: src/plugins/krowlog/aboutdialog.py:63
|
||||
msgid "(c) 2022 Andreas Huber"
|
||||
msgstr "(c) 2022 Andreas Huber"
|
||||
msgid "(c) 2022-2023 Andreas Huber"
|
||||
msgstr "(c) 2022-2023 Andreas Huber"
|
||||
|
||||
#: src/plugins/krowlog/aboutdialog.py:64
|
||||
msgid "License: LGPL v3"
|
||||
@@ -222,6 +222,10 @@ msgstr "Schreibe in Datei"
|
||||
msgid "Save File"
|
||||
msgstr "Speichere Datei"
|
||||
|
||||
#: src/ui/bigtext/bigtext.py:459
|
||||
msgid "selected {0} - {1:,.0f}:{2:,.0f}"
|
||||
msgstr "selektiert {0} - {1:,.0f}:{2:,.0f}"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:20
|
||||
msgid "Manage Highlighting"
|
||||
msgstr "Hervorhebungen Verwalten"
|
||||
@@ -242,91 +246,91 @@ msgstr "Hoch"
|
||||
msgid "Down"
|
||||
msgstr "Runter"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:143
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:151
|
||||
msgid "Hit Background:"
|
||||
msgstr "Trefferhintergrund:"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:145
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:155
|
||||
msgid "Hit Background"
|
||||
msgstr "Trefferhintergrund"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:150
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:161
|
||||
msgid "Ignore Case"
|
||||
msgstr "Groß-/Kleinschreibung ignorieren"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:156
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:168
|
||||
msgid "Line Background:"
|
||||
msgstr "Zeilenhintergrund:"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:158
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:172
|
||||
msgid "Line Background"
|
||||
msgstr "Zeilenhintergrund"
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:163
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:178
|
||||
msgid "Regular Expression"
|
||||
msgstr "Regulärer Ausdruck"
|
||||
|
||||
#: src/ui/colorbutton.py:20
|
||||
#: src/ui/colorbutton.py:19
|
||||
msgid "Strawberry Cream"
|
||||
msgstr "Strawberry Cream"
|
||||
|
||||
#: src/ui/colorbutton.py:21
|
||||
#: src/ui/colorbutton.py:20
|
||||
msgid "Pale Crimson"
|
||||
msgstr "Pale Crimson"
|
||||
|
||||
#: src/ui/colorbutton.py:23
|
||||
#: src/ui/colorbutton.py:22
|
||||
msgid "Broken Buttercup"
|
||||
msgstr "Broken Buttercup"
|
||||
|
||||
#: src/ui/colorbutton.py:24
|
||||
#: src/ui/colorbutton.py:23
|
||||
msgid "Passion Fruit Sugar"
|
||||
msgstr "Passion Fruit Sugar"
|
||||
|
||||
#: src/ui/colorbutton.py:26
|
||||
#: src/ui/colorbutton.py:25
|
||||
msgid "Sunrise Yellow"
|
||||
msgstr "Sonnenaufganggelb"
|
||||
|
||||
#: src/ui/colorbutton.py:27
|
||||
#: src/ui/colorbutton.py:26
|
||||
msgid "Magical Mustard"
|
||||
msgstr "Magischer Senf"
|
||||
|
||||
#: src/ui/colorbutton.py:29
|
||||
#: src/ui/colorbutton.py:28
|
||||
msgid "Trendy Green"
|
||||
msgstr "Trendiges Grün"
|
||||
|
||||
#: src/ui/colorbutton.py:30
|
||||
#: src/ui/colorbutton.py:29
|
||||
msgid "Garden Of Sweden"
|
||||
msgstr "Garten von Schweden"
|
||||
|
||||
#: src/ui/colorbutton.py:32
|
||||
#: src/ui/colorbutton.py:31
|
||||
msgid "Light Sky Blue"
|
||||
msgstr "Helles Himmelsblau"
|
||||
|
||||
#: src/ui/colorbutton.py:33
|
||||
#: src/ui/colorbutton.py:32
|
||||
msgid "True Blue"
|
||||
msgstr "Echtes Blau"
|
||||
|
||||
#: src/ui/colorbutton.py:35
|
||||
#: src/ui/colorbutton.py:34
|
||||
msgid "Fairy Topia"
|
||||
msgstr "Fairy Topia"
|
||||
|
||||
#: src/ui/colorbutton.py:36
|
||||
#: src/ui/colorbutton.py:35
|
||||
msgid "Magenta Bachiego"
|
||||
msgstr "Magenta Bachiego"
|
||||
|
||||
#: src/ui/colorbutton.py:38
|
||||
#: src/ui/colorbutton.py:37
|
||||
msgid "Breeze of Mist"
|
||||
msgstr "Nebelbriese"
|
||||
|
||||
#: src/ui/colorbutton.py:39
|
||||
#: src/ui/colorbutton.py:38
|
||||
msgid "Light Grey"
|
||||
msgstr "Helles Grau"
|
||||
|
||||
#: src/ui/colorbutton.py:40
|
||||
#: src/ui/colorbutton.py:39
|
||||
msgid "Grey"
|
||||
msgstr "Grau"
|
||||
|
||||
#: src/ui/colorbutton.py:46
|
||||
#: src/ui/colorbutton.py:45
|
||||
msgid "transparent"
|
||||
msgstr "Transparent"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2023-01-22 18:59+0100\n"
|
||||
"POT-Creation-Date: 2023-01-28 18:49+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -60,7 +60,7 @@ msgstr ""
|
||||
msgid "Filter:"
|
||||
msgstr ""
|
||||
|
||||
#: src/plugins/filesbrowser/filesbrowserwidget.py:73
|
||||
#: src/plugins/filesbrowser/filesbrowserwidget.py:75
|
||||
msgid "Open Directory"
|
||||
msgstr ""
|
||||
|
||||
@@ -93,7 +93,7 @@ msgid "Log file viewer"
|
||||
msgstr ""
|
||||
|
||||
#: src/plugins/krowlog/aboutdialog.py:63
|
||||
msgid "(c) 2022 Andreas Huber"
|
||||
msgid "(c) 2022-2023 Andreas Huber"
|
||||
msgstr ""
|
||||
|
||||
#: src/plugins/krowlog/aboutdialog.py:64
|
||||
@@ -216,6 +216,10 @@ msgstr ""
|
||||
msgid "Save File"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/bigtext.py:459
|
||||
msgid "selected {0} - {1:,.0f}:{2:,.0f}"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:20
|
||||
msgid "Manage Highlighting"
|
||||
msgstr ""
|
||||
@@ -236,91 +240,91 @@ msgstr ""
|
||||
msgid "Down"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:143
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:151
|
||||
msgid "Hit Background:"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:145
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:155
|
||||
msgid "Hit Background"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:150
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:161
|
||||
msgid "Ignore Case"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:156
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:168
|
||||
msgid "Line Background:"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:158
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:172
|
||||
msgid "Line Background"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:163
|
||||
#: src/ui/bigtext/newhighlightingdialog.py:178
|
||||
msgid "Regular Expression"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:20
|
||||
#: src/ui/colorbutton.py:19
|
||||
msgid "Strawberry Cream"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:21
|
||||
#: src/ui/colorbutton.py:20
|
||||
msgid "Pale Crimson"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:23
|
||||
#: src/ui/colorbutton.py:22
|
||||
msgid "Broken Buttercup"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:24
|
||||
#: src/ui/colorbutton.py:23
|
||||
msgid "Passion Fruit Sugar"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:26
|
||||
#: src/ui/colorbutton.py:25
|
||||
msgid "Sunrise Yellow"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:27
|
||||
#: src/ui/colorbutton.py:26
|
||||
msgid "Magical Mustard"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:29
|
||||
#: src/ui/colorbutton.py:28
|
||||
msgid "Trendy Green"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:30
|
||||
#: src/ui/colorbutton.py:29
|
||||
msgid "Garden Of Sweden"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:32
|
||||
#: src/ui/colorbutton.py:31
|
||||
msgid "Light Sky Blue"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:33
|
||||
#: src/ui/colorbutton.py:32
|
||||
msgid "True Blue"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:35
|
||||
#: src/ui/colorbutton.py:34
|
||||
msgid "Fairy Topia"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:36
|
||||
#: src/ui/colorbutton.py:35
|
||||
msgid "Magenta Bachiego"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:38
|
||||
#: src/ui/colorbutton.py:37
|
||||
msgid "Breeze of Mist"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:39
|
||||
#: src/ui/colorbutton.py:38
|
||||
msgid "Light Grey"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:40
|
||||
#: src/ui/colorbutton.py:39
|
||||
msgid "Grey"
|
||||
msgstr ""
|
||||
|
||||
#: src/ui/colorbutton.py:46
|
||||
#: src/ui/colorbutton.py:45
|
||||
msgid "transparent"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -442,6 +442,9 @@ class InnerBigText(QWidget):
|
||||
def _update_highlight_selected_text(self):
|
||||
start_byte = min(self.selection_highlight.start_byte, self.selection_highlight.end_byte)
|
||||
end_byte = max(self.selection_highlight.start_byte, self.selection_highlight.end_byte)
|
||||
|
||||
self._update_status_bar(start_byte, end_byte)
|
||||
|
||||
if abs(start_byte - end_byte) < 1024:
|
||||
query = self.model.read_range(start_byte, end_byte)
|
||||
if query.find("\n") < 0:
|
||||
@@ -450,6 +453,12 @@ class InnerBigText(QWidget):
|
||||
|
||||
self.highlight_selected_text.set_query("")
|
||||
|
||||
def _update_status_bar(self, start_byte: int, end_byte: int):
|
||||
bytes_human_readable = humanbytes(end_byte - start_byte)
|
||||
PluginRegistry.execute("update_status_bar",
|
||||
_("selected {0} - {1:,.0f}:{2:,.0f}").format(bytes_human_readable, start_byte,
|
||||
end_byte - 1))
|
||||
|
||||
def _file_changed(self):
|
||||
if self._follow_tail:
|
||||
self.scroll_to_byte(self.model.byte_count())
|
||||
|
||||
Reference in New Issue
Block a user