Internalize hack for dynamic translations change so that it also works for Rust apps

This commit is contained in:
Simon Hausmann 2024-06-03 16:19:47 +02:00 committed by Simon Hausmann
parent 66652cdc1d
commit 623bae7732
3 changed files with 14 additions and 6 deletions

View file

@ -1276,10 +1276,7 @@ inline SharedString translate(const SharedString &original, const SharedString &
/// Example
/// ```cpp
/// my_ui->global<LanguageSettings>().on_french_selected([] {
/// // trick from https://www.gnu.org/software/gettext/manual/html_node/gettext-grok.html
/// setenv("LANGUAGE", langs[l], true);
/// extern int _nl_msg_cat_cntr;
/// ++_nl_msg_cat_cntr;
/// slint::update_all_translations();
/// });
/// ```