16 lines
353 B
Python
16 lines
353 B
Python
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
|