Commit Graph

14976 Commits

Author SHA1 Message Date
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
Nikolaj Olsson
4cdd35e521 Update mpv to 2024-06-09 2024-06-16 12:19:04 +02:00
Nikolaj Olsson
d53d2728a3 Prompt for overwrite in "Multiple replace" export - thx redactedscribe :)
Fix #8516
2024-06-15 19:26:24 +02:00
Nikolaj Olsson
6b3feb8bc3
Merge pull request #8532 from nkh0472/patch-118
Update zh-Hans.xml
2024-06-15 18:13:59 +02:00
Nikolaj Olsson
8810ecd950 Fix crash in Vosk audio to text on selected lines - thx MediaExpres :)
Fix #8530
Fix crash when Vosk is not installed
2024-06-15 17:58:21 +02:00
nkh0472
f2084692d2
Update zh-Hans.xml
for commit 172900a247
2024-06-15 21:25:50 +08:00
Nikolaj Olsson
37d821130c Minor updates 2024-06-15 12:15:54 +02:00
bovirus
03353706a5
Update Italian language 2024-06-14 11:40:55 +02:00
Nikolaj Olsson
e879fb6ef3 Add actor for podcaster json to UI
Related to #8522
2024-06-13 19:33:55 +02:00
Nikolaj Olsson
172900a247 Add PodcastIndexer json - thx rjgout :)
Related to  #8522
2024-06-13 19:25:46 +02:00
Nikolaj Olsson
ceac0eee80
Merge pull request #8518 from ivandrofly/fix-common
Remove spell check functionality from FixCommonErrors
2024-06-13 18:56:05 +02:00
Ivandro Jao
252dbda6cf Update csproj files to simplify project structure
Simplified and cleaned up the structure of multiple csproj files. This includes removing unnecessary tags and attributes, and adopting the new Project Sdk format. This change should have no functional impact but makes the project files streamlined and easier to read.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-12 14:07:19 +01:00
Ivandro Jao
4917de0c4b Remove spell check functionality from FixCommonErrors
The `IFixCallbacks` interface no longer inherits from `IDoSpell` as it is unnecessary. This is due to the removal of the `DoSpell` method and the associated Hunspell functionality in the `FixCommonErrors` class. This commit simplifies the code by removing unused or unnecessary pieces.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-11 22:46:30 +01:00
Nikolaj Olsson
93367dd9d7 Add audio settings for TTS final video file 2024-06-09 08:57:23 +02:00
Nikolaj Olsson
ecafda8394 Validate prompt chars - thx nyck33 :)
Fix #8506
2024-06-09 08:04:15 +02:00
Nikolaj Olsson
6fa8220e0e Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-07 16:10:10 +02:00
Nikolaj Olsson
45be0a95e8 Update Finnish translation - thx Teijo S :) 2024-06-07 16:10:01 +02:00
Mihai Pavelescu
94a5b7cac0 Nope. Now they are 100% 2024-06-05 18:00:39 +03:00
Mihai Pavelescu
2f06ca1955 Took them all with F6 and I think now the 100% lines are translated to Romanian 2024-06-05 17:48:25 +03:00
Nikolaj Olsson
998ee5ca95 Minor refact 2024-06-05 07:35:48 +02:00
Nikolaj Olsson
7b75b154ef
Merge pull request #8349 from ivandrofly/start-with-upper
Refactor method to check string starts with lowercase letter
2024-06-05 07:18:14 +02:00
Nikolaj Olsson
8910a92568
Merge pull request #8353 from ivandrofly/feature/htmlutil-fix-italic
Refactor tag replacement in HtmlUtil
2024-06-05 07:13:48 +02:00
Nikolaj Olsson
e963cfdd12
Merge pull request #8397 from ivandrofly/feature/report-progress
Refactor progress report in WhisperModelDownload
2024-06-05 07:10:09 +02:00
Nikolaj Olsson
24de4b2e5a
Merge pull request #8416 from ivandrofly/feature/se-listview-dispose
Add Dispose method to SubtitleListView control
2024-06-05 07:03:06 +02:00
Nikolaj Olsson
e818a24c94
Merge pull request #8464 from ivandrofly/feature/settings
Remove unused variable in Settings.cs
2024-06-05 06:57:16 +02:00
Nikolaj Olsson
bb8a7d0bc8
Merge pull request #8472 from MediaExpres/main
added new Romanian missing translations
2024-06-05 06:56:48 +02:00
Nikolaj Olsson
a5cd4af419
Merge pull request #8478 from bovirus/main
Update Italian language
2024-06-05 06:55:18 +02:00
Nikolaj Olsson
78a978d7e1 Fix theme issues with regex context menu 2024-06-05 06:40:56 +02:00
Mihai Pavelescu
94b1b4e158
Merge branch 'SubtitleEdit:main' into main 2024-06-04 22:58:42 +03:00
bovirus
4acc7e69f0
Update Italian language 2024-06-04 21:05:36 +02:00
Hugo Carvalho
b9373ed0ea
Update pt-PT.xml 2024-06-04 19:52:31 +01:00
Nikolaj Olsson
50a9cf5b98 Fix crash in TS convert - thx MounaLafi :)
Work on #8470
2024-06-04 20:03:20 +02:00
Nikolaj Olsson
ebc789afbb Improve context menu for Find/Replace - thx Nthoney :)
Work on #8466
2024-06-04 17:52:09 +02:00
Mihai Pavelescu
2175af613f further Romanian tags added 2024-06-04 06:49:10 +03:00
Mihai Pavelescu
c39dc833a0 Merge branch 'main' of https://github.com/MediaExpres/subtitleedit 2024-06-04 06:30:58 +03:00
Mihai Pavelescu
f483694088 new Romanian tags added 2024-06-04 06:15:57 +03:00
Ivandro Jao
8ed1401a19 Remove unused variable in Settings.cs
An unused variable 'p' of type RulesProfile has been removed from src/libse/Common/Settings.cs.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-02 20:39:52 +01:00
Nikolaj Olsson
a2bbe632a2 Improve error msg 2024-06-02 13:40:51 +02:00
Nikolaj Olsson
e94c07bafa Fix related to #8421 - thx rRobis :) 2024-06-02 12:16:57 +02:00
Nikolaj Olsson
c575d55945 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-02 10:52:13 +02:00
Nikolaj Olsson
926a70ad29 Minor Ui fixes 2024-06-02 10:52:08 +02:00
nkh0472
4bfc301c54
Update zh-Hans.xml
for commit 134415f639
2024-06-02 15:15:55 +08:00
Nikolaj Olsson
35de19ec3f Fix auto translate crash - thx soscaster :)
Fix  #8459
2024-06-02 08:41:44 +02:00
Nikolaj Olsson
134415f639 Add language tags 2024-06-02 07:40:59 +02:00
Igor Rückert
b14bb5f1af
Update pt-BR.xml 2024-06-01 21:05:30 -03:00