[gnome-control-center/gnome-41-power-translate-button-behavior-opts] power: Use translated strings for power button action behaviors
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-41-power-translate-button-behavior-opts] power: Use translated strings for power button action behaviors
- Date: Thu, 30 Sep 2021 08:45:05 +0000 (UTC)
commit 6db138c6c8c1dd093f310af608c1b4c432b9c6bf
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]