[gnome-software: 1/14] gs-details-page: Relabel ‘Launch’ as ‘Open’




commit 55a4a0cc155b5df75d8bf0ea8d7047468b554d86
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Aug 11 17:00:18 2021 +0100

    gs-details-page: Relabel ‘Launch’ as ‘Open’
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1351

 src/gs-details-page.c  | 4 ----
 src/gs-details-page.ui | 2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 6eedf0a78..7bcdf6535 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -934,10 +934,6 @@ gs_details_page_refresh_buttons (GsDetailsPage *self)
        /* launch button */
        gtk_widget_set_visible (self->button_details_launch, gs_details_page_can_launch_app (self));
 
-       gtk_button_set_label (GTK_BUTTON (self->button_details_launch),
-                             /* TRANSLATORS: A label for a button to execute the selected application. */
-                             _("_Launch"));
-
        /* remove button */
        if (gs_app_has_quirk (self->app, GS_APP_QUIRK_COMPULSORY) ||
            gs_app_get_kind (self->app) == AS_COMPONENT_KIND_FIRMWARE) {
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index f733b8067..d077a20af 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -249,6 +249,8 @@
                                           <object class="GtkButton" id="button_details_launch">
                                             <property name="visible">True</property>
                                             <property name="can_focus">True</property>
+                                            <!-- TRANSLATORS: A label for a button to execute the selected 
application. -->
+                                            <property name="label" translatable="yes">_Open</property>
                                             <property name="use_underline">True</property>
                                             <property name="valign">center</property>
                                             <style>


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