diff options
author | Cyril Brulebois <cyrilbois@src.gnome.org> | 2007-11-07 04:19:12 +0800 |
---|---|---|
committer | Cyril Brulebois <cyrilbois@src.gnome.org> | 2007-11-07 04:19:12 +0800 |
commit | 89a162f0b69c856e31d12350e1eb59935fd8e7ef (patch) | |
tree | ddc4133bf704427cc8b9c2833c5bd40c1fbe915f | |
parent | 77da5499bd2341cebf8e315478ec95432fa78765 (diff) | |
download | gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.tar gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.tar.gz gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.tar.bz2 gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.tar.lz gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.tar.xz gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.tar.zst gsoc2013-epiphany-89a162f0b69c856e31d12350e1eb59935fd8e7ef.zip |
Enable a --with-distributor-name configure option, defaulting to Epiphany.
Use it on an error page to designate the distributors/developers to contact.
Fixes bug #433796.
svn path=/trunk/; revision=7643
-rw-r--r-- | configure.ac | 18 | ||||
-rw-r--r-- | embed/mozilla/EphyAboutModule.cpp | 7 |
2 files changed, 22 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index c62007af7..91b5cb647 100644 --- a/configure.ac +++ b/configure.ac @@ -789,6 +789,24 @@ if test "$have_gvfs" = "yes"; then fi AM_CONDITIONAL([HAVE_GVFS],[test "$have_gvfs" = "yes"]) +# Distributor name + +AC_ARG_WITH(distributor-name, +[ --with-distributor-name=name Distributor name.],LSB_DISTRIBUTOR="$withval",) + +if test "x$LSB_DISTRIBUTOR" = "x"; then + AC_CHECK_PROGS([LSB_RELEASE], [lsb_release],) + if test -n "$LSB_RELEASE"; then + # Fallback on lsb_release if available + LSB_DISTRIBUTOR=$($LSB_RELEASE -i -s) + else + # Fallback on the product name + LSB_DISTRIBUTOR="Epiphany" + fi +fi + +AC_DEFINE_UNQUOTED(LSB_DISTRIBUTOR, "$LSB_DISTRIBUTOR", [Distributor name.]) + # compat cruft GGE_VERSION=0 AC_SUBST([GGE_VERSION]) diff --git a/embed/mozilla/EphyAboutModule.cpp b/embed/mozilla/EphyAboutModule.cpp index 8e0d760b9..45af4a70d 100644 --- a/embed/mozilla/EphyAboutModule.cpp +++ b/embed/mozilla/EphyAboutModule.cpp @@ -534,9 +534,10 @@ EphyAboutModule::CreateRecoverPage(nsIURI *aRecoverURI, NS_ENSURE_SUCCESS (rv, rv); char *secondary = g_markup_printf_escaped - (_("The page ā%sā in this tab was not fully loaded yet when " - "the web browser crashed; it could have caused the crash."), - url.get()); + (_("This page was loading when Epiphany closed unexpectedly." + "This might happen again if you reload the page. If it does, please report" + "the problem to the %s developers."), + LSB_DISTRIBUTOR); nsCOMPtr<nsIChannel> channel; rv = WritePage (aRecoverURI, uri, uri, rawurl, title.get(), |