Commit Graph

15020 Commits

Author SHA1 Message Date
Nikolaj Olsson
2bcdd27594
Merge pull request #8786 from ivandrofly/test-project
Switch to Central Package Management and update binding redirect
2024-09-05 19:09:32 +02:00
Ivandro Jao
8d792fac2f Remove EnsureNuGetPackageBuildImports target
This target was deleted from the project file as it is no longer necessary. The build process remains unaffected since the referenced NuGet package is already handled elsewhere. This change simplifies the csproj file and eliminates redundant checks.

Note: \packages\ directory is irrelevant for packagereference
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-05 08:55:53 +01:00
Ivandro Jao
229f610e47 Remove outdated .NET Framework bootstrapper packages
Deleted deprecated bootstrapper packages for older .NET Framework versions (2.0, 3.0, 3.5). This cleanup reduces project clutter and aligns with current dependency requirements.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-04 11:24:02 +01:00
Ivandro Jao
a6fad99cb2 Update package references to use centralized management
Moved version numbers from individual csproj files to Directory.Packages.props to enable centralized management of package versions. This simplifies version control and ensures consistency across the project.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-03 15:38:21 +01:00
Ivandro Jao
f5392b2394 Use centralized package management
Refactor project files to use Directory.Packages.props for centralized NuGet package management, making dependency updates easier and more consistent across projects. Removed explicit version specifications from individual project files.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-03 14:49:11 +01:00
Nikolaj Olsson
3df739ce89 Update Romanian translation - thx Mircea :) 2024-09-03 10:54:57 +02:00
Nikolaj Olsson
23fed68a67 Save "Adjust settings" in "Batch convert" - thx oep42 :)
Fix #8710
2024-09-03 08:00:25 +02:00
Nikolaj Olsson
347db4637f Working on #8710 (Batch convert - save "adjust durations" option) 2024-09-02 22:49:11 +02:00
Nikolaj Olsson
924e7376e0 Update Romanian translation - thx Mircea :) 2024-09-02 17:06:04 +02:00
Ivandro Jao
d882c7a0b3 Reformat project file to improve readability
Replaced tabs with spaces and adjusted XML formatting in Test.csproj to enhance readability and maintain consistency. No functional changes were made to the project configuration.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-01 20:21:19 +01:00
Ivandro Jao
abd74866bf Add RuntimeIdentifier to Test.csproj
Removed the empty TargetFrameworkProfile and NuGetPackageImportStamp elements and added the RuntimeIdentifier property set to 'win'. This change specifies the runtime environment for the project, ensuring it targets the Windows platform explicitly.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-01 20:19:54 +01:00
Nikolaj Olsson
d06f1ea37c Work on settings 2024-09-01 21:08:25 +02:00
Ivandro Jao
d1fa485e44 Switch to PackageReference and update binding redirect
Replaced `packages.config` with `PackageReference` in `Test.csproj` for streamlined package management. Also updated the `System.Net.Http` binding redirect in `app.config` from version `4.2.0.0` to `4.1.2.0`.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-09-01 19:49:14 +01:00
Nikolaj Olsson
4206978b0b
Merge pull request #8785 from PMitsakis/main
Translation update
2024-08-31 22:31:05 +02:00
Nikolaj Olsson
deba83c1a9 Allow ASSA margin up to 9,999 - thx Jim :)
Old limit was 1000
2024-08-31 22:24:36 +02:00
Μητσάκης Παναγιώτης
3464125549
Update el-GR.xml 2024-08-31 11:24:42 +03:00
Nikolaj Olsson
f43662875f Add É (capital E with acute accent) to list of French special characters - thx dobratzp :)
Fix #8782
2024-08-30 16:47:22 +02:00
Nikolaj Olsson
f639e9cacf Fix for pasting ASSA in the waveform - thx MitchSirco :)
Fix #8781
2024-08-30 13:17:32 +02:00
Nikolaj Olsson
b58fa44884 Fix for last commit 2024-08-30 07:41:02 +02:00
Nikolaj Olsson
533c89ee23 Remove default spell check shortcut - thx Javier :)
Save As" and "Spell Check" had the same keyboard shortcut (Ctrl+Shift+S)
2024-08-30 06:53:17 +02:00
Nikolaj Olsson
1a6d3bf01b Fix for batch translate via Ollama - thx Anon1337Elite :)
Fix #8771
2024-08-28 18:44:47 +02:00
Nikolaj Olsson
3b7fdef52a Fix unit test 2024-08-28 15:18:39 +02:00
Nikolaj Olsson
d28bd895cd again... 2024-08-28 10:08:11 +02:00
Nikolaj Olsson
48d4558352 Fix for last commit 2024-08-28 10:03:18 +02:00
Nikolaj Olsson
36d81029d2 Fix undesired break lines in auto-´translate - thx Dyo-Anima :)
Fix #8770
2024-08-28 09:59:20 +02:00
Nikolaj Olsson
46d5d87c7e Fix time code parse 2024-08-28 09:34:48 +02:00
Nikolaj Olsson
6ff163a386 Fix frozen engine switch for Whisper - thx Leon :)
Fix #8769
2024-08-28 09:31:57 +02:00
Nikolaj Olsson
ccd85ecd4f Update ollama model list 2024-08-28 09:23:51 +02:00
Nikolaj Olsson
c3a44b62d5 Fix crash after running Whisper - thx JDTR75 :)
Related to #8755
2024-08-28 09:23:10 +02:00
Nikolaj Olsson
8a40c195e3 Add pt-PT to Google Translate (and rename pt to "Portoguse (Brazil)" 2024-08-27 16:24:02 +02:00
Nikolaj Olsson
0a9511bf7e Add "TETUM" language to Google Translate 2024-08-27 16:20:43 +02:00
Nikolaj Olsson
24d959569c Handle dvb_sub in mkv in "Batch convert" - thx Gerben :) 2024-08-26 21:04:32 +02:00
Nikolaj Olsson
511192a2fc Add AcceptButton in Adjust-duration + FCE 2024-08-26 20:24:41 +02:00
Nikolaj Olsson
9c2ba25011 Also collect duration in ffmpeg media info 2024-08-26 12:43:55 +02:00
Nikolaj Olsson
3a425c05d9 Fix missing translation in FCE - thx jmaraujouy :)
Fix  #8759
2024-08-23 20:47:01 +02:00
Nikolaj Olsson
dfc9b51e13 Set a default resolution for "Gen transparent subs" - thx hellobigbean :)
Related to discussion https://github.com/SubtitleEdit/subtitleedit/discussions/8751
2024-08-20 17:12:12 +02:00
Nikolaj Olsson
38a9f0992e Fix white space 2024-08-20 16:56:30 +02:00
Nikolaj Olsson
9588a75ea3 Improve PAC format a bit for Thai - thx Ingo :) 2024-08-20 16:51:26 +02:00
Nikolaj Olsson
745c1e79f8 Try to fix crash from #8747 - thx JDTR75/ cvrle77 :) 2024-08-20 15:44:36 +02:00
Nikolaj Olsson
623fb09565 Minor refact + add comment 2024-08-20 15:35:40 +02:00
Nikolaj Olsson
53a6f068a2
Merge pull request #8752 from PoneyClairDeLune/main
Fixes edge cases for parsing milliseconds.
2024-08-20 13:02:57 +02:00
Nikolaj Olsson
97ef3d7c4e Work on unit tests 2024-08-20 13:02:40 +02:00
Lumière Élevé
6dfee276a2 Do not even reach normalization with 3 digits. 2024-08-20 09:44:26 +00:00
Lumière Élevé
af54326102 Normalizes edge cases for parsing milliseconds. 2024-08-20 09:32:36 +00:00
Juan M. Araújo
262b03f190
Update es-AR.xml 2024-08-19 16:12:14 -03:00
Juan M. Araújo
c8a884924f
Update es-MX.xml 2024-08-19 16:12:09 -03:00
Nikolaj Olsson
db527e4985 Only auto-br if total "merge length" exceeds max line length - thx Llorx :)
Try to fix #8741
2024-08-17 15:25:32 +02:00
Nikolaj Olsson
7b810fa98a Downgrade zlib 2024-08-17 15:06:51 +02:00
Nikolaj Olsson
76852200d6 Update nuget 2024-08-17 14:17:13 +02:00
Nikolaj Olsson
bdd19fa34e Fix undo after "merge selected" for 3+ lines - thx Llorx :)
Fix #8740
2024-08-17 14:16:55 +02:00
Nikolaj Olsson
0000709369 Override ToString() for IAutoTranslators 2024-08-15 07:30:56 +02:00
Nikolaj Olsson
5f07898118 Fix #8721 2024-08-15 07:30:10 +02:00
Nikolaj Olsson
eebef1d7a6 Minor refact 2024-08-12 17:32:38 +02:00
Nikolaj Olsson
1c328acdc8 Fix bad xml replace in "TTML 1.0"- thx Info :) 2024-08-11 19:11:46 +02:00
Nikolaj Olsson
1606f7d8d7 PAC: Support Portuguese codepage + more - thx Ingo :) 2024-08-11 18:07:11 +02:00
Nikolaj Olsson
da474d3254 Cavena 890 Greek support etc - thx Ingo :) 2024-08-10 09:35:22 +02:00
Nikolaj Olsson
12b60821ea Do not set decimals for fontsize of a whole number in ASSA 2024-08-09 21:22:19 +02:00
Nikolaj Olsson
030efcaa72 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-08-08 17:40:20 +02:00
Nikolaj Olsson
9d7032889d Make Whisper UI a bit more consistent - thx oep42 :)
Fix #8713
2024-08-08 17:40:14 +02:00
Hugo Carvalho
288fa07eb1
Update pt-PT.xml
* For commit: 08dfb73eea
* Other minor cooretion
2024-08-06 18:12:04 +01:00
Nikolaj Olsson
8b27f2e614 Minor UI fix for buttond in Advanced window 2024-08-05 04:15:46 +02:00
Nikolaj Olsson
1fedc3a08c Make Whisper Advanced parameter combobox full width - thx oep42 :)
Fix #8704
2024-08-05 04:07:43 +02:00
Nikolaj Olsson
6f4376614b Improve uknown json importer - thx Dott :) 2024-08-04 19:43:28 +02:00
Nikolaj Olsson
47dc69b234 Fix title text (gen transparent subs, find cut time by sub) 2024-08-04 09:32:00 +02:00
Nikolaj Olsson
82254ff1f8 Fix Dutch translation - thx hpcs444/tsg040 :)
Related to #8697
2024-08-03 15:02:00 +02:00
Nikolaj Olsson
d9b2ea2f81 Minor UI 2024-08-03 08:28:28 +02:00
Nikolaj Olsson
3ec93c9dc1 More UI 2024-08-03 08:22:28 +02:00
Nikolaj Olsson
aa1dcd0d93 Minor UI adjustments
Related to #8688
2024-08-03 08:17:43 +02:00
Nikolaj Olsson
05a960f86e Fix endless recursion - thx oep42 :) 2024-08-02 19:48:36 +02:00
Nikolaj Olsson
8be8e413ab Disable selection in "Adjust all times" when in "source view"
Fix #8695
2024-08-02 16:20:46 +02:00
Nikolaj Olsson
d5bf8c3d01 Detect change if switching between UTF-8-no-bom and UTF-8-with-bom - thx Minherre :)
Related to #8690
2024-08-01 20:05:27 +02:00
Nikolaj Olsson
a40cef5a4e Minor UI fixes for measurement converter 2024-07-31 20:56:36 +02:00
Nikolaj Olsson
b1cc3c264a Use UsePopupWindow in "Measurement converter" - thx Dehrimon :) 2024-07-31 20:41:10 +02:00
Nikolaj Olsson
2d544630de Fix display of resolution in burn-in - thx David :)
Fix #8691
2024-07-31 16:24:19 +02:00
Nikolaj Olsson
83fcc3a127 Add two more video extensions for transparent subs 2024-07-29 19:08:04 +02:00
Nikolaj Olsson
c9ce9c9575 Add video file ext for gen transparent subs - thx David :)
Work on #8674
2024-07-29 08:31:30 +02:00
Nikolaj Olsson
9ee39eb029 Improve unknown json format parser- thx CB :) 2024-07-28 18:05:39 +02:00
Nikolaj Olsson
f402c3c2dd Fix for gen of transparent subs 2024-07-28 15:22:11 +02:00
Nikolaj Olsson
bdf5c7a80d Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-07-28 13:36:31 +02:00
Nikolaj Olsson
df6217e391 Work on gen transparent subs - thx David :)
Work on #8674
2024-07-28 13:36:26 +02:00
elfriob
9830a28c68
Update Russian translation 2024-07-27 07:46:50 +00:00
nkh0472
93b3a673da
Update zh-Hans.xml
for commit 08dfb73eea
2024-07-26 16:52:22 +08:00
bovirus
b3e1297bab
Update Italian language 2024-07-26 08:22:17 +02:00
Nikolaj Olsson
9227fc67ee
Merge pull request #8668 from ivandrofly/fix-casing
Fix incorrect character check in tag detection logic
2024-07-26 06:39:26 +02:00
Ivandro Jao
b4e5911d75 Fix incorrect character check in tag detection logic
Changed the character check from '<' to '>' in the tag detection logic to properly toggle the tagOn variable. This corrects the behavior for closing tags, improving markup parsing accuracy.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-07-25 23:21:57 +01:00
Nikolaj Olsson
08dfb73eea Update translation + change log 2024-07-25 18:41:23 +02:00
Nikolaj Olsson
2c9c676f91 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-07-25 18:33:11 +02:00
Nikolaj Olsson
393b4a8eac More options for box colors (gen transparent subs) - thx JeditPro :) 2024-07-25 18:33:05 +02:00
Hugo Carvalho
34992a024f
Update pt-PT.xml
For commits: d30f7fafb0 and 02817e3bef
2024-07-25 15:57:12 +01:00
Nikolaj Olsson
7b0c79c5ee Fix for export custom text file name - thx Oliver :) 2024-07-25 16:06:09 +02:00
nikolaj.olsson
a94990f4f4 Update Korean translation - thx domddol :) 2024-07-25 11:34:26 +02:00
nikolaj.olsson
210ae437d9 Update Bulgarian translation - thx Калин :) 2024-07-25 09:51:36 +02:00
bovirus
34d2bde586
Update Italian language 2024-07-25 08:55:15 +02:00
nkh0472
f281ca169c
Update zh-Hans.xml
for commit 02817e3bef
2024-07-25 10:06:20 +08:00
Nikolaj Olsson
94cce714fe Add custom shortcuts for custom export text templates - thx Oliver :) 2024-07-24 18:20:50 +02:00
Nikolaj Olsson
02817e3bef Add WebVTT setting for split of style tags - thx Oliver :) 2024-07-24 17:27:19 +02:00
Nikolaj Olsson
93d7a29cde Minor UI overlap fix 2024-07-24 15:46:31 +02:00
Nikolaj Olsson
85582d5970 Fix OpenRouter url 2024-07-24 15:39:14 +02:00
Nikolaj Olsson
024e4d4b55 Add translate via OpenRouter API - thx Nikodim :) 2024-07-24 07:04:28 +02:00
Nikolaj Olsson
4e7fbeaa7a Add a few new Subtitle.Parse overloads 2024-07-24 00:13:46 +02:00
Nikolaj Olsson
8449ad20b4 Add "llama3.1" for Ollama 2024-07-23 23:14:55 +02:00
nikolaj.olsson
d25efa7b23 Fix tab-stop in generate video w transparent subs 2024-07-23 08:42:03 +02:00
Nikolaj Olsson
82c650a9dd Fix for visual sync start/end time validation - thx improck :)
Fix  #8652
2024-07-21 14:34:56 +02:00
Nikolaj Olsson
3deb067157 Add "Batch mode" for "Generate transparent video with subs" - thx David :) 2024-07-21 14:29:51 +02:00
Nikolaj Olsson
dfdb2aa2ab Fix crash in "Fix common errors" - thx Hardstylest :)
Fix #8651
2024-07-20 17:24:06 +02:00
Nikolaj Olsson
97e3e47b50 Fix running "Faster-Whisper-XXL" without "Faster-Whisper" - thx shanedk :)
Work on #8645
2024-07-20 15:54:17 +02:00
Nikolaj Olsson
884cda5297 Allower for larger files via drop to list view - thx Jim :) 2024-07-20 12:55:35 +02:00
Nikolaj Olsson
6213ebfcf0 Again... 2024-07-20 12:13:24 +02:00
Nikolaj Olsson
40123d9fad Try to explain better...
Related to #8645
2024-07-20 12:13:11 +02:00
Nikolaj Olsson
a937e1e38b Add translate via Groq (online API) 2024-07-20 11:44:14 +02:00
Nikolaj Olsson
5a6d7c56ba Minor refact + work on groq 2024-07-20 09:53:30 +02:00
Nikolaj Olsson
7179632350 Fix crash in "Whisper Audio to text" if no audio - thx morrellaberdeen :)
Fix #8647
2024-07-20 09:28:40 +02:00
Nikolaj Olsson
9b019db887 Allow change of ChatGPT model in translate window 2024-07-19 15:52:17 +02:00
Nikolaj Olsson
f67cca37d1 Add model "gpt-4o-mini" 2024-07-19 06:29:45 +02:00
Nikolaj Olsson
27d3e4e907 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-07-17 17:32:41 +02:00
Nikolaj Olsson
40a39e83ac Fix crash in TTML IMSC 1.1 - thx Louie :) 2024-07-17 17:32:34 +02:00
Nikolaj Olsson
dfc3ac56a7
Merge pull request #8642 from nkh0472/patch-120
Update zh-Hans.xml
2024-07-17 12:26:11 +02:00
nkh0472
2410783251
Update zh-Hans.xml
for commit d30f7fafb0
2024-07-17 17:59:48 +08:00
bovirus
52fa0e5814
Update Italian language 2024-07-17 11:37:06 +02:00
Nikolaj Olsson
ac846d0835
Merge pull request #8635 from ivandrofly/paragraph
Refactor code to use GetCharactersPerSecond method in Paragraph class
2024-07-16 20:25:12 +02:00
Nikolaj Olsson
68de9be3c3 Fix Romanian translation version number - thx MediaExpres :)
Fix #8640
2024-07-16 20:15:55 +02:00
Nikolaj Olsson
c9b4c29acb Try to fix #8629 2024-07-16 20:12:09 +02:00
Ivandro Jao
28a4d6af64 Refactor code to use GetCharactersPerSecond method in Paragraph class
Removed GetCharactersPerSecond method from the Utilities class and refactored all its references to use the equivalent method newly added in the Paragraph class. This refactoring resulted in cleaner, more object-oriented code and consolidated related logic in the Paragraph class. Ensured all unit tests are passing after this significant change.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
2024-07-14 23:42:57 +01:00
Nikolaj Olsson
0620bc98c4 Fix typo 2024-07-14 13:57:31 +02:00
Nikolaj Olsson
d30f7fafb0 Add pixel format paramter to burn-in - thx Hafran420 :)
Work on #8632
2024-07-14 13:19:30 +02:00
Nikolaj Olsson
0a09d42f3e Try to fix UI burn-in form - thx Hafran420 :)
Fix  #8631
2024-07-13 19:08:54 +02:00
Ivandro Jao
aa7b5b8b51 Refactor variable naming in MatroskaFile
Updated the variable 'ChapterDisplay' to 'chapterDisplay' in the 'GetChapterName' method of the 'MatroskaFile.cs' file. This change adheres to the standard naming convention increasing code readability and maintainability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-07-10 18:12:34 +01:00
Ivandro Jao
2d946020ff Remove GC.SuppressFinalize(this) on class that doesn't implement finalizer
Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-07-10 18:12:34 +01:00
Nikolaj Olsson
ff0100bb67 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-07-09 20:37:21 +02:00
Nikolaj Olsson
7d58cbd7dc Update French translation - thx Pierre/Z-6-PO :) 2024-07-09 20:37:06 +02:00
Μητσάκης Παναγιώτης
9e63ff6791
Update el-GR.xml 2024-07-09 17:30:04 +03:00
Nikolaj Olsson
fd1b8b96cb
Merge pull request #8588 from ivandrofly/resources
Resources: Update
2024-07-09 09:49:03 +02:00
Nikolaj Olsson
cb786724db
Merge pull request #8606 from potplayer-fanpack/main
Update Polish file pl-PL.xml
2024-07-08 20:22:28 +02:00
Nikolaj Olsson
763cd3595f Roll back nuget package 2024-07-08 20:21:57 +02:00
Adam Malich
68a15fdb18 Update Polish file pl-PL.xml 2024-07-08 20:15:39 +02:00
Nikolaj Olsson
c1fe42fac9 SE 4.0.7 2024-07-08 19:10:39 +02:00
Nikolaj Olsson
ff26aa26f6 Remove file from project file too 2024-07-07 22:59:41 +02:00
Nikolaj Olsson
390fff3d7b Update French translation (and remove fr-BE) - thx Pierre :) 2024-07-07 22:52:52 +02:00
Nikolaj Olsson
892b7f7ca4 Add decimals to a few averages in statistics 2024-07-07 15:13:30 +02:00
Nikolaj Olsson
f02e0cbed9
Merge pull request #8595 from ivandrofly/project-file
Update language file copy settings to 'PreserveNewest'
2024-07-07 09:05:12 +02:00
Nikolaj Olsson
b2159a26bc Update yt-dlp 2024-07-05 17:43:07 +02:00
Nikolaj Olsson
5885c1888d Fix for DCinema colors - thx Pamela :) 2024-07-04 19:02:05 +02:00
Nikolaj Olsson
6bb61e9527 Fix crash when double clicking on Play in TTS review window - thx cvrle77 :)
Fix #8519
2024-07-02 20:01:10 +02:00
Nikolaj Olsson
06c846c40b Try to fix unit tests 2024-07-02 17:34:55 +02:00
Ivandro Jao
2c9f1cd91b Update language file copy settings to 'PreserveNewest'
This update changes the 'CopyToOutputDirectory' setting for all language files from 'Always' to 'PreserveNewest'. This change ensures that only the latest versions of these language files will be copied during the build process, preventing unnecessary duplication.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-07-02 14:19:03 +01:00
Nikolaj Olsson
dc37f04338 Fix #8184 - thx Codling/ivandrofly :) 2024-07-02 06:52:30 +02:00
Nikolaj Olsson
9dad06922b Update change log 2024-07-01 17:07:47 +02:00
Nikolaj Olsson
d5e471dce5 UI fix for volume text in video player - thx Emiritus1 :)
Fix #8589
2024-06-30 18:45:29 +02:00
Ivandro Jao
6f4e25e022 Refactor dictionary loading in GetTesseract302Dictionaries
Streamlined the loading of dictionaries in the GetTesseract302Dictionaries file by using XmlReader directly on the decompressed stream. This change simplifies the processing flow and reduces the overall amount of coding needed.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-29 03:03:57 +01:00
Ivandro Jao
06f8d56aeb Remove unused dictionaries from SubtitleEdit project
The dictionaries 'TesseractDictionaries.xml', 'HunspellBackupDictionaries.xml', and 'HunspellDictionaries.xml' were removed from the SubtitleEdit.csproj as they are no longer used. This helps to keep the project clean and uncluttered.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-29 03:03:40 +01:00
Nikolaj Olsson
0ced27aa5f Add new subtitle format - thx Louie :) 2024-06-28 21:41:32 +02:00
nikolaj.olsson
e0be9ed1bc Minor UI fix 2024-06-28 18:29:12 +02:00
Nikolaj Olsson
baec5663b3
Merge pull request #8585 from ivandrofly/event-args
Replace new EventArgs() with EventArgs.Empty
2024-06-28 17:54:18 +02:00
Nikolaj Olsson
b85a616b3f Work on transparent video w subs 2024-06-27 20:55:47 +02:00
Ivandro Jao
153e2dfd20 Replace new EventArgs() with EventArgs.Empty
The commits replace all instances of `new EventArgs()` with `EventArgs.Empty` in different video player classes. This change improves performance by reducing unnecessary object instantiation and aligns with the best practices of C# coding.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-27 18:50:30 +01:00
Ivandro Jao
5206edfd5e Refactor redundant Dispose calls into a single method
Reorganized the way various graphics disposal were handled in the LayoutPicker form. Instead of individual dispose calls, the disposing logic has been consolidated into a new method named DisposeGraphics(). This makes our disposal logic more modular, maintainable, and easier to read.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-27 16:45:37 +01:00
Ivandro Jao
759b6fcaa8 Add Dispose method to LayoutPicker.cs
The Dispose method has been added to LayoutPicker.cs for properly disposing the managed resources. As part of the changes, the existing Dispose method from LayoutPicker.Designer.cs was removed and integrated into the new method, ensuring more optimized disposal of resources.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-27 16:43:47 +01:00
nkh0472
537e999ec0
Update zh-Hans.xml
for commit 228ec5b6d4
2024-06-27 11:38:20 +08:00
Nikolaj Olsson
df59496f1b Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-26 08:52:38 +02:00
Nikolaj Olsson
cbcf3f8f94 Fix for generate transparent subtitle duration 2024-06-26 08:52:27 +02:00
Nikolaj Olsson
f6b39ecd27
Merge pull request #8570 from MediaExpres/main
Tradu vs Traduce vs Traducere corrections in the translate menus
2024-06-25 23:49:28 +02:00
Hugo Carvalho
441c2721a8
Update pt-PT.xml
For commit: 228ec5b6d4
2024-06-25 22:12:43 +01:00
bovirus
268c7519fc
Italian language update 2024-06-25 15:03:30 +02:00
Nikolaj Olsson
c28ffceb3a Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-24 22:57:25 +02:00
Nikolaj Olsson
b701a7cde0 Gen transparent sub ffmpeg check 2024-06-24 22:57:16 +02:00
nikolaj.olsson
34343798b2 Fix bad valication - thx despairTK :)
Fix #8572
2024-06-24 14:07:35 +02:00
Mihai Pavelescu
fa82cc2a09
Merge branch 'SubtitleEdit:main' into main 2024-06-24 11:03:52 +03:00
Mihai Pavelescu
734b92f5a1 Tradu vs Traduce vs Traducere fine tunning in the Menus 2024-06-24 11:01:19 +03:00
Nikolaj Olsson
662c84b6ad Update Bulgarian translation - thx Калин :) 2024-06-24 07:22:45 +02:00
Nikolaj Olsson
e282e8d6d2 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-23 13:05:50 +02:00
Nikolaj Olsson
9fa1bdac84 Update change log 2024-06-23 13:05:45 +02:00
Ivandro Jao
58831aec02 Safeguard http client disposal in AutoTranslate
This update adds a null-conditional operator before disposing the http client in AutoTranslate form. This ensures that _httpClient.Dispose() only gets called if _httpClient is not null, preventing potential NullReferenceException.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-23 11:35:45 +01:00
Ivandro Jao
58b15fa3a2 Refactor AutoTranslate download error handling
The AutoTranslate download functionality has been refactored to improve error handling. An optional parameter has been added to the DownloadOllamaModelsAsync method to control whether or not to show error notifications. Also, the GetOllamaClient method has been simplified for readability and maintainability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-23 10:11:07 +01:00
Ivandro Jao
1aabf861a5 Merge remote-tracking branch 'refs/remotes/remote/main' into auto-translate 2024-06-23 09:44:53 +01:00
Nikolaj Olsson
d4e8664a8a Update dk/sv translations 2024-06-23 10:19:06 +02:00
Nikolaj Olsson
8c2267846b Fix abort for TTS Azure/ElevenLabs - thx cvrle77 :)
Work on #8519
2024-06-23 09:12:07 +02:00
Nikolaj Olsson
16aee3339a Fix compile error 2024-06-23 08:39:48 +02:00
Nikolaj Olsson
228ec5b6d4 Work on #8534 2024-06-23 08:37:11 +02:00
Nikolaj Olsson
d7af38dda0 Work on #8534 2024-06-23 08:36:46 +02:00
Nikolaj Olsson
e519c6322a
Merge pull request #8557 from ivandrofly/settings-to
Split Settings to multiple files
2024-06-23 07:46:33 +02:00
Nikolaj Olsson
7603bdfda9
Merge pull request #8559 from ivandrofly/text-to-speech
Implement IDisposable pattern on HttpClient usage
2024-06-23 07:44:23 +02:00
Nikolaj Olsson
6711897f3a Add gen transparent video with subs - thx JeditPro :)
Work on  #8534
2024-06-22 22:36:03 +02:00
Ivandro Jao
761493d24c Implement IDisposable pattern on HttpClient usage
The HttpClient instances are now wrapped in a using statement to properly dispose them after use. This practice prevents potential memory leaks and ensures that system resources are returned back to the system once the HttpClient instances are no longer needed, improving the system's overall efficiency and performance.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-21 19:44:23 +01:00
Ivandro Jao
772dc8416b Refactor settings namespace in .NET project
The main change in this commit is relocating several settings related classes from `Nikse.SubtitleEdit.Core.Common` to a new namespace `Nikse.SubtitleEdit.Core.Settings`. This improves the project organization by grouping all settings-related functionality and data together, making it easier to find and maintain. This refactoring required updates across numerous files to import the new namespace.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-21 09:10:47 +01:00
Ivandro Jao
40e4b004c1 Add new classes for settings
This commit adds new classes for settings including 'MultipleSearchAndReplaceGroup', 'MultipleSearchAndReplaceSetting', 'NetworkSettings', 'AssaStorageCategory', and 'GeneralSettings'. Each class represents different groups of settings. These classes will be utilized to manage the settings in a more organized way.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-21 09:02:17 +01:00
Ivandro Jao
b915d491c7 Add debug-specific error message in AutoTranslate.cs
In a wrap catch of the AutoTranslate.cs file, a conditional directive was added to display different error messages for DEBUG and RELEASE modes. This ensures that detailed exception information is shown during debugging for better troubleshooting, while a more user-friendly message is used in the release build.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 19:21:03 +01:00
Ivandro Jao
be16964b95 Remove unnecessary whitespace and dispose HttpClient
An unnecessary whitespace line was removed from the AutoTranslate.cs file to improve code readability. Additionally, the HttpClient in the AutoTranslate.Designer.cs file was disposed to free up system resources and prevent potential memory leaks.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 19:17:05 +01:00
Ivandro Jao
1b6ec6d9f2 Refactor HttpClient handling in AutoTranslate
HttpClient is optimized, now a single instance is shared instead of creating new for each request. The 'ConfigureAwait' statements have been adjusted in the async calls to improve asynchronous handling. Reorganized the downloading of Ollama models which simplifies and increases program efficiency.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 18:57:02 +01:00
Nikolaj Olsson
a9d737aff5 Add new Claude 3.5 Sonnet model - thx Flash :) 2024-06-20 19:45:05 +02:00
Ivandro Jao
a9b7da3dc1 Refactor model fetching in AutoTranslate.cs
The process for downloading Ollama Models has been refactored for brevity and clarity. A private async method, 'GetModelsAsync', was introduced by extracting code from 'DownloadOllamaModelsAsync'. This change enhances code readability and makes possible errors easier to trace.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 18:42:33 +01:00
Ivandro Jao
c9e20b0aa9 Refactor AutoTranslate code to use async/await
Removed the BackgroundWorker in the `nikseComboBoxEngine_SelectedIndexChanged` method, replacing it with async/await for better readability and performance. Extracted a `DownloadOllamaModelsAsync` method to download models, which also replaced the synchronous approach in `UpdateLocalModelsToolStripMenuItem_Click`.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-19 22:20:43 +01:00
Nikolaj Olsson
060e7c9e7d Only allow single line select in auto-translate - thx TobbyTravel :)
Fix  #8548
2024-06-19 19:30:19 +02:00
Nikolaj Olsson
2b7bffc396 Add Ollama to batch translate - thx TobbyTravel :)
Fix #8544
2024-06-18 19:29:31 +02:00
Nikolaj Olsson
c695ed7b35 Fix #8543 2024-06-18 19:28:34 +02:00
Nikolaj Olsson
6759e1fa5c
Merge pull request #8546 from hugok79/patch-124
Update pt-PT.xml
2024-06-18 10:34:16 +02:00
Hugo Carvalho
5fb752fa0e
Update pt-PT.xml 2024-06-18 00:22:02 +01:00
Hugo Carvalho
fb5a8fd677
Update pt-PT.xml 2024-06-18 00:14:06 +01:00
elfriob
b609fa180e
Update Russian translation 2024-06-17 14:51:19 +00:00
Nikolaj Olsson
5b145ac748
Merge pull request #8528 from bovirus/main
Update Italian language
2024-06-16 12:42:12 +02:00
Nikolaj Olsson
1d8773d1b6 Update yt-dlp to 2024.05.27 2024-06-16 12:19:26 +02:00