Commit Graph

14849 Commits

Author SHA1 Message Date
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
Nikolaj Olsson
91cb47716e Fix #8421 2024-06-01 12:41:52 +02:00
Nikolaj Olsson
966cb98d18 Update language 2024-06-01 10:18:10 +02:00
Adam Malich
36da8f68e3 Update pl-PL.xml to version v4.0.6 2024-06-01 09:26:21 +02:00
Nikolaj Olsson
cb171aaa96 Subtitle Edit 4.0.6 2024-06-01 07:28:10 +02:00
Nikolaj Olsson
2489076a6c
Merge pull request #8453 from ivandrofly/feature/subtitle-format
Remove duplicate registration
2024-05-31 17:40:53 +02:00
Nikolaj Olsson
c131689914 Try to improve LibreTranslate line breaks
Fix #8449
2024-05-31 17:40:28 +02:00
Nikolaj Olsson
b3d8598ed5 Add Swedish to ChatGPT translate - thx Stefan :) 2024-05-31 17:28:03 +02:00
Ivandro Jao
856eb457db Remove duplicated registration
Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-30 17:21:02 +01:00
Nikolaj Olsson
15edc00dbe Undo Whisper CPP update 2024-05-30 07:39:10 +02:00
Nikolaj Olsson
e6a2c71d39 Improve error msg slightly 2024-05-29 21:10:50 +02:00
Nikolaj Olsson
65d1e368c2 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-28 22:05:25 +02:00
Nikolaj Olsson
012cbe5006 Improve burn-in error handling - thx Leon :) 2024-05-28 22:05:18 +02:00
Hugo Carvalho
1789baa255
Update pt-PT.xml 2024-05-28 14:54:55 +01:00
Nikolaj Olsson
8ad754387a Add ASSA res in whisper batch - thx rRobis :)
Fix #8434
2024-05-28 09:26:06 +02:00
Nikolaj Olsson
d7358b5910 More language filter 2024-05-28 07:53:17 +02:00
Nikolaj Olsson
8854486351 Use language-filter in auto-translate 2024-05-27 20:12:28 +02:00
Nikolaj Olsson
047d411617 Add "m4b" as audio file ext - thx janot :)
Fix #8437
2024-05-27 08:34:51 +02:00
Nikolaj Olsson
c0a8a25c6d Allow larger subtitle preview size - thx kadrimarzouki :)
Fix #8438
2024-05-27 08:22:23 +02:00
Nikolaj Olsson
c9da2df7a2 Split pt to pt-pt og pt-br for deepl - thx Uncle-Tio :)
Work on #8439
2024-05-27 08:03:29 +02:00
Nikolaj Olsson
eb3539e0b6 Update DeepL languages - thx Ihab :) 2024-05-26 18:28:48 +02:00
Mihai Pavelescu
1c7b91fdf3 Further tags added to Romanian second batch, May 25 2024-05-25 19:48:29 +03:00
Mihai Pavelescu
7616243c01
Merge branch 'SubtitleEdit:main' into main 2024-05-25 11:54:01 +03:00
Mihai Pavelescu
f50dfe701b Spike, Clipboard and some others tags translated to Romanian 2024-05-25 11:49:46 +03:00
Nikolaj Olsson
bde3d60d26 Work on #8423 2024-05-25 10:25:06 +02:00
Nikolaj Olsson
bd3903c82b Add text length to "modify selection" 2024-05-24 20:34:49 +02:00
Nikolaj Olsson
50ba9b1ba7 Work on #8423 2024-05-24 19:42:23 +02:00
Nikolaj Olsson
1dc79262cc Update ffmpeg 2024-05-24 11:41:17 +02:00
Nikolaj Olsson
4680df9ab8 Change ffmpeg param a bit for burn-in - thx Leon :) 2024-05-24 11:24:58 +02:00
Nikolaj Olsson
3bd394bfec
Merge pull request #8420 from MediaExpres/main
Main
2024-05-24 10:25:37 +02:00
Nikolaj Olsson
cfe0089629 Batch convert: Check for ".sub" ext with bd sup - thx OlJohnny :)
Fix #8413
2024-05-24 09:28:15 +02:00
Mihai Pavelescu
a5154159c9 OCR and Prefix tags translated to RO 2024-05-23 11:52:11 +03:00
Nikolaj Olsson
c2b63a48ce
Merge pull request #8415 from MediaExpres/main
Translated to Romanian some of the tags in UI
2024-05-23 09:29:47 +02:00
Nikolaj Olsson
c4b8255f45 Improve FixMissingPeriodsAtEndOfLine - thx Leon :)
Fix #8386
2024-05-23 09:27:55 +02:00
Ivandro Jao
846dcdba68 Add Dispose method to SubtitleListView control
Added override to the Dispose method in SubtitleListView control which unregisters any tick events and disposes timer objects when control is being discarded. This helps to ensure resources are properly freed up, reducing potential memory leaks.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-23 00:02:08 +01:00
Nikolaj Olsson
48dd4b54d9 Add new sub format 2024-05-22 18:43:01 +02:00
Mihai Pavelescu
112ac6fb38 Translated to Romanian some of the tags in UI 2024-05-22 16:08:09 +03:00
Mihai Pavelescu
07703ef435
Update ro-RO.xml
Added the <WordLists>Lista de cuvinte...</WordLists> translation for Romanian. Since it was missing, the English one "Word lists..." was shown by default on the Romanian language user interface.
2024-05-21 19:57:54 +03:00
Nikolaj Olsson
ee7d64e427 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-21 18:49:54 +02:00
Nikolaj Olsson
666f9dcdcb Update Korean translation - thx domddol :) 2024-05-21 18:49:48 +02:00
Mihai Pavelescu
0f01357943
Update ro-RO.xml
Make it clear that the SOUND wave will be shown once you click.there.
2024-05-21 19:32:57 +03:00
elfriob
e103389447
Update Russian translation 2024-05-21 09:01:33 +00:00
Nikolaj Olsson
7f7c1e1388 Fix cmd line issue + minor refact for ollama 2024-05-20 20:34:25 +02:00
Nikolaj Olsson
b2e40191bd Make delete cli params obey order
Related to  #8391
2024-05-20 19:21:16 +02:00
Μητσάκης Παναγιώτης
04218e946c
Update el-GR.xml 2024-05-20 19:07:17 +03:00
Nikolaj Olsson
be1811db9b
Merge pull request #8399 from nkh0472/patch-116
Update zh-Hans.xml
2024-05-20 09:41:05 +02:00
Nikolaj Olsson
290be662bc Minor ollama fix 2024-05-20 09:38:14 +02:00
Nikolaj Olsson
c977d6d5bd Update Bulgarian translation - thx Калин :) 2024-05-20 09:36:36 +02:00
nkh0472
dbab9ddc8b
Update zh-Hans.xml 2024-05-20 11:44:25 +08:00
Ivandro Jao
8179cee693 Refactor progress report in WhisperModelDownload
This commit optimizes the code in WhisperModelDownload.cs by pulling out the progress reporting into a separate variable. This new implementation enhances code readability and prevents code redundancy. Now, the 'progressReport' variable is used while calling the 'DownloadAsync' method.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-19 23:11:23 +01:00
Nikolaj Olsson
9d9f55de68 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-19 20:31:12 +02:00
Nikolaj Olsson
ae922cac6b Add deletefirst/deletelast to cmd line convert - thx rRobis :)
Related to #8391
2024-05-19 20:31:07 +02:00
bovirus
88d4c9db22
Update Italian language 2024-05-19 18:30:26 +02:00
Nikolaj Olsson
ea458fb1b9 Update da/sv translations 2024-05-19 17:23:25 +02:00
Nikolaj Olsson
c58bb79e78 Add a few missing translations - thx domddol :) 2024-05-19 17:20:21 +02:00
Nikolaj Olsson
f4536cb03e Update Korean translation - thx domddol :) 2024-05-19 14:36:05 +02:00
bovirus
69c749ffd9
Update Italian language 2024-05-19 11:37:28 +02:00
Nikolaj Olsson
7f64d2348e Update Update WhisperCPP to 1.6.0 (from 1.5.4) 2024-05-19 10:39:06 +02:00
Nikolaj Olsson
7ed7a45f35 Update dk/sv language files 2024-05-19 07:37:51 +02:00
Nikolaj Olsson
808cdc62cf Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-19 07:31:30 +02:00
Nikolaj Olsson
047cd62138 Update Bulgarian translation - thx Калин :) 2024-05-19 07:23:08 +02:00
nkh0472
f6673a2338
Update zh-Hans.xml
for commit c147f3929f
2024-05-18 14:59:14 +08:00
Nikolaj Olsson
01b74fc481 Check for null in QuartsPlayer - thx giogio33 :)
Try to fix #8384
2024-05-18 08:12:20 +02:00
Nikolaj Olsson
64a52b2d21 Update Bulgarian translation - thx Калин :) 2024-05-17 20:08:47 +02:00
Nikolaj Olsson
6a8b7a87c5 Minor clean 2024-05-17 18:57:49 +02:00
Nikolaj Olsson
0774b3b9a3
Merge pull request #8316 from ivandrofly/feature/ifo-parser
Feature/ifo parser
2024-05-17 18:44:25 +02:00
Nikolaj Olsson
712de43cec
Merge pull request #8383 from OmrSi/include-composition-characters
Add an option to include composition characters in Line Length
2024-05-17 18:30:12 +02:00
Nikolaj Olsson
fc1e640409 Allow for "Faster whisper" custom models - thx yairl/darnn :)
Related to #8377
2024-05-16 20:07:38 +02:00
OmrSi
c147f3929f Add an option to include composition characters in Line Length 2024-05-16 17:40:02 +03:00
Nikolaj Olsson
097f0b4da7 Hide vertical margin if not relevant - thx noembryo :)
Related to #8358
2024-05-15 20:39:30 +02:00
Nikolaj Olsson
84f2c12b8b Remove "force stereo" as tts seems to always use stereo 2024-05-15 15:55:54 +02:00
Nikolaj Olsson
3fba99ee9a
Merge pull request #8372 from bovirus/main
Update Italian language
2024-05-15 06:20:56 +02:00
Nikolaj Olsson
d658cfe0ad Fix for "Force steroe" in TTS
Relaetd to  #8348
2024-05-15 06:20:01 +02:00
bovirus
154ba0deba
Update Italian language 2024-05-14 20:13:31 +02:00
Nikolaj Olsson
d894047258
Merge pull request #8370 from hugok79/patch-121
Update pt-PT.xml
2024-05-14 18:12:24 +02:00
Hugo Carvalho
ca651727ac
Update pt-PT.xml
* For commits: a9f70c1ffe 7e623130e6 6044e581a8
* Other minor corrections
2024-05-14 16:19:54 +01:00
nkh0472
14c291e312
Update zh-Hans.xml
for commit 6044e581a8
2024-05-14 19:33:46 +08:00
Nikolaj Olsson
40b0e94123 Set default ChatGPT model to the new "gpt-4o" 2024-05-14 05:57:50 +02:00
Nikolaj Olsson
7694c69e24
Merge pull request #8338 from trienow/master
Feature: Hot keys to the Ocr-Character-Inspect-Form
2024-05-13 20:48:18 +02:00
Nikolaj Olsson
4155a9b4f1 Fix for setting new speed% after edit (TTS) 2024-05-13 20:14:24 +02:00
Nikolaj Olsson
a87306bb8d Keep wav format for stereo
Related to #8348
2024-05-13 18:19:08 +02:00
Nikolaj Olsson
e95a2f44fc Fix for TTS preview - thx cvrle77 :)
Fix #8361
2024-05-13 17:54:09 +02:00
Nikolaj Olsson
fb2234868a Add audio file file name column for csv export 2024-05-13 08:58:09 +02:00
Nikolaj Olsson
79e417bcc1 Fix #8312 2024-05-13 08:54:40 +02:00
Nikolaj Olsson
a3c8c70f68 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-13 08:01:02 +02:00
Nikolaj Olsson
e6cbf81e0b Minor TTS work 2024-05-13 08:00:56 +02:00
Ivandro Jao
cfa0aece78 Refactor tag replacement in HtmlUtil
The revision refactors the replacement of invalid italic tags in the HtmlUtil FixInvalidItalicTags method. The separate string replace statements were replaced with loops that iterate over arrays of predefined invalid tag variations. This change leads to cleaner, more readable, and maintainable code.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-11 14:23:05 +01:00
nkh0472
67188943fd
Update zh-Hans.xml 2024-05-11 10:28:55 +08:00
trienow
6044e581a8
Added context menu entries to document the hot keys 2024-05-10 19:23:53 +02:00
trienow
1bf836ac68
Added hot keys to the Ocr-Character-Inspect-Form
This allows the user to not have to rely on their mouse as much when mapping bitmap to character.
2024-05-10 16:30:11 +02:00
Nikolaj Olsson
2e487c30ad Set better default value 2024-05-10 15:47:34 +02:00
Nikolaj Olsson
13c9c4cdbe Add force stereo 2024-05-10 15:39:55 +02:00
Nikolaj Olsson
6b0270eaf5 Fix for TTS last rename 2024-05-10 14:35:36 +02:00
Ivandro Jao
6f1f32876d Refactor method to check string starts with lowercase letter
The method formerly known as "BeginsWithLetter" has been optimized and renamed to "IsFirstLetterConvertibleToUppercase". The method now directly checks if the string is not empty and its first character is lowercase, instead of doing these in separate steps.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-10 09:52:43 +01:00
Nikolaj Olsson
10d35fea1b TTS: Go back to using wav (instead of mp3) 2024-05-10 07:26:48 +02:00
Nikolaj Olsson
7e2f94c1b2 Work on #8344 2024-05-09 19:12:45 +02:00
Nikolaj Olsson
d5c52d57d0 Fix for setting tts lang 2024-05-09 19:02:20 +02:00
Nikolaj Olsson
f8b9a67bbe Work on #8342 2024-05-09 16:40:04 +02:00
Nikolaj Olsson
2c6bcc5db9 A little more cleanup 2024-05-09 15:27:43 +02:00
Nikolaj Olsson
266ac09b80 More cleanup 2024-05-09 15:22:18 +02:00
Nikolaj Olsson
fe0130807f Some translation clean up 2024-05-09 15:15:02 +02:00
Nikolaj Olsson
a306e4a1be Work on translation merge 2024-05-09 14:41:18 +02:00
Nikolaj Olsson
3c0c92e4d1 Update Bulgarian translation - thx Калин :) 2024-05-09 13:21:32 +02:00
bovirus
18cd77e280
Update Italian language 2024-05-09 10:18:21 +02:00
Nikolaj Olsson
6e8944742a Minor UI fix 2024-05-09 09:01:23 +02:00
Nikolaj Olsson
5eacb31f0b Fix Azure TTS - thx BlueBlue7891 :)
Fix #8339
2024-05-09 08:10:36 +02:00
Nikolaj Olsson
4a02923c80 Hack for multi download... 2024-05-08 21:41:19 +02:00
Nikolaj Olsson
7e623130e6 Work on #8334 2024-05-08 20:57:22 +02:00
Nikolaj Olsson
31e92dcfbc Work on #8312 2024-05-08 20:38:26 +02:00
Nikolaj Olsson
9d7d1be987 Update Bulgarian translation - thx Калин :) 2024-05-08 19:37:39 +02:00
Nikolaj Olsson
3a6ecac04a Minor UI fix 2024-05-08 19:33:14 +02:00
Nikolaj Olsson
fa3ca2e992 Try to fix #8333 2024-05-08 19:27:16 +02:00
Nikolaj Olsson
a9f70c1ffe Update translation 2024-05-08 19:21:55 +02:00
Nikolaj Olsson
3e312b682c Work on #8332 2024-05-08 19:11:42 +02:00
Nikolaj Olsson
8c14075f4b Display TTS speed adjustment in review - thx BlueBlue7891 :)
Fix #8329
2024-05-08 17:17:47 +02:00
Ivandro Jao
d687d4c51c Refactor NameList to simplify addition of names
The logic for adding names to either _namesMultiList or _namesList in the NameList class was spread widely in the method. It has now been encapsulated within a new private method called TryAdd. This commit leads to cleaner and clearer code within the class and promotes easier maintenance in the future.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-08 13:24:39 +01:00
Ivandro Jao
2b726092e8 Refactor code for XML document creation
The XML document creation has been refactored into a separate function to reduce repetition. Prior code for creating the XML document was repeated in several places, specifically in the 'Remove' and 'Add' functions. The new 'CreateDocument' function now contains this code, making the overall codebase cleaner and easier to maintain.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-05-08 13:20:06 +01:00
Nikolaj Olsson
e91bf3d1b7 Minor UI fix 2024-05-07 20:25:15 +02:00
Nikolaj Olsson
44676bc9a9 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-07 20:05:18 +02:00
Nikolaj Olsson
e3bb91e9d0 Minor ui fix 2024-05-07 20:05:05 +02:00
Nikolaj Olsson
76001419c5
Merge pull request #8328 from ivandrofly/spellcheck
Remove redundant XML load in SpellCheckWordLists
2024-05-07 18:56:54 +02:00
Nikolaj Olsson
ea565668ce Fix crash #8323 2024-05-07 18:42:24 +02:00
Nikolaj Olsson
be432810e1 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-05-07 18:35:24 +02:00
Nikolaj Olsson
b6579d055b Allow TTS without video - thx David :)
Work on #8324
2024-05-07 18:35:19 +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