replace strings in backup_content_frame for translate
This commit is contained in:
Binary file not shown.
@@ -152,6 +152,7 @@ class Msg:
|
||||
"yes": _("Yes"),
|
||||
"no": _("No"),
|
||||
"apply": _("Apply"),
|
||||
"delete": _("Delete"),
|
||||
"source": _("Source"),
|
||||
"destination": _("Destination"),
|
||||
"system_backup_info": _("System Backup"),
|
||||
@@ -174,6 +175,9 @@ class Msg:
|
||||
"in_backup": _("In Backup"),
|
||||
"name": _("Name"),
|
||||
"path": _("Path"),
|
||||
"date": _("Date"),
|
||||
"size": _("Size"),
|
||||
"backup_content": _("Backup Content"),
|
||||
|
||||
# Menus
|
||||
"file_menu": _("File"),
|
||||
@@ -231,4 +235,4 @@ class Msg:
|
||||
"projected_usage_label": _("Projected usage after backup"),
|
||||
"header_title": _("Lx Tools Py-Backup"),
|
||||
"header_subtitle": _("Simple GUI for rsync"),
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -4,6 +4,8 @@ import os
|
||||
from datetime import datetime
|
||||
import re
|
||||
|
||||
from app_config import Msg
|
||||
|
||||
class BackupContentFrame(ttk.Frame):
|
||||
def __init__(self, master, backup_manager, **kwargs):
|
||||
super().__init__(master, **kwargs)
|
||||
@@ -13,22 +15,24 @@ class BackupContentFrame(ttk.Frame):
|
||||
|
||||
# --- Backup Content List View ---
|
||||
self.content_frame = ttk.LabelFrame(
|
||||
self, text="Backup Inhalt", padding=10)
|
||||
self, text=Msg.STR["backup_content"], padding=10)
|
||||
self.content_frame.pack(fill=tk.BOTH, expand=True)
|
||||
|
||||
columns = ("name", "date", "size")
|
||||
self.content_tree = ttk.Treeview(
|
||||
self.content_frame, columns=columns, show="headings")
|
||||
self.content_tree.heading("name", text=Msg.STR["name"])
|
||||
self.content_tree.heading("date", text=Msg.STR["date"])
|
||||
self.content_tree.heading("size", text=Msg.STR["size"])
|
||||
for col in columns:
|
||||
self.content_tree.heading(col, text=col.capitalize())
|
||||
self.content_tree.column(col, width=150)
|
||||
self.content_tree.pack(fill=tk.BOTH, expand=True, padx=5, pady=5)
|
||||
|
||||
list_button_frame = ttk.Frame(self.content_frame)
|
||||
list_button_frame.pack(pady=10)
|
||||
ttk.Button(list_button_frame, text="Wiederherstellen",
|
||||
ttk.Button(list_button_frame, text=Msg.STR["restore"],
|
||||
command=self._restore_selected).pack(side=tk.LEFT, padx=5)
|
||||
ttk.Button(list_button_frame, text="Löschen",
|
||||
ttk.Button(list_button_frame, text=Msg.STR["delete"],
|
||||
command=self._delete_selected).pack(side=tk.LEFT, padx=5)
|
||||
|
||||
def show(self, backup_path):
|
||||
|
||||
Reference in New Issue
Block a user