Commit Graph

19731 Commits

Author SHA1 Message Date
Nikolaj Olsson
b6579d055b Allow TTS without video - thx David :)
Work on #8324
2024-05-07 18:35:19 +02:00
Nikolaj Olsson
d9923e52e4
Merge pull request #8327 from hugok79/patch-120
Update pt-PT.xml
2024-05-07 18:08:56 +02:00
Hugo Carvalho
d2e5ec1487
Update pt-PT.xml
For commits: 280a2e1454 and f643d84844
2024-05-07 16:51:56 +01:00
Ivandro Jao
77c93bfae7 Remove redundant XML load in SpellCheckWordLists
In the SpellCheckWordLists class, the redundant XML load operation in the 'else' clause has been removed. This change simplifies the code by getting rid of an unnecessary operation that was adding complexity and potentially slowing down the application.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-06 23:13:06 +01:00
Nikolaj Olsson
bc6c382a4f Allow for "All files" when browsing for vlc.exe
Related to #8319
2024-05-06 18:49:51 +02:00
Nikolaj Olsson
5bc6775331 Try to make preview with ffmpeg if available - thx Kyowa312 :)
Fix #8321
2024-05-06 18:36:16 +02:00
Nikolaj Olsson
186efe3d81 Change text slightly 2024-05-06 18:35:26 +02:00
Nikolaj Olsson
9279e0cf4f Update dk/se translations 2024-05-06 18:34:59 +02:00
Nikolaj Olsson
0a613482ef
Merge pull request #8320 from diomed/main
OCR fixes for Croatian
2024-05-06 18:14:29 +02:00
Nikolaj Olsson
5afc122580
Merge pull request #8322 from elfriob/main
Update Russian translation
2024-05-06 18:14:11 +02:00
elfriob
aacb423f3d
Update Russian translation 2024-05-06 11:16:04 +00:00
May Kittens Devour Your Soul
93ae594730
Update hrv_OCRFixReplaceList.xml 2024-05-06 10:00:14 +02:00
Nikolaj Olsson
5ca151bce6 Update eleven labs api to best model - thx cvrle77 :)
Work on #8318
2024-05-06 06:38:41 +02:00
Nikolaj Olsson
3accd3fc58 Update change log 2024-05-05 21:17:53 +02:00
Nikolaj Olsson
15126e0c7f Work on ttml Imsc11 2024-05-05 18:12:38 +02:00
Nikolaj Olsson
106cdb9684 Try to handle empty text inTTS - thx Miguel :) 2024-05-05 16:59:02 +02:00
Nikolaj Olsson
201e61265d Update Korean translaton - thx domddol :) 2024-05-05 16:37:40 +02:00
Nikolaj Olsson
be06abd76d Add TTS AllTalk - thx Franz :) 2024-05-05 16:29:46 +02:00
Ivandro Jao
ca3c30372d Refactor condition check in IfoParser
The condition check in the IfoParser class has been refactored for better readability and correctness. Proper grouping of conditions within parentheses has been added to ensure appropriate execution order.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-05 14:29:07 +01:00
Ivandro Jao
778b2d04b3 Update minCount calculation in GetAllLanguages method
The GetAllLanguages function in IfoParser.cs has been updated to improve the calculation of the variable minCount. It now takes into consideration the count of three component lists - Subtitles, SubtitleIDs, and SubtitleTypes - ensuring that the loop operates on the smallest size among them. This modification prevents potential out-of-range errors.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-05 14:27:53 +01:00
Ivandro Jao
55bd510311 Optimize GetAllLanguages method in IfoParser
This commit optimizes the GetAllLanguages method within the IfoParser class. Instead of checking bounds within the loop, we calculate the minimum count between SubtitleIDs and SubtitleTypes before starting the iteration. This simplifies the logic and could potentially improve performance.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-05 14:26:27 +01:00
Nikolaj Olsson
57b96a236b Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-05 14:07:33 +02:00
Nikolaj Olsson
c0d2c73109 Allow vertical zoomout in waveform (ctrl+shift+mouse-wheel in waveform) - thx Leon :)
Fix #8314
2024-05-05 14:07:27 +02:00
Nikolaj Olsson
6697aa8453
Merge pull request #8313 from nkh0472/patch-111
Update zh-Hans.xml
2024-05-05 13:37:47 +02:00
Nikolaj Olsson
ad31fba605
Merge pull request #8311 from bovirus/main
Update Italian language
2024-05-05 13:36:49 +02:00
nkh0472
a842bde098
Update zh-Hans.xml 2024-05-05 18:47:31 +08:00
bovirus
71a94b0c32
Update Italian language 2024-05-05 12:03:28 +02:00
Nikolaj Olsson
0cb95a5251 Use max bytes in auto-translate 2024-05-05 11:48:16 +02:00
Nikolaj Olsson
1176fdfae5 Minor fixes for translate 2024-05-05 11:27:31 +02:00
Nikolaj Olsson
8bb7e4e48c
Merge pull request #8292 from ivandrofly/feature/spellcheck-wordlist
Feature/spellcheck wordlist
2024-05-05 11:11:01 +02:00
Nikolaj Olsson
c0426368e5 Minor improvements 2024-05-05 11:06:39 +02:00
Nikolaj Olsson
cfe425c01b
Merge pull request #8303 from ivandrofly/feature/memory-leak
Implement IDisposable in translators and properly dispose HttpClient …
2024-05-05 10:57:22 +02:00
Nikolaj Olsson
c50c138ec1 Minor UI fix 2024-05-05 10:54:45 +02:00
Nikolaj Olsson
73ffbd1797 Minor UI fixes 2024-05-05 10:51:07 +02:00
Nikolaj Olsson
f643d84844 Update translation 2024-05-05 10:15:15 +02:00
Nikolaj Olsson
b397259aa9 Work on #8293 2024-05-05 10:06:26 +02:00
Nikolaj Olsson
60680c2a4c Do not auto-close burn-in window 2024-05-05 06:56:55 +02:00
Nikolaj Olsson
a2f54a4f74 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-04 10:42:48 +02:00
Nikolaj Olsson
56c14d4b17 Fix for font size bug mentioned in #8210 - thx amir3dsmax :) 2024-05-04 10:42:29 +02:00
Nikolaj Olsson
9473277b85
Merge pull request #8298 from nkh0472/patch-110
Update zh-Hans.xml
2024-05-04 10:18:06 +02:00
Ivandro Jao
cfd39e64eb Implement IDisposable in translators and properly dispose HttpClient instances
Several classes, particularly the ones related to translation services, have been modified to implement IDisposable interface. Additionally, all instances of HttpClient are being disposed properly now using "using" keyword. This will help ensure that system resources are promptly released when they're no longer required, potentially improving application performance and stability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-03 23:41:26 +01:00
nkh0472
f23c88e5d0
Update zh-Hans.xml
for commit 280a2e1454
2024-05-03 15:29:12 +08:00
Nikolaj Olsson
f9700dea68 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-02 17:41:34 +02:00
Nikolaj Olsson
d02aa496fb Update Bulgarian translation - thx Калин :) 2024-05-02 17:41:17 +02:00
Nikolaj Olsson
e5ff83bdfa
Merge pull request #8294 from bovirus/main
Update Italian language
2024-05-02 17:40:14 +02:00
bovirus
184396dd7a
Update Italian language 2024-05-02 15:01:46 +02:00
Ivandro Jao
fec4d1838b Replace string declaration with var keyword in SpellCheckWordLists
This commit replaces explicit string variable declarations with the var keyword in the SpellCheckWordLists.cs file. This provides improved code readability and maintainability, as it leverages the compiler's ability to determine the variable's type automatically based on its value.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 10:26:58 +01:00
Ivandro Jao
16bf8a8772 Refactor dictionary loading in SpellCheckWordLists
This commit simplifies the process of loading user and system dictionaries in SpellCheckWordLists. The modified code avoids redundant loading constructs through an iteration over the dictionary paths. It contributes to maintaining the readability and efficiency of the codebase.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 10:23:34 +01:00
Ivandro Jao
c0b83f6dda Refactor duplicate code in SpellCheckWordLists
The duplicated loops checking for words containing periods or dashes in different collections were replaced with a single loop. The function GetSingleUnifiedCollection was created to unify the collections using the Union method. This makes the code cleaner and more maintainable.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 10:15:26 +01:00
Ivandro Jao
6f35288fc0 Remove unused '_skipAllList' from SpellCheckWordLists
Removed the '_skipAllList' variable from 'SpellCheckWordLists.cs' as it was unused. The variable was also removed from a sorting operation, which should help improve performance.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-02 09:59:36 +01:00