Commit Graph

19704 Commits

Author SHA1 Message Date
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
Nikolaj Olsson
280a2e1454 Update base translation 2024-05-02 07:28:42 +02:00
Nikolaj Olsson
ddeb4e3aca
Merge pull request #8291 from hugok79/patch-119
Update pt-PT.xml
2024-05-02 07:09:23 +02:00
Nikolaj Olsson
900ea79885 Improve error logging for #8275 2024-05-02 07:04:49 +02:00
Hugo Carvalho
860b99e05c
Update pt-PT.xml 2024-05-01 23:08:38 +01:00
Nikolaj Olsson
a92da80b51 Update readme + about 2024-05-01 19:27:45 +02:00
Nikolaj Olsson
bc8c4c0cb5 Allow empty time codes for format "Unknown 66" - thx darnn :)
Fix #8288
2024-05-01 16:38:25 +02:00
Nikolaj Olsson
c31518adc3 Work on #8266 2024-05-01 16:24:09 +02:00
Nikolaj Olsson
392faf73c1
Merge pull request #8287 from nkh0472/patch-109
Update zh-Hans.xml
2024-05-01 16:21:49 +02:00
Nikolaj Olsson
c8ec4ff46d
Merge pull request #8282 from igorruckert/patch-1
Update pt-BR.xml
2024-05-01 16:21:24 +02:00
nkh0472
9f151620f7
Update zh-Hans.xml 2024-05-01 21:08:43 +08:00
Igor Rückert
beb6d0904f
Update pt-BR.xml 2024-04-30 19:54:59 -03:00
Nikolaj Olsson
0062c42a16 Update dk/sv transkation 2024-04-30 21:30:35 +02:00
Nikolaj Olsson
b47f4b6f13 Work on #8266 2024-04-30 21:28:18 +02:00
Nikolaj Olsson
b35a83f100 Work on #8266 2024-04-30 21:27:03 +02:00
Nikolaj Olsson
2dddf56a61 Fix Azure voice refresh 2024-04-30 20:14:59 +02:00
Nikolaj Olsson
ca9fa80b4b
Merge pull request #8281 from ivandrofly/feature/generatevideowithhardsubs
Feature/generatevideowithhardsubs
2024-04-30 18:35:16 +02:00
Nikolaj Olsson
b34892e716 Try to fix #7859 2024-04-30 18:00:58 +02:00
Nikolaj Olsson
bff037fc8a Make auto-translate shortcut work in waveform - thx rRobis :)
Fix #8280
2024-04-30 16:43:18 +02:00
Nikolaj Olsson
32ec68ccb7 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-30 16:24:17 +02:00
Nikolaj Olsson
28a52febdf Minor adjustment of bookmark icon x pos - thx rRobis :)
Fix #8277
2024-04-30 16:23:50 +02:00
Ivandro Jao
042dfa14e5 Add DimensionTest to test project
A new test class, DimensionTest, is created and added to the test project. This class specifically tests the functionality of the Dimension object's validity and equality methods, thus enhancing our suite of unit tests.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 13:10:10 +01:00
Ivandro Jao
6323937c30 Refactor video dimension validation in GenerateVideoWithHardSubs
This commit refactors the validation of video dimensions in GenerateVideoWithHardSubs class. Instead of checking width and height separately, a new Dimension object is created and validated with IsValid(). This simplifies the code and improves readability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:41:32 +01:00
Ivandro Jao
93c9e9947a Refactor video and subtitle batch creation code
Code for creating and validating batch video and subtitle entities has been extracted into separate methods, improving the readability of the main method. These changes also include a rectification in the logic for handling invalid video dimensions.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:53 +01:00
Ivandro Jao
3d24cdcbb6 Add Dimension struct to manage object sizes
The struct, Dimension which represents the dimensions of an object, is created. This contains basic properties for height and width, and methods for checking equality, validity and providing a string representation. The Dimension can later be used throughout the project for managing sizes of different objects.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:42 +01:00
Ivandro Jao
3e1fabac30 Refactor FfmpegMediaInfo to use Dimension for dimensions
The properties VideoWidth and VideoHeight in FfmpegMediaInfo class have been replaced with a Dimension object. This modification leads to simpler and more readable code by encapsulating width and height information within the Dimension class. Any resolution information extracted is now directly assigned to the Dimension property.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:28 +01:00
Ivandro Jao
f256b59691 Refactor subtitle file location code in FileUtil
This commit simplifies the subtitle file location code in FileUtil by removing unnecessary nested functions. It changes the way the search is done in known subtitle directories and handles the case if a video file is sent with a full path. This results in cleaner and more manageable code.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:19 +01:00
niksedk
56205e4222 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-30 07:00:30 +02:00