summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-08-22 17:12:19 +0800
committerraveit65 <[email protected]>2019-08-26 14:21:14 +0200
commitf0331c554e87855b75d4089796add4a2a6003771 (patch)
tree8c79c77a97d344da92a487beccaaad94af9f01d4 /src/file-manager
parent18f8b7ab6417aecf62c7b2a311190c70de12e17c (diff)
downloadcaja-f0331c554e87855b75d4089796add4a2a6003771.tar.bz2
caja-f0331c554e87855b75d4089796add4a2a6003771.tar.xz
Let some strings be translatable
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-desktop-icon-view.c6
-rw-r--r--src/file-manager/fm-empty-view.c11
2 files changed, 9 insertions, 8 deletions
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 <config.h>
#include <string.h>
+#include <glib/gi18n.h>
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-macros.h>
@@ -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
};