Re: Display bug in Analyse, Clear Analysis, Move

2024-02-20 Thread TAKAHASHI Kaoru
Hi, Philippe Michel writes: > 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. Thanks for changes.

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
> But we could also leverage the kind of hacky implementation of message > contexts in GNU gettext. Message contexts were introduced in a manner that > did not require a modification of the format of .mo resp. .gmo files. It was > simply assumed/stipulated that message ids must not contain the

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
Hi Philippe, > On 13 Feb 2024, at 23:54, Philippe Michel wrote: > > 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

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Philippe Michel
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 >

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
Hi, it looks like the `_()` Gtk2 macro does some magic under the hood to automatically extract a message context separated by a pipe symbol. I wasn’t aware of that. > Index: gtkgame.c > === > RCS file:

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-13 Thread Guido Flohr
Hi, > On 12 Feb 2024, at 18:36, TAKAHASHI Kaoru wrote: > > Hi, > > It seems difficult for GTKTranslate() to handle msgid with context > (e.g. "noun|Move"). > > The following changes might work: > - "noun|Move" -> "Move" (remove context msgid) > - "verb|Move" -> "verb|Move" (unchange) > -

Re: Display bug in Analyse, Clear Analysis, Move

2024-02-12 Thread TAKAHASHI Kaoru
sound settings -> "Confirm move" or "Submit move", etc The patch is attached. Ian Shaw via "Bug reports for and general discussion about GNU Backgammon." writes: > The menu item for Display bug in Analyse, Clear Analysis, Move displays: > > "no

Display bug in Analyse, Clear Analysis, Move

2024-02-12 Thread Bug reports for and general discussion about GNU Backgammon.
The menu item for Display bug in Analyse, Clear Analysis, Move displays: "noun|Move" Instead of just "Move" This appears in en_US.po, which I assume is the cause. #: gtkgame.c:4028 gtkgame.c:4039 gtkmovelist.c:63 gtkrolls.c:198 html.c:2161 6382<https://cvs.savann