Re: [Usability] [Conglomerate-devel] User-friendly error dialogs for GnomeVFS errors



Am Sam, 2003-06-14 um 14.48 schrieb Gregory Joseph Merchan:
> I think it would be great to have common dialogs in a shared library.
> 
> Raised on the HIG list a while back was which GError's user-friendly
> messages should be: primary or secondary alert text. The discussion didn't
> carry far, as I recall.
> 
> Another issue was the use of markup in alert text. I don't know what the
> status of this is. Marked up strings are frequently a problem for
> translators.
We have similar markup problems with gnome-panel.
Programmers tend to construct error dialog strings like "<b>We have a
problem</b>\n\nDetails: Wow. This is weird".
My proposal is to solve the problem by doing some strconcat magic:
g_strconcat ("<b>",
	     _(string-no-markup),
	     "<b>\n\n",
	     _("Details: %s"),
	     NULL);
and then inserting the error string into %s gap - this allows us to
correctly circumvent RTL issues. This concat magic could be packed into
a public dialog construction function exported through a header which
would then allow to pass a few parameters.
I could try to add such a HIG compliant dialog, if desired - maybe
that's even a good idea to add it to libgnomeui. Almost all GNOME core
packages use such dialogs and construct them in a bogus, not
HIG-compliant manner.

regs,
 Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]