[gnome-control-center/night-strings-translate-3-32: 1/2] night-light: set screen temperature strings as translatable
- From: Sebastien Bacher <sbacher src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/night-strings-translate-3-32: 1/2] night-light: set screen temperature strings as translatable
- Date: Thu, 11 Apr 2019 13:09:31 +0000 (UTC)
commit 21c268669ac8e515c6beb1f914c8f5453f960c81
Author: Sebastien Bacher <seb128 ubuntu com>
Date: Tue Apr 9 21:07:12 2019 +0200
night-light: set screen temperature strings as translatable
Fixes #437
panels/display/cc-night-light-dialog.c | 8 ++------
po/POTFILES.in | 1 +
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/panels/display/cc-night-light-dialog.c b/panels/display/cc-night-light-dialog.c
index 42c1353d1..c1d6b039b 100644
--- a/panels/display/cc-night-light-dialog.c
+++ b/panels/display/cc-night-light-dialog.c
@@ -638,15 +638,12 @@ cc_night_light_dialog_init (CcNightLightDialog *self)
{
g_autoptr(GtkCssProvider) provider = NULL;
g_autoptr(GError) error = NULL;
- g_autofree gchar *text_low = NULL;
- g_autofree gchar *text_high = NULL;
gtk_widget_init_template (GTK_WIDGET (self));
- text_low = g_strdup_printf ("%s", "More Warm");
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
3000, GTK_POS_BOTTOM,
- text_low);
+ _("More Warm"));
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
4000, GTK_POS_BOTTOM,
@@ -656,10 +653,9 @@ cc_night_light_dialog_init (CcNightLightDialog *self)
5000, GTK_POS_BOTTOM,
NULL);
- text_high = g_strdup_printf ("%s", "Less Warm");
gtk_scale_add_mark (GTK_SCALE (self->scale_color_temperature),
6000, GTK_POS_BOTTOM,
- text_high);
+ _("Less Warm"));
self->cancellable = g_cancellable_new ();
self->settings_display = g_settings_new (DISPLAY_SCHEMA);
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1d8b48beb..53836cd0e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -37,6 +37,7 @@ panels/display/cc-display-panel.c
panels/display/cc-display-panel.ui
panels/display/cc-display-settings.c
panels/display/cc-display-settings.ui
+panels/display/cc-night-light-dialog.c
panels/display/cc-night-light-dialog.ui
panels/display/gnome-display-panel.desktop.in.in
panels/info/cc-info-default-apps-panel.ui
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]