Commit Graph

19861 Commits

Author SHA1 Message Date
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
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
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
Nikolaj Olsson
0b4aa9b65e
Merge pull request #8584 from ivandrofly/layout-picker
Layout picker
2024-06-27 18:20:36 +02: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
Nikolaj Olsson
673b25cb5c
Merge pull request #8581 from nkh0472/patch-119
Update zh-Hans.xml
2024-06-27 09:27:10 +02: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
Nikolaj Olsson
3fb7242d39
Merge pull request #8578 from hugok79/patch-125
Update pt-PT.xml
2024-06-25 23:49:18 +02:00
Hugo Carvalho
441c2721a8
Update pt-PT.xml
For commit: 228ec5b6d4
2024-06-25 22:12:43 +01:00
Nikolaj Olsson
3d37be01d4
Merge pull request #8577 from bovirus/main
Italian language update
2024-06-25 16:40:56 +02: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
Nikolaj Olsson
87542c477d
Merge pull request #8566 from ivandrofly/auto-translate
Safeguard http client disposal in AutoTranslate
2024-06-23 12:45:11 +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
Nikolaj Olsson
fdc0d915ba
Merge pull request #8553 from ivandrofly/auto-translate
Auto translate
2024-06-23 11:38:19 +02: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
f2d2f627f2 Update change log 2024-06-23 10:04:28 +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
Nikolaj Olsson
de76224637 Use new output path - thx GrampaWildWilly :)
Fix #8555
2024-06-22 09:13:39 +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