Skip to content

Using gettext with menu! section! macro #357

Answered by AaronErhardt
MTRNord asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure how to tell GTK to use gettext, but the macro should roughly generate the following code for the first action:

gio::MenuItem::new(Some("_Preferences"), Some(&PreferencesAction::action_name()));

Before fixing or improving the macro we first have to figure out how to tell GTK to translate the strings in regular Rust code. This might also be a question for the gtk-rs matrix channel.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@MTRNord
Comment options

@AaronErhardt
Comment options

@MTRNord
Comment options

@MTRNord
Comment options

@AaronErhardt
Comment options

Answer selected by MTRNord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants