[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Display bug in Analyse, Clear Analysis, Move
From: |
Philippe Michel |
Subject: |
Re: Display bug in Analyse, Clear Analysis, Move |
Date: |
Tue, 13 Feb 2024 22:54:13 +0100 |
Guido Flohr wrote:
> That means that probably `N_(”noun|Move”)` should be replaced with
> `NC_(”noun”, ”Move”)` instead, see
> https://developer-old.gnome.org/glib/unstable/glib-I18N.html#NC-:CAPS.
and later:
> This structure is passed to `gtk_action_group_add_actions()` and the
> pipe-separated message context apparently doesn’t work here. So the
> patch is valid.
The NC_() documentation you quote adds that "To get the translated
string, you should call g_dpgettext2() at runtime" but GTK (GTK2 at
least) doesn't do this in gtk_action_group_add_actions(), it uses
g_dgettext(), so there is not support for a message context.
It looks like the alternatives would be to have the actionEntries table
non static, which may be somewhat complicated, or to use "Move" for move
as a noun and "verb|Move" for move as a verb. The latter seems the more
practical choice.
- Display bug in Analyse, Clear Analysis, Move, Ian Shaw, 2024/02/12
- Re: Display bug in Analyse, Clear Analysis, Move, TAKAHASHI Kaoru, 2024/02/12
- Message not available
- Re: Display bug in Analyse, Clear Analysis, Move, Guido Flohr, 2024/02/13
- Re: Display bug in Analyse, Clear Analysis, Move,
Philippe Michel <=
- Message not available
- Re: Display bug in Analyse, Clear Analysis, Move, Guido Flohr, 2024/02/13
- Message not available
- Re: Display bug in Analyse, Clear Analysis, Move, Guido Flohr, 2024/02/13
- Re: Display bug in Analyse, Clear Analysis, Move, TAKAHASHI Kaoru, 2024/02/20