[gnome-builder] Follow standard convention for translator credits



commit dbed52b546e4ce6842bd2c9b0d2f3be300a26503
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 12 16:07:02 2014 -0400

    Follow standard convention for translator credits
    
    Translators will translate the string "translator-credits" into their
    own names, so that translators don't have to find a nonstandard file and
    the list of translators in the about dialog does not explode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738414

 src/app/gb-application.c                  |    8 +-------
 src/resources/gnome-builder.gresource.xml |    1 -
 2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index e9dc052..20e1aba 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -348,7 +348,6 @@ gb_application_activate_about_action (GSimpleAction *action,
   GBytes *bytes;
   gchar **authors;
   gchar **artists;
-  gchar *translators;
 
   g_return_if_fail (GB_IS_APPLICATION (user_data));
 
@@ -362,10 +361,6 @@ gb_application_activate_about_action (GSimpleAction *action,
   artists = g_strsplit (g_bytes_get_data (bytes, NULL), "\n", 0);
   g_bytes_unref (bytes);
 
-  bytes = g_resources_lookup_data ("/org/gnome/builder/TRANSLATORS", 0, NULL);
-  translators = g_strdup (g_bytes_get_data (bytes, NULL));
-  g_bytes_unref (bytes);
-
   window = g_object_new (GTK_TYPE_ABOUT_DIALOG,
                          "artists", artists,
                          "authors", authors,
@@ -376,7 +371,7 @@ gb_application_activate_about_action (GSimpleAction *action,
                          "modal", TRUE,
                          "program-name", _("GNOME Builder"),
                          "transient-for", list ? list->data : NULL,
-                         "translator-credits", translators,
+                         "translator-credits", _("translator-credits"),
                          "version", PACKAGE_VERSION,
                          "website", "https://live.gnome.org/Apps/Builder";,
                          "website-label", _("Builder Website"),
@@ -387,7 +382,6 @@ gb_application_activate_about_action (GSimpleAction *action,
 
   g_strfreev (authors);
   g_strfreev (artists);
-  g_free (translators);
 }
 
 static void
diff --git a/src/resources/gnome-builder.gresource.xml b/src/resources/gnome-builder.gresource.xml
index dfc84c5..99c2a6c 100644
--- a/src/resources/gnome-builder.gresource.xml
+++ b/src/resources/gnome-builder.gresource.xml
@@ -3,7 +3,6 @@
   <gresource prefix="/org/gnome/builder">
     <file alias="AUTHORS">../../AUTHORS</file>
     <file alias="ARTISTS">../../ARTISTS</file>
-    <file alias="TRANSLATORS">../../TRANSLATORS</file>
 
     <file>css/builder.Adwaita.css</file>
     <file>css/markdown.css</file>


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