From 799198b8d7fa77a5590780b927e2dd25207629b7 Mon Sep 17 00:00:00 2001 From: Automeris naranja Date: Tue, 19 Nov 2024 14:40:46 -0300 Subject: [PATCH] nautilus-filename-validator: Drop periods from all sentences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Text generally shouldn’t end with a period. This applies to headings, descriptions, and includes text that is written as a complete sentence". https://developer.gnome.org/hig/guidelines/writing-style.html#periods --- src/nautilus-filename-validator.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/nautilus-filename-validator.c b/src/nautilus-filename-validator.c index 9dbff72848..3f8ff56f79 100644 --- a/src/nautilus-filename-validator.c +++ b/src/nautilus-filename-validator.c @@ -129,33 +129,33 @@ nautilus_filename_validator_name_is_valid (NautilusFilenameValidator *self, else if (strstr (name, "/") != NULL) { is_valid = FALSE; - *error_message = is_folder ? _("Folder names cannot contain “/”.") : - _("File names cannot contain “/”."); + *error_message = is_folder ? _("Folder names cannot contain “/”") : + _("File names cannot contain “/”"); } else if (strcmp (name, ".") == 0) { is_valid = FALSE; - *error_message = is_folder ? _("A folder cannot be called “.”.") : - _("A file cannot be called “.”."); + *error_message = is_folder ? _("A folder cannot be called “.”") : + _("A file cannot be called “.”"); } else if (strcmp (name, "..") == 0) { is_valid = FALSE; - *error_message = is_folder ? _("A folder cannot be called “..”.") : - _("A file cannot be called “..”."); + *error_message = is_folder ? _("A folder cannot be called “..”") : + _("A file cannot be called “..”"); } else if (nautilus_filename_validator_is_name_too_long (self, name)) { is_valid = FALSE; - *error_message = is_folder ? _("Folder name is too long.") : - _("File name is too long."); + *error_message = is_folder ? _("Folder name is too long") : + _("File name is too long"); } if (is_valid && g_str_has_prefix (name, ".")) { /* We must warn about the side effect */ - *error_message = is_folder ? _("Folders with “.” at the beginning of their name are hidden.") : - _("Files with “.” at the beginning of their name are hidden."); + *error_message = is_folder ? _("Folders with “.” at the beginning of their name are hidden") : + _("Files with “.” at the beginning of their name are hidden"); } return is_valid; @@ -164,8 +164,8 @@ nautilus_filename_validator_name_is_valid (NautilusFilenameValidator *self, static gboolean duplicated_file_label_show (NautilusFilenameValidator *self) { - const char *text = self->duplicated_is_folder ? _("A folder with that name already exists.") : - _("A file with that name already exists."); + const char *text = self->duplicated_is_folder ? _("A folder with that name already exists") : + _("A file with that name already exists"); if (self->feedback_text != text) { -- GitLab