[nautilus] properties-window: specify string context
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: specify string context
- Date: Tue, 1 Sep 2015 11:22:44 +0000 (UTC)
commit be49f481de725c842458945b07b4f41725c7bc87
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Sep 1 13:20:47 2015 +0200
properties-window: specify string context
For better translations.
https://bugzilla.gnome.org/show_bug.cgi?id=746565
src/nautilus-properties-window.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 344f918..e94ecfe 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -824,7 +824,14 @@ update_properties_window_title (NautilusPropertiesWindow *window)
if (file != NULL) {
g_free (title);
name = nautilus_file_get_display_name (file);
- title = g_strdup_printf (_("%s Properties"), name);
+ if (nautilus_file_is_directory (file)) {
+ /* To translators: %s is the name of the folder. */
+ title = g_strdup_printf (C_("folder", "%s Properties"), name);
+ } else {
+ /* To translators: %s is the name of the file. */
+ title = g_strdup_printf (C_("file", "%s Properties"), name);
+ }
+
g_free (name);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]