[nautilus] window-menus: don't hardcode year values in the translatable string
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window-menus: don't hardcode year values in the translatable string
- Date: Mon, 4 Apr 2011 23:13:17 +0000 (UTC)
commit ced6d22409c3a849b86b75bb867f267a3cdad800
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 4 18:41:40 2011 -0400
window-menus: don't hardcode year values in the translatable string
https://bugzilla.gnome.org/show_bug.cgi?id=646735
src/nautilus-window-menus.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c
index 77a92c7..69c617d 100644
--- a/src/nautilus-window-menus.c
+++ b/src/nautilus-window-menus.c
@@ -366,19 +366,27 @@ action_about_nautilus_callback (GtkAction *action,
"along with Nautilus; if not, write to the Free Software Foundation, Inc., "
"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA")
};
- gchar *license_trans;
+ gchar *license_trans, *copyright_str;
+ GDateTime *date;
license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]),
_(license[2]), NULL);
+ date = g_date_time_new_now_local ();
+
+ /* Translators: these two strings here indicate the copyright time span,
+ * e.g. 1999-2011.
+ */
+ copyright_str = g_strdup_printf (_("Copyright \xC2\xA9 %Id-%Id "
+ "The Nautilus authors"), 1999, g_date_time_get_year (date));
+
gtk_show_about_dialog (GTK_WINDOW (user_data),
"program-name", _("Nautilus"),
"version", VERSION,
"comments", _("Nautilus lets you organize "
"files and folders, both on "
"your computer and online."),
- "copyright", _("Copyright \xC2\xA9 1999-2011 "
- "The Nautilus authors"),
+ "copyright", copyright_str,
"license", license_trans,
"wrap-license", TRUE,
"authors", authors,
@@ -394,7 +402,8 @@ action_about_nautilus_callback (GtkAction *action,
NULL);
g_free (license_trans);
-
+ g_free (copyright_str);
+ g_date_time_unref (date);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]