Skip to content

Commit

Permalink
GNOME - Add help popover for subtitle langs
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Jun 13, 2023
1 parent ae74148 commit bfbd617
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 18 deletions.
28 changes: 28 additions & 0 deletions NickvisionTubeConverter.GNOME/Blueprints/preferences_dialog.blp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
45 changes: 27 additions & 18 deletions NickvisionTubeConverter.Shared/Resources/po/tubeconverter.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down

0 comments on commit bfbd617

Please sign in to comment.