[ghex] Construct the copyright string at runtime
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] Construct the copyright string at runtime
- Date: Tue, 21 Feb 2012 04:50:12 +0000 (UTC)
commit 3feb00e37cb09a29b2c9a8adc0e9a25c2615d86d
Author: Kalev Lember <kalevlember gmail com>
Date: Mon Feb 20 21:43:10 2012 +0200
Construct the copyright string at runtime
... making it easier to translate, so that the string wouldn't change
each year. Also added a comment for translators.
src/ui.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/ui.c b/src/ui.c
index 339aa5d..154db00 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -130,6 +130,7 @@ void
about_cb (GtkAction *action,
gpointer user_data)
{
+ gchar *copyright;
gchar *license_translated;
const gchar *authors[] = {
@@ -141,9 +142,6 @@ about_cb (GtkAction *action,
NULL
};
- const gchar *copyright = "Copyright  1998 - 2006 Jaka Mo\304\215nik\n"
- "Copyright  2006 - 2012 GHex Contributors";
-
/* For documentation_credits */
#include "../help/ghex-docs.h"
@@ -166,6 +164,10 @@ about_cb (GtkAction *action,
_(license[2]),
NULL);
+ /* Translators: these two strings here indicate the copyright time span,
+ e.g. 1998-2012. */
+ copyright = g_strdup_printf (_("Copyright  %Idâ%Id The GHex authors"), 1998, 2012);
+
gtk_show_about_dialog (NULL,
"authors", authors,
"comments", _("A binary file editor"),
@@ -183,6 +185,7 @@ about_cb (GtkAction *action,
NULL);
g_free (license_translated);
+ g_free (copyright);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]