from __future__ import annotations try: from qgis.PyQt.QtCore import QCoreApplication def tr(text: str, context: str = "GeoDonkey") -> str: return QCoreApplication.translate(context, text) except ImportError: def tr(text: str, context: str = "GeoDonkey") -> str: return text def later(text: str) -> str: return text