Content-Length: 318248 | pFad | http://github.com/slint-ui/slint/pull/7858

F6 Extend the use cases demo with translation support by tronical · Pull Request #7858 · slint-ui/slint · GitHub
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

Extend the use cases demo with translation support #7858

Merged
merged 4 commits into from
Mar 14, 2025

Conversation

tronical
Copy link
Member

No description provided.

@tronical tronical force-pushed the simon/usescases-p4-translations branch from e7fc177 to b14d412 Compare March 14, 2025 12:52

By default, the domain used for translations is the name of the CMake target the `.slint` files are targeted with.
Use the `SLINT_TRANSLATION_DOMAIN` target property to override this and use the specified value as domain, instead.
This is useful in build environments where the target name is given and not suitable, such as esp-idf.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is useful in many other case. Not sure if mentioning esp-idf here is worth it. But I guess it doesn't hurt

@@ -42,4 +42,6 @@ export component App inherits Window {
changed height => {
DialogGlobal.window-height = root.height;
}

out property <string> trick-to-include-german-umlauts: "äöüÄÖÜ"; // required for translations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sucks 😞
We need a better way to tell the Slint compiler what ranges we include.
Alternatively, we should have the slint compiler look at the bundled string.
Anyway, I guess right now we have to keep that for the example.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, we should have the slint compiler look at the bundled string.

Yes indeed.

@@ -66,7 +66,7 @@ jobs:
- name: Downgrade cc and ring crate to work around https://github.com/slint-ui/slint/issues/6875
run: |
cargo update -p ring --precise 0.17.9
cargo update -p cc --precise 1.1.31
cargo update -p cc --precise 1.2.16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need that at all?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's indeed unrelated and from another change. Oops.

@tronical tronical force-pushed the simon/usescases-p4-translations branch from b14d412 to 6a365ee Compare March 14, 2025 13:46
@tronical tronical merged commit 37a82bc into master Mar 14, 2025
36 checks passed
@tronical tronical deleted the simon/usescases-p4-translations branch March 14, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/slint-ui/slint/pull/7858

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy