diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c index e4e63e72..90cfd721 100644 --- a/thunar/thunar-list-model.c +++ b/thunar/thunar-list-model.c @@ -1802,7 +1802,7 @@ thunar_list_model_set_date_style (ThunarListModel *store, * Return value: the style used to format customdates in the given @store. **/ static const char* -thunar_list_model_get_date_custom_style (ThunarListModel *store) +thunar_list_model_get_date_custom_style (ThunarListModel *store) { _thunar_return_val_if_fail (THUNAR_IS_LIST_MODEL (store), THUNAR_DATE_STYLE_SIMPLE); return store->date_custom_style; @@ -1819,8 +1819,8 @@ thunar_list_model_get_date_custom_style (ThunarListModel *store) * Changes the style used to format custom dates in @store to the specified @date_custom_style. **/ static void -thunar_list_model_set_date_custom_style (ThunarListModel *store, - const char *date_custom_style) +thunar_list_model_set_date_custom_style (ThunarListModel *store, + const char *date_custom_style) { _thunar_return_if_fail (THUNAR_IS_LIST_MODEL (store)); diff --git a/thunar/thunar-preferences-dialog.c b/thunar/thunar-preferences-dialog.c index c8a6949c..6054c1ca 100644 --- a/thunar/thunar-preferences-dialog.c +++ b/thunar/thunar-preferences-dialog.c @@ -199,14 +199,15 @@ thunar_preferences_dialog_class_init (ThunarPreferencesDialogClass *klass) static void -on_date_format_changed (GtkWidget *combo, GtkWidget *customFormat) +on_date_format_changed (GtkWidget *combo, + GtkWidget *customFormat) { GtkComboBox *combobox = GTK_COMBO_BOX (combo); _thunar_return_if_fail (GTK_IS_COMBO_BOX (combobox)); _thunar_return_if_fail (GTK_IS_WIDGET (customFormat)); - if(gtk_combo_box_get_active (combobox) == THUNAR_DATE_STYLE_CUSTOM) + if (gtk_combo_box_get_active (combobox) == THUNAR_DATE_STYLE_CUSTOM) gtk_widget_set_visible (customFormat, TRUE); else gtk_widget_set_visible (customFormat, FALSE); @@ -385,7 +386,9 @@ thunar_preferences_dialog_init (ThunarPreferencesDialog *dialog) gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), date); g_free (date); } - gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "custom"); + + /* TRANSLATORS: custom date format */ + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Custom")); exo_mutual_binding_new (G_OBJECT (dialog->preferences), "misc-date-style", G_OBJECT (combo), "active"); gtk_widget_set_hexpand (combo, TRUE); gtk_grid_attach (GTK_GRID (grid), combo, 1, 0, 1, 1); @@ -394,19 +397,20 @@ thunar_preferences_dialog_init (ThunarPreferencesDialog *dialog) gtk_widget_show (combo); entry = gtk_entry_new (); - /* TRANSLATORS: Please no translation for the first column ( the specifiers ), 'strftime', and ofc not for \n and \t */ - gtk_widget_set_tooltip_text (entry, _("Custom date format to apply. The most common specifiers are:\n" - "%d\t day of month\n" - "%m\t month\n" - "%Y\t year including century\n" - "%H\t hour\n" - "%M\t minute\n" - "%S\t second\n" + /* TRANSLATORS: Please do not translate the first column (specifiers), 'strftime' and of course '\n' */ + gtk_widget_set_tooltip_text (entry, _("Custom date format to apply.\n\n" + "The most common specifiers are:\n" + "%d day of month\n" + "%m month\n" + "%Y year including century\n" + "%H hour\n" + "%M minute\n" + "%S second\n\n" "For a complete list, check the man pages of 'strftime'")); exo_mutual_binding_new (G_OBJECT (dialog->preferences), "misc-date-custom-style", G_OBJECT (entry), "text"); g_signal_connect (G_OBJECT (combo), "changed", G_CALLBACK (on_date_format_changed), entry); gtk_grid_attach (GTK_GRID (grid), entry, 1, 1, 1, 1); - if(gtk_combo_box_get_active (GTK_COMBO_BOX (combo)) == THUNAR_DATE_STYLE_CUSTOM) + if (gtk_combo_box_get_active (GTK_COMBO_BOX (combo)) == THUNAR_DATE_STYLE_CUSTOM) gtk_widget_set_visible (entry, TRUE); /* diff --git a/thunar/thunar-util.c b/thunar/thunar-util.c index f7001729..9b4de8c5 100644 --- a/thunar/thunar-util.c +++ b/thunar/thunar-util.c @@ -462,7 +462,7 @@ thunar_util_humanize_file_time (guint64 file_time, } else /* if (date_style == THUNAR_DATE_STYLE_CUSTOM) */ { - if(date_custom_style == NULL) + if (date_custom_style == NULL) return g_strdup (""); /* use custom date formatting */