diff options
author | António Fernandes <antoniof@gnome.org> | 2022-12-04 18:56:52 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-12-04 18:56:52 +0000 |
commit | d6c1121b30d35d86fed4a541d29017d8f21f15dc (patch) | |
tree | a829c89a3509e744072039d5367c0b6c2987b326 | |
parent | 91f7fb675e558fb0b2c3dc5a6082386b0aef159a (diff) | |
download | nautilus-d6c1121b30d35d86fed4a541d29017d8f21f15dc.tar.gz |
Revert "Incorrect � letter shown for file type name in Japanese and Cyrillic languages"
This reverts commit 91f7fb675e558fb0b2c3dc5a6082386b0aef159a.
The commit message was broken, missing context.
-rw-r--r-- | src/nautilus-properties-window.c | 17 | ||||
-rw-r--r-- | src/resources/ui/nautilus-properties-window.ui | 10 |
2 files changed, 11 insertions, 16 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c index ab2562488..b701c9b3d 100644 --- a/src/nautilus-properties-window.c +++ b/src/nautilus-properties-window.c @@ -1501,18 +1501,10 @@ value_field_update (GtkLabel *label, if (g_str_equal (attribute_name, "detailed_type")) { g_autofree char *mime_type = NULL; - gchar *cap_label; mime_type = file_list_get_string_attribute (file_list, "mime_type"); - gtk_widget_set_tooltip_text (GTK_WIDGET (label), mime_type); - - cap_label = eel_str_capitalize (attribute_value); - if (cap_label != NULL) - { - g_free (attribute_value); - attribute_value = cap_label; - } + gtk_widget_set_tooltip_text (GTK_WIDGET (label), mime_type); } else if (g_str_equal (attribute_name, "size")) { @@ -2520,13 +2512,6 @@ setup_volume_information (NautilusPropertiesWindow *self) { /* Translators: %s will be filled with a filesystem type, such as 'ext4' or 'msdos'. */ g_autofree gchar *fs_label = g_strdup_printf (_("%s Filesystem"), fs_type); - gchar *cap_label = eel_str_capitalize (fs_label); - if (cap_label != NULL) - { - g_free (fs_label); - fs_label = cap_label; - } - gtk_label_set_text (self->type_file_system_label, fs_label); gtk_widget_show (GTK_WIDGET (self->type_file_system_label)); } diff --git a/src/resources/ui/nautilus-properties-window.ui b/src/resources/ui/nautilus-properties-window.ui index b72fae9be..a1496327f 100644 --- a/src/resources/ui/nautilus-properties-window.ui +++ b/src/resources/ui/nautilus-properties-window.ui @@ -109,6 +109,11 @@ <property name="max-width-chars">24</property> <property name="selectable">True</property> <property name="visible">False</property> + <attributes> + <attribute name="text-transform" + value="PANGO_TEXT_TRANSFORM_UPPERCASE" + start="0" end="1"/> + </attributes> </object> </child> <child> @@ -118,6 +123,11 @@ <property name="max-width-chars">24</property> <property name="selectable">True</property> <property name="visible">False</property> + <attributes> + <attribute name="text-transform" + value="PANGO_TEXT_TRANSFORM_UPPERCASE" + start="0" end="1"/> + </attributes> </object> </child> <child> |