From bd74e4036c70e580e5f07f78e910b2c8fc8d36b6 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 18 Dec 2025 11:39:32 +0100 Subject: [PATCH] Update some locations i forgot to update before --- .../astro/src/content/docs/guide/development/translations.mdx | 4 ++-- tools/viewer/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/astro/src/content/docs/guide/development/translations.mdx b/docs/astro/src/content/docs/guide/development/translations.mdx index ca717992a2..d98cfc61b4 100644 --- a/docs/astro/src/content/docs/guide/development/translations.mdx +++ b/docs/astro/src/content/docs/guide/development/translations.mdx @@ -98,9 +98,9 @@ Pass the `--no-default-translation-context` flag to `slint-tr-extractor` if you Set the `SLINT_NO_DEFAULT_TRANSLATION_CONTEXT` target property on your CMake target. -With `slint_build::CompilerConfiguration::without_default_translation_context()` +With `slint_build::CompilerConfiguration::set_default_translation_context(slint_build::DefaultTranslationContext::None)` when using a build script. -With `slint_interpreter::Compiler::disable_default_translation_context()` +With `slint_interpreter::Compiler::set_default_translation_context(slint_interpreter::DefaultTranslationContext::None)` when using the `slint-interpreter` crate. diff --git a/tools/viewer/main.rs b/tools/viewer/main.rs index 0c47a906a2..2cb12fa9a5 100644 --- a/tools/viewer/main.rs +++ b/tools/viewer/main.rs @@ -194,7 +194,7 @@ fn init_compiler( } #[cfg(feature = "gettext")] if args.no_default_translation_context { - compiler.disable_default_translation_context(); + compiler.set_default_translation_context(slint_interpreter::DefaultTranslationContext::None); } compiler.set_include_paths(args.include_paths.clone()); compiler.set_library_paths(