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.
> 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 c
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 t
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-separa
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: /sources/gnubg/gnubg/gtkgame.
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)
> - "M
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
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