mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Internalize hack for dynamic translations change so that it also works for Rust apps
This commit is contained in:
parent
66652cdc1d
commit
623bae7732
3 changed files with 14 additions and 6 deletions
|
@ -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();
|
||||
/// });
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue