-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the PeSuT wiki!
PeSuT is a VLC media player extension that automatically translates English subtitles into Persian (Farsi). This extension simplifies the process of enjoying multimedia content with translated subtitles by utilizing Google Translate.
- Automatic translation of English subtitles to Persian (Farsi).
- Seamless integration with VLC Media Player.
- Supports common subtitle formats (.srt).
- Works in the background to avoid performance issues.
Ensure you have the latest version of PeSuT.lua
.
Depending on your operating system, locate the VLC extensions directory:
-
Windows (All Users):
%ProgramFiles%\VideoLAN\VLC\lua\extensions\
-
Windows (Current User):
%APPDATA%\VLC\lua\extensions\
-
Linux (All Users):
/usr/share/vlc/lua/extensions/
-
Linux (Current User):
~/.local/share/vlc/lua/extensions/
-
macOS (All Users):
/Applications/VLC.app/Contents/MacOS/share/lua/extensions/
Note: Create the
extensions
directory if it does not exist.
- Copy the
PeSuT.lua
file into the appropriate VLCextensions
folder. - Restart VLC Media Player.
Ensure that the English subtitle file (.srt) shares the same filename as the movie file.
- Open VLC Media Player.
- Navigate to
View
>مترجم زیرنویس فارسی
(Persian Subtitle Translator). - Select the PeSuT extension.
- Play the movie with its corresponding subtitle.
- Enable the extension to start translation.
- Close VLC to allow the translation process to complete in the background.
Tip: Monitor the subtitle file with the
-fa.srt
extension. Once its size stops increasing, the translation is complete.
- Reopen VLC Media Player.
- Select the translated subtitle (e.g.,
movie-fa.srt
).
-
Extension Not Showing
- Ensure the
PeSuT.lua
file is in the correct VLCextensions
directory. - Restart VLC Media Player.
- Ensure the
-
Subtitle Not Translating
- Verify that the English subtitle file exists and has the same name as the movie.
- Check if the translated
-fa.srt
file is being generated.
-
Incomplete Translations
- Google Translate limits input length to 5000 characters; ensure your subtitle is within this range.
-
Change Source and Target Languages Modify these variables in
PeSuT.lua
:SOURCE_LANG = "en" -- Source language TARGET_LANG = "fa" -- Target language
-
Adjust On-Screen Display (OSD) Customize OSD message duration and position:
osd_duration = 15 -- Message display duration (in seconds) osd_position = "top-left" -- Message position
We welcome contributions to improve PeSuT. To contribute:
- Fork the repository on GitHub.
- Create a feature branch.
- Submit a pull request.
PeSuT is released under the MIT License.
Special thanks to VLC and Google Translate for providing essential resources.
Author: Ali Bakhshi
Version: 1.0