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