Sign up now! · Forgot password?
RSS/Atom feed identi.ca Twitter

proliferation of messages

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

proliferation of messages Marco Ciampa via gimp-developer-list 05 Dec 07:55
  proliferation of messages Jehan Pagès 05 Dec 12:28
Marco Ciampa via gimp-developer-list
2017-12-05 07:55:25 UTC (8 days ago)

proliferation of messages

Hello devs,
sorry for the trivial question.

Is there any special linguistic reason behind the choice to have so many nearly the same messages like this:

in /app/actions/layers-actions.c:45

"Layer Color Tag: Set to ...."

and the corresponding color:

/app/actions/layers-actions.c:458

msgid "...."

?

Why not just a

Layer Color Tag: Set to %s"

?

--

Marco Ciampa

I know a joke about UDP, but you might not get it.

------------------------

GNU/Linux User #78271 FSFE fellow #364

------------------------

Jehan Pagès
2017-12-05 12:28:42 UTC (7 days ago)

proliferation of messages

Hi!

On Tue, Dec 5, 2017 at 8:55 AM, Marco Ciampa via gimp-developer-list wrote:

Hello devs,
sorry for the trivial question.

Is there any special linguistic reason behind the choice to have so many nearly the same messages like this:

in /app/actions/layers-actions.c:45

"Layer Color Tag: Set to ...."

and the corresponding color:

/app/actions/layers-actions.c:458

msgid "...."

?

No linguistic reason, no. Just I haven't thought better. We still need to have a longer message in the tooltip so that we can have a better understand of the action because the name is just a color (which is pretty not descriptive), and even more because there are several similar actions (set layer color tag, set channel color tag…). And the similarity of the message helps to associate them as similar actions, especially in some out-of-menu context (i.e. the action search) where just reading "Red" would be a pretty non-descriptive information on an action.

But it's true that ideally we could/should factorize the strings to not repeat the same text base.

Why not just a

Layer Color Tag: Set to %s"

?

This would indeed be better, indeed. Now there is a technical difficulty. These strings are not in a printf-style gettext call. They are in an initialization array for action entries with a given non-printf format. We could theoretically change the struct GimpEnumActionEntry to allow for some printf-formatted string, and consequently change as well the function gimp_action_group_add_enum_actions(). Of course if we did this, we should do the same to other Gimp*ActionEntry (and association add_*_actions() functions) to be consistent.

Basically I feel that would be a lot of boring work for limited advantage IMO. :-/

Jehan

--

Marco Ciampa

I know a joke about UDP, but you might not get it.

------------------------

GNU/Linux User #78271 FSFE fellow #364

------------------------

_______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list

ZeMarmot open animation film
http://film.zemarmot.net
Patreon: https://patreon.com/zemarmot
Tipeee: https://www.tipeee.com/zemarmot