From bfbd6172ef91ea0db9e1634875dc0a49f1ac2d0a Mon Sep 17 00:00:00 2001 From: Nick Logozzo Date: Tue, 13 Jun 2023 00:24:24 -0400 Subject: [PATCH] GNOME - Add help popover for subtitle langs --- .../Blueprints/preferences_dialog.blp | 28 ++++++++++++ .../Resources/po/tubeconverter.pot | 45 +++++++++++-------- 2 files changed, 55 insertions(+), 18 deletions(-) diff --git a/NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp b/NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp index a7b985e45..f43cf2fd2 100644 --- a/NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp +++ b/NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp @@ -196,6 +196,34 @@ Adw.PreferencesWindow _root { Gtk.Image { icon-name: "subtitles-symbolic"; } + + [suffix] + Gtk.MenuButton { + valign: center; + direction: none; + icon-name: "dialog-question-symbolic"; + + popover: Gtk.Popover { + child: Gtk.Box { + orientation: vertical; + spacing: 6; + margin-start: 6; + margin-top: 6; + margin-end: 6; + margin-bottom: 6; + + Adw.Clamp { + maximum-size: 300; + child: Gtk.Label { + wrap: true; + label: _("Some sites use two-letter language codes, whereas others use three-letter. For example, \"en\" and \"eng\" are both used for English.\n\nPlease specify both two-letter and three-letter codes for your languages for the best results."); + }; + } + }; + }; + + styles ["flat"] + } } Adw.ActionRow { diff --git a/NickvisionTubeConverter.Shared/Resources/po/tubeconverter.pot b/NickvisionTubeConverter.Shared/Resources/po/tubeconverter.pot index 81888c556..9b673b77a 100644 --- a/NickvisionTubeConverter.Shared/Resources/po/tubeconverter.pot +++ b/NickvisionTubeConverter.Shared/Resources/po/tubeconverter.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-06-12 23:39-0400\n" +"POT-Creation-Date: 2023-06-13 00:23-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -146,11 +146,11 @@ msgstr "" msgid "Download log was copied to clipboard." msgstr "" -#: ../../../Models/Download.cs:330 +#: ../../../Models/Download.cs:329 msgid "Download using aria2 has started" msgstr "" -#: ../../../Models/Download.cs:341 +#: ../../../Models/Download.cs:340 msgid "Download using ffmpeg has started" msgstr "" @@ -191,7 +191,7 @@ msgstr "" msgid "Error" msgstr "" -#: ../../../Models/Download.cs:177 +#: ../../../Models/Download.cs:176 msgid "File already exists, and overwriting is disallowed" msgstr "" @@ -298,8 +298,8 @@ msgid "Save Folder (Invalid)" msgstr "" #: ../../../../NickvisionTubeConverter.GNOME/Views/PreferencesDialog.cs:195 -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:274 -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:288 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:302 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:316 msgid "Select Cookies File" msgstr "" @@ -690,60 +690,69 @@ msgstr "" msgid "The minimum size of which to split a file (in MiB)." msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:202 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:219 +msgid "" +"Some sites use two-letter language codes, whereas others use three-letter. " +"For example, \"en\" and \"eng\" are both used for English.\n" +"\n" +"Please specify both two-letter and three-letter codes for your languages for " +"the best results." +msgstr "" + +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:230 msgid "Cookies File" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:203 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:231 msgid "" "A cookies file can be provided to yt-dlp to allow downloading media that " "requires a login." msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:233 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:261 msgid "" "Cookies can be passed to yt-dlp in the form of TXT files. Export cookies " "from your browser using the following extensions (use at your own risk):" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:296 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:324 msgid "Clear Cookies File" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:308 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:336 msgid "Converter" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:309 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:337 msgid "Customize converter settings." msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:312 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:340 msgid "Disallow Conversions" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:313 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:341 msgid "" "If enabled, Tube Converter will download the appropriate video/audio format " "for the selected quality without converting to other formats. (You will be " "unable to select a file format)" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:328 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:356 msgid "Embed Metadata" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:337 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:365 msgid "Crop Audio Thumbnails" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:338 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:366 msgid "" "If enabled, Tube Converter will automatically turn on the crop thumbnail " "advanced option for audio downloads" msgstr "" -#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:354 +#: NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp:382 msgid "Embed Chapters" msgstr ""