core: tidy up re-export of tr

Only export the one item we need, the Translator trait.
This commit is contained in:
Simon Hausmann 2025-09-29 11:43:08 +02:00 committed by Simon Hausmann
parent 9c87c2abf0
commit 7f4be51ad5
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ mod errors;
mod models;
mod timer;
mod value;
use i_slint_core::translations::tr;
use i_slint_core::translations::Translator;
fn handle_unraisable(py: Python<'_>, context: String, err: PyErr) {
let exception = err.value(py);
@ -99,7 +99,7 @@ struct PyGettextTranslator(
Py<PyAny>,
);
impl tr::Translator for PyGettextTranslator {
impl Translator for PyGettextTranslator {
fn translate<'a>(
&'a self,
string: &'a str,