[gnome-control-center/translate-power-button-behavior-options] power: Use translated strings for power button action behaviors




commit a92752ef444d3f7abc9fe4c2dfca06c122906010
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Sep 29 13:25:53 2021 +0200

    power: Use translated strings for power button action behaviors
    
    Fixes: #1476

 panels/power/cc-power-panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 04987ff98..15e69e3d9 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -811,7 +811,7 @@ populate_power_button_row (HdyComboRow *combo_row,
       if (!can_hibernate && actions[i].value == GSD_POWER_BUTTON_ACTION_HIBERNATE)
         continue;
 
-      value_object = hdy_value_object_new_string (actions[i].name);
+      value_object = hdy_value_object_new_string (_(actions[i].name));
       g_object_set_data (G_OBJECT (value_object),
                          "value",
                          GUINT_TO_POINTER (actions[i].value));


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