From f0331c554e87855b75d4089796add4a2a6003771 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Thu, 22 Aug 2019 17:12:19 +0800 Subject: Let some strings be translatable --- src/file-manager/fm-desktop-icon-view.c | 6 +++--- src/file-manager/fm-empty-view.c | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/file-manager') diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c index 1efb2578..aa40b2db 100644 --- a/src/file-manager/fm-desktop-icon-view.c +++ b/src/file-manager/fm-desktop-icon-view.c @@ -883,11 +883,11 @@ fm_desktop_icon_view_supports_uri (const char *uri, static CajaViewInfo fm_desktop_icon_view = { .id = FM_DESKTOP_ICON_VIEW_ID, - .view_combo_label = "Desktop View", - .view_menu_label_with_mnemonic = "_Desktop", + .view_combo_label = N_("Desktop View"), + .view_menu_label_with_mnemonic = N_("_Desktop"), .error_label = N_("The desktop view encountered an error."), .startup_error_label = N_("The desktop view encountered an error while starting up."), - .display_location_label = "Display this location with the desktop view.", + .display_location_label = N_("Display this location with the desktop view."), .create = fm_desktop_icon_view_create, .supports_uri = fm_desktop_icon_view_supports_uri }; diff --git a/src/file-manager/fm-empty-view.c b/src/file-manager/fm-empty-view.c index 3aff6ec6..d14f4cd2 100644 --- a/src/file-manager/fm-empty-view.c +++ b/src/file-manager/fm-empty-view.c @@ -24,6 +24,7 @@ #include #include +#include #include #include @@ -393,11 +394,11 @@ fm_empty_view_supports_uri (const char *uri, static CajaViewInfo fm_empty_view = { .id = FM_EMPTY_VIEW_ID, - .view_combo_label = "Empty", - .view_menu_label_with_mnemonic = "Empty View", - .error_label = "_Empty View", - .startup_error_label = "The empty view encountered an error.", - .display_location_label = "Display this location with the empty view.", + .view_combo_label = N_("Empty View"), + .view_menu_label_with_mnemonic = N_("_Empty"), + .error_label = N_("Empty View"), + .startup_error_label = N_("The empty view encountered an error."), + .display_location_label = N_("Display this location with the empty view."), .create = fm_empty_view_create, .supports_uri =fm_empty_view_supports_uri }; -- cgit v1.2.1