Kaydet (Commit) 971ba25f authored tarafından Hakan Dündar's avatar Hakan Dündar

Minor improvements (GUI, translations, etc.)

üst ed765c7a
......@@ -5,6 +5,7 @@ include database/*
include src/*.py
include src/__version__
include locale/cs/LC_MESSAGES/*
include locale/fa/LC_MESSAGES/*
include locale/hu/LC_MESSAGES/*
include locale/pl/LC_MESSAGES/*
include locale/pt_BR/LC_MESSAGES/*
......
......@@ -23,7 +23,7 @@ Multi-featured system monitor.
- Interactive charts for querying performance data on any point
- Option for showing processes as tree or list
- Language support:
- Brazilian Portuguese, Czech, English, European Portuguese, Hungarian, Polish, Russian, Turkish, Persian
- Brazilian Portuguese, Czech, English, European Portuguese, Hungarian, Persian, Polish, Russian, Turkish
- Optimized for low CPU usage and fast start
- Shows notification if update is available on PyPI (disabled by default)
- Supports ARM architecture
......
......@@ -17,6 +17,7 @@ def files_in_folder(folder):
data_files = [
("/systemmonitoringcenter/integration/", ["integration/com.github.hakand34.system-monitoring-center.desktop"]),
("/systemmonitoringcenter/locale/cs/LC_MESSAGES/", ["locale/cs/LC_MESSAGES/system-monitoring-center.mo"]),
("/systemmonitoringcenter/locale/fa/LC_MESSAGES/", ["locale/fa/LC_MESSAGES/system-monitoring-center.mo"]),
("/systemmonitoringcenter/locale/hu/LC_MESSAGES/", ["locale/hu/LC_MESSAGES/system-monitoring-center.mo"]),
("/systemmonitoringcenter/locale/pl/LC_MESSAGES/", ["locale/pl/LC_MESSAGES/system-monitoring-center.mo"]),
("/systemmonitoringcenter/locale/pt_BR/LC_MESSAGES/", ["locale/pt_BR/LC_MESSAGES/system-monitoring-center.mo"]),
......
......@@ -122,7 +122,7 @@ class MemoryRamHardware:
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" + "\n"
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Capacity") + " : " + memory_size
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Type") + " : " + memory_type
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Speed/Frequency") + " : " + memory_speed
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Speed") + " : " + memory_speed
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Manufacturer") + " : " + memory_manufacturer
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Form Factor") + " : " + memory_form_factor
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Locator") + " : " + memory_locator
......@@ -142,7 +142,7 @@ class MemoryRamHardware:
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" + "\n"
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Capacity") + " : " + memory_size
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Type") + " : " + memory_type
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Speed/Frequency") + " : " + memory_speed
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Speed") + " : " + memory_speed
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Manufacturer") + " : " + memory_manufacturer
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Form Factor") + " : " + memory_form_factor
self.memory_ram_hardware_information_text = self.memory_ram_hardware_information_text + "\n" + _tr("Locator") + " : " + memory_locator
......
......@@ -20,8 +20,8 @@ class Performance:
# ----------------------- Always called when object is generated -----------------------
def __init__(self):
# Set chart performance data line and point highligting off. "chart_line_highlight" takes 0/1 values for highlighting or not. "chart_point_highlight" takes data point index or "-1" for not highlighting.
self.chart_line_highlight = 0
# Set chart performance data line and point highligting off. "chart_line_highlight" takes chart name or "" for highlighting or not. "chart_point_highlight" takes data point index or "-1" for not highlighting.
self.chart_line_highlight = ""
self.chart_point_highlight = -1
......@@ -1926,7 +1926,7 @@ class Performance:
# Check if chart line will be highlighted.
if self.chart_line_highlight == 1:
if self.chart_line_highlight == widget:
# Define local variables for maouse position for lower CPU usage.
try:
......@@ -2098,14 +2098,17 @@ class Performance:
# ----------------------- Highlight performance chart line if mouse is moved onto the drawingarea -----------------------
def performance_line_charts_enter_notify_event_func(self, widget, event):
self.chart_line_highlight = 1
self.chart_line_highlight = widget
widget.queue_draw()
# ----------------------- Revert highlighted performance chart line if mouse is moved out of the drawingarea -----------------------
def performance_line_charts_leave_notify_event_func(self, widget, event):
self.chart_line_highlight = 0
try:
self.chart_line_highlight = ""
except ValueError:
pass
widget.queue_draw()
......
......@@ -14,6 +14,7 @@
<property name="website">https://github.com/hakandundar34coding/system-monitoring-center</property>
<property name="authors">Hakan Dündar</property>
<property name="translator-credits">panmourovaty (čeština)
MasterKia ( فارسی)
Kálmán Szalai (Magyar)
ski007, K0RR, sdorpl (polski)
Bruno do Nascimento (português do Brasil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment