Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in .slint file,I can use @tr() macro to translate language, how to get translated strings in rust code? #3388

Closed
ryanjackgit opened this issue Aug 31, 2023 · 3 comments
Labels
a:platform-windows Issue specific to Windows (mT,bS) upstream Needs a fix upstream

Comments

@ryanjackgit
Copy link

ryanjackgit commented Aug 31, 2023

For example, use @tr("hello") in .slint file. in rust code,how to do it?

@ogoffart
Copy link
Member

There are a few crates that do it. For example with https://crates.io/crates/tr you can use tr!("hello")

@ryanjackgit
Copy link
Author

on windows 10, build gettext-sys error , #3307

@hunger hunger added the a:platform-windows Issue specific to Windows (mT,bS) label Oct 4, 2023
@ogoffart ogoffart added the upstream Needs a fix upstream label Jan 19, 2024
@ogoffart
Copy link
Member

Duplicate of woboq/tr#10 and gettext-rs/gettext-rs#12 and #3307

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:platform-windows Issue specific to Windows (mT,bS) upstream Needs a fix upstream
Projects
None yet
Development

No branches or pull requests

3 participants