Commit 1268137e authored by Sébastien Bacher's avatar Sébastien Bacher

night-light: set screen temperature strings as translatable

Fixes #437
parent d34bbda3
Pipeline #74342 failed with stages
in 2 minutes and 29 seconds
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment