Add translation capability, offer English and French as options

This commit is contained in:
Miguel Jacq 2025-11-12 13:58:58 +11:00
parent 54a6be835f
commit f578d562e6
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
17 changed files with 490 additions and 138 deletions

View file

@ -16,6 +16,8 @@ from PySide6.QtWidgets import (
QWidget,
)
from . import strings
Row = Tuple[str, str]
@ -30,7 +32,7 @@ class Search(QWidget):
self._db = db
self.search = QLineEdit()
self.search.setPlaceholderText("Search for notes here")
self.search.setPlaceholderText(strings._("search_for_notes_here"))
self.search.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
self.search.textChanged.connect(self._search)