From 1dceeb0327e21d6571f235ec69830613f0ea1e98 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Thu, 3 Oct 2024 15:07:31 +0100 Subject: [PATCH] Simplify subtitle file type descriptions Replace the verbose subtitle file type descriptions with shorter, more concise names. This enhances readability and consistency across the codebase by focusing on the essential part of each description. Signed-off-by: Ivandro Jao --- src/ui/Logic/FileTypeAssociations.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ui/Logic/FileTypeAssociations.cs b/src/ui/Logic/FileTypeAssociations.cs index 4e3431e74..50da10c4a 100644 --- a/src/ui/Logic/FileTypeAssociations.cs +++ b/src/ui/Logic/FileTypeAssociations.cs @@ -54,45 +54,45 @@ namespace Nikse.SubtitleEdit.Logic { if (ext.Equals(".srt", StringComparison.OrdinalIgnoreCase)) { - return "SubRip subtitle file"; + return "SubRip"; } if (ext.Equals(".ass", StringComparison.OrdinalIgnoreCase)) { - return "Advanced Sub Station Alpha subtitle file"; + return "Advanced Sub Station Alpha"; } if (ext.Equals(".dfxp", StringComparison.OrdinalIgnoreCase)) { - return "Distribution Format Exchange Profile subtitle file"; + return "Distribution Format Exchange Profile"; } if (ext.Equals(".ssa", StringComparison.OrdinalIgnoreCase)) { - return "Sub Station Alpha subtitle file"; + return "Sub Station Alpha"; } if (ext.Equals(".sup", StringComparison.OrdinalIgnoreCase)) { - return "Blu-ray PGS subtitle file"; + return "Blu-ray PGS"; } if (ext.Equals(".vtt", StringComparison.OrdinalIgnoreCase)) { - return "Web Video Text Tracks (WebVTT) subtitle file"; + return "Web Video Text Tracks (WebVTT)"; } if (ext.Equals(".smi", StringComparison.OrdinalIgnoreCase)) { - return "SAMI subtitle file"; + return "SAMI"; } if (ext.Equals(".itt", StringComparison.OrdinalIgnoreCase)) { - return "iTunes Timed Text subtitle file"; + return "iTunes Timed Text"; } - return $"{ext.TrimStart('.')} subtitle file"; + return $"{ext.TrimStart('.')}"; } internal static void DeleteFileAssociationViaRegistry(string ext, string appName)