mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-17 13:58:05 +00:00
core: tidy up re-export of tr
Only export the one item we need, the Translator trait.
This commit is contained in:
parent
9c87c2abf0
commit
7f4be51ad5
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue